/* ─── EMILY STUDIO COMPONENT STYLES (Aligned with App Container & Theme Standards) ─── */

.studio-wrapper {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* ─── REATOR CENTRAL INTEGRADO ─── */
.reactor-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  user-select: none;
  -webkit-user-select: none;
}

.orbit-stage {
  position: relative;
  width: 330px;
  height: 330px;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.orbit-stage:active {
  cursor: grabbing;
}

.stardust-orbit-svg {
  position: absolute;
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.stardust-track {
  fill: none;
  stroke-linecap: round;
}

.stardust-1 {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.4;
  stroke-dasharray: 2 16 1 12 3 28;
  animation: driftOrbitStudio 75s linear infinite;
  transform-origin: 160px 160px;
}

.stardust-2 {
  stroke: rgba(56, 189, 248, 0.28);
  stroke-width: 1.2;
  stroke-dasharray: 1 24 2 18 1 36;
  animation: driftOrbitStudio 110s linear infinite reverse;
  transform-origin: 160px 160px;
}

.stardust-3 {
  stroke: rgba(232, 101, 10, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 1.5 40 2.5 30 1 22;
  animation: driftOrbitStudio 150s linear infinite;
  transform-origin: 160px 160px;
}

html.light .stardust-1 {
  stroke: rgba(0, 0, 0, 0.12);
}
html.light .stardust-2 {
  stroke: rgba(56, 189, 248, 0.35);
}
html.light .stardust-3 {
  stroke: rgba(232, 101, 10, 0.25);
}

@keyframes driftOrbitStudio {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-bust-container {
  position: absolute;
  top: 60px;
  width: 236px;
  height: 236px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.avatar-bust-container:active {
  transform: scale(0.97);
}

.avatar-bust-container::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  top: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 101, 10, 0.18) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 80%);
  filter: blur(28px);
  z-index: -1;
  animation: breatheAuraStudio 5s ease-in-out infinite alternate;
  pointer-events: none;
}

html.light .avatar-bust-container::before {
  background: radial-gradient(circle, rgba(232, 101, 10, 0.12) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 80%);
}

@keyframes breatheAuraStudio {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(1.12); opacity: 0.9; }
}

.avatar-bust-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
html.light .avatar-bust-img {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

/* ─── ÍCONES 3D ORBITAIS ─── */
.power-orb {
  position: absolute;
  width: 56px;
  height: 56px;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  overflow: visible;
}

.power-orb::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(232, 101, 10, 0.2) 50%, transparent 72%);
  filter: blur(6px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.power-orb.selected::before {
  opacity: 1;
  transform: scale(1.15);
}

.orb-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.power-orb:not(.selected).active-skill .orb-icon-img {
  opacity: 0.7;
}
.power-orb:not(.selected).paused-skill .orb-icon-img {
  opacity: 0.35;
  filter: grayscale(0.7) brightness(0.7);
}
.power-orb:not(.selected).locked-skill .orb-icon-img {
  opacity: 0.25;
  filter: grayscale(0.9) brightness(0.6);
}

.power-orb.active-skill.selected .orb-icon-img {
  opacity: 1;
}
.power-orb.paused-skill.selected .orb-icon-img {
  opacity: 0.88;
  filter: grayscale(0.2) brightness(0.9);
}
.power-orb.locked-skill.selected .orb-icon-img {
  opacity: 0.85;
  filter: grayscale(0.3) brightness(0.9);
}

.orb-badge-mini {
  position: absolute;
  bottom: -4px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.3px;
  user-select: none;
  opacity: 0;
  transform: translateY(4px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.power-orb.selected .orb-badge-mini {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.badge-on {
  background: #10b981;
  color: #003318;
  box-shadow: 0 0 8px #10b981;
}
.badge-off {
  background: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}
html.light .badge-off {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}
.badge-lock {
  background: var(--accent, #e8650a);
  color: #fff;
  box-shadow: 0 0 8px var(--accent, #e8650a);
}

/* ─── HUD FOCUS CARD ─── */
.hud-focus-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--card-bg, rgba(30, 41, 59, 0.45));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  box-shadow: var(--specular-highlight, inset 0 1px 0 0 rgba(255, 255, 255, 0.12)), var(--shadow-ambient, 0 2px 10px rgba(0,0,0,0.15));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md, 18px);
  padding: 18px 20px;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

html.light .hud-focus-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.48) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 30px rgba(56, 189, 248, 0.10), 0 2px 6px rgba(15, 23, 42, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hud-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.hud-icon-frame {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.hud-icon-frame img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hud-title-text-wrap {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main, #fff);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-tag {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.hud-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-icon-gear {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
}
html.light .btn-icon-gear {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}
.btn-icon-gear:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-main);
}
.btn-icon-gear:active {
  transform: scale(0.92);
}

/* ─── MODERN LIQUID GLASS SWITCH TOKEN ─── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html.light .toggle-slider {
  background-color: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.08);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.4);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

input:checked + .toggle-slider {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
input:checked + .toggle-slider:before {
  transform: translateX(18px);
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.theme-consumer input:checked + .toggle-slider {
  background: rgba(232, 101, 10, 0.2);
  border-color: rgba(232, 101, 10, 0.35);
  box-shadow: 0 2px 8px rgba(232, 101, 10, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.theme-consumer input:checked + .toggle-slider:before {
  background: #ff8a3d;
  box-shadow: 0 0 8px rgba(232, 101, 10, 0.8);
}

.hud-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.hud-focus-card.is-paused .hud-desc,
.hud-focus-card.is-locked .hud-desc {
  opacity: 0.8;
}

.hud-roi-banner {
  height: 30px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 0 12px;
  border-radius: var(--radius-xs, 8px);
  font-size: 12px;
  color: var(--accent-secondary, #38bdf8);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.light .hud-roi-banner {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #0284c7;
}

.hud-action-row {
  height: 42px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ─── MODERN LIQUID GLASS BUTTON TOKENS ─── */
.btn-glass-primary,
.btn-jelly-primary {
  flex: 1;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: var(--radius-sm, 12px);
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  /* Padrão Seller (Gestão - Azul) */
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25);
}

.btn-glass-primary:hover,
.btn-jelly-primary:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.4);
}

.btn-glass-primary:active,
.btn-jelly-primary:active {
  transform: scale(0.97);
}

/* Variante Consumer (Atendimento - Laranja) */
.btn-glass-primary.theme-consumer,
.btn-jelly-primary.theme-consumer,
.btn-glass-consumer {
  background: rgba(232, 101, 10, 0.18);
  border-color: rgba(232, 101, 10, 0.32);
  color: #ff8a3d;
}
.btn-glass-primary.theme-consumer:hover,
.btn-jelly-primary.theme-consumer:hover,
.btn-glass-consumer:hover {
  background: rgba(232, 101, 10, 0.26);
  border-color: rgba(232, 101, 10, 0.45);
  color: #ffa466;
  box-shadow: 0 4px 14px rgba(232, 101, 10, 0.25), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.4);
}

/* Light Theme Overrides */
html.light .btn-glass-primary,
html.light .btn-jelly-primary {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.15);
}
html.light .btn-glass-primary.theme-consumer,
html.light .btn-jelly-primary.theme-consumer,
html.light .btn-glass-consumer {
  background: rgba(232, 101, 10, 0.14);
  border-color: rgba(232, 101, 10, 0.35);
  color: #c2410c;
  box-shadow: 0 2px 6px rgba(232, 101, 10, 0.15);
}

.btn-glass-secondary {
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  color: var(--text-main, #fff);
  border-radius: var(--radius-sm, 12px);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-sans, 'Outfit', sans-serif);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
html.light .btn-glass-secondary {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
  box-shadow: none;
}
.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-glass-secondary:active {
  transform: scale(0.97);
}

/* ─── PERSONALIDADE DE ATENDIMENTO ─── */
.section-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.75rem;
}

.dna-capsule {
  width: 100%;
  box-sizing: border-box;
  background: var(--card-bg, rgba(30, 41, 59, 0.45));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  box-shadow: var(--specular-highlight, inset 0 1px 0 0 rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md, 18px);
  padding: 18px;
  margin-bottom: 24px;
}

html.light .dna-capsule {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.48) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 30px rgba(56, 189, 248, 0.10), 0 2px 6px rgba(15, 23, 42, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.prompt-preview-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 12px);
  padding: 14px 44px 14px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-main, #e2e8f0);
  position: relative;
  margin-bottom: 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
}
html.light .prompt-preview-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 #ffffff;
}

.prompt-preview-box::before {
  content: '“';
  position: absolute;
  top: -6px;
  left: 10px;
  font-size: 30px;
  color: var(--accent-secondary, #38bdf8);
  opacity: 0.35;
  font-family: serif;
}
.dna-capsule.theme-consumer .prompt-preview-box::before {
  color: #ff8a3d;
}

.btn-icon-pencil {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary, #38bdf8);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dna-capsule.theme-consumer .btn-icon-pencil {
  color: #ff8a3d;
}
html.light .btn-icon-pencil {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}
.btn-icon-pencil:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}
.btn-icon-pencil:active {
  transform: scale(0.92);
}

.dna-scroll-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
}
.dna-scroll-strip::-webkit-scrollbar {
  display: none;
}

.trait-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 16px;
  border-radius: var(--radius-xs, 8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #fff);
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.22s ease;
  flex-shrink: 0;
}
html.light .trait-chip {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--text-main);
}
.trait-chip.active {
  opacity: 1;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25);
}
.dna-capsule.theme-consumer .trait-chip.active {
  background: rgba(232, 101, 10, 0.18);
  border-color: rgba(232, 101, 10, 0.35);
  color: #ff8a3d;
}
html.light .trait-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #0284c7 !important;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgba(56, 189, 248, 0.2);
}
html.light .dna-capsule.theme-consumer .trait-chip.active {
  background: rgba(232, 101, 10, 0.15);
  border-color: rgba(232, 101, 10, 0.35);
  color: #c2410c !important;
}

/* ─── CARD UNIFICADO DE DOSSIÊ DE CONVERSÃO ─── */
.impact-unified-card {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.55) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: var(--specular-highlight, inset 0 1px 0 0 rgba(255, 255, 255, 0.12)), 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md, 18px);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

html.light .impact-unified-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.20) 0%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: inset 0 1px 0 #ffffff, 0 12px 36px rgba(56, 189, 248, 0.14), 0 2px 8px rgba(15, 23, 42, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.impact-unified-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.impact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.impact-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main, #fff);
  display: flex;
  align-items: center;
  gap: 7px;
}

.impact-badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-secondary, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-family: var(--font-mono, monospace);
}

/* ─── DOSSIÊ EM CALIBRAÇÃO ATIVA ─── */
.calibration-badge {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #22c55e !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.calibration-intro-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
  margin: 0 0 14px 0;
}

.calibration-progress-wrap {
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 12px);
  padding: 12px 14px;
  margin-bottom: 14px;
}
html.light .calibration-progress-wrap {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.calibration-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 8px;
}

.calibration-pct-text {
  font-weight: 700;
  color: var(--accent-secondary, #38bdf8);
  font-family: var(--font-mono, monospace);
}

.calibration-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
html.light .calibration-progress-bar {
  background: rgba(0, 0, 0, 0.08);
}

.calibration-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.impact-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs, 8px);
  padding: 8px 10px;
  text-align: center;
}
html.light .impact-stat-pill {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.stat-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main, #fff);
  font-family: var(--font-mono, monospace);
}
.stat-lbl {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.next-step-integrated-box {
  border-top: 1px dashed rgba(56, 189, 248, 0.25);
  padding-top: 14px;
}

.next-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-secondary, #38bdf8);
  margin-bottom: 8px;
}

.next-step-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-main, #e2e8f0);
  margin-bottom: 12px;
}

.trust-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

/* ─── WHATSAPP CHAT SIMULATOR (INSIDE FOCUS OVERLAY) ─── */
.chat-simulator-wrap {
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.light .chat-simulator-wrap {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

.chat-bubble {
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-main, #fff);
  max-width: 90%;
  box-sizing: border-box;
}
.chat-bubble-client {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 14px 4px;
}
html.light .chat-bubble-client {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}
.chat-bubble-emily {
  align-self: flex-end;
  background: rgba(232, 101, 10, 0.15);
  border: 1px solid rgba(232, 101, 10, 0.25);
  border-radius: 14px 14px 4px 14px;
  color: var(--text-main, #fff);
}
html.light .chat-bubble-emily {
  background: rgba(232, 101, 10, 0.12);
  border-color: rgba(232, 101, 10, 0.25);
  color: var(--text-main);
}
.bubble-sender {
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 3px;
  display: block;
  color: var(--accent-secondary, #38bdf8);
}
.chat-bubble-emily .bubble-sender {
  color: var(--accent, #e8650a);
  text-align: right;
}

/* ─── SEÇÃO "SEU TIME" NO DASHBOARD (COMPACT 2-COLUMN GRID LADO A LADO) ─── */
.team-section {
  width: 100%;
  margin-top: var(--space-2, 8px);
  margin-bottom: var(--space-4, 16px);
}

.team-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
}

.team-pill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--card-bg, rgba(30, 41, 59, 0.45));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 16px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-ambient, 0 2px 10px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.team-pill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.team-pill-card:active {
  transform: scale(0.97);
}

html.light .team-pill-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 8px rgba(0, 0, 0, 0.04);
}
html.light .team-pill-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Cavidade com profundidade negativa translúcida (estratégia Modern Liquid Glass) */
.team-pill-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease;
}
html.light .team-pill-avatar-wrap {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.team-pill-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.18) translateY(2.5px);
  border: none;
  display: block;
}
.team-pill-card:hover .team-pill-avatar-wrap {
  transform: scale(1.04);
}

.team-pill-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.team-pill-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.team-pill-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent !important;
  border: none !important;
}
.badge-seller {
  color: var(--accent-secondary, #38bdf8);
}
.badge-consumer {
  color: var(--accent, #e8650a);
}
html.light .badge-seller {
  color: #0284c7;
}
html.light .badge-consumer {
  color: #c2410c;
}

/* ─── ROLE SWITCHER & HEADER INTEGRADO NO STUDIO (MODERN LIQUID GLASS) ─── */
.team-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.15rem;
  margin-bottom: 1.25rem;
  gap: 12px;
}

.skills-view-all-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 12px);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
}
.skills-view-all-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.skills-view-all-card:active {
  transform: scale(0.98);
}
.skills-view-all-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary, #38bdf8);
}
html.light .skills-view-all-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
html.light .skills-view-all-icon {
  background: rgba(0, 0, 0, 0.04);
}

.agent-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 16px);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
}
.agent-profile-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.agent-profile-card:active {
  transform: scale(0.98);
}
.agent-profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-profile-icon.theme-seller {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-secondary, #38bdf8);
}
.agent-profile-icon.theme-consumer {
  background: rgba(232, 101, 10, 0.12);
  color: #ff8a3d;
}
.btn-rename-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.agent-profile-card:hover .btn-rename-pill {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.12);
}

.all-skills-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 14px;
}
.all-skills-modal-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 14px);
  padding: 14px;
  transition: background 0.2s ease;
}

.studio-top-integrated-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.15rem;
  margin-bottom: 12px;
  gap: 12px;
}

.studio-agent-name-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.studio-agent-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #ffffff);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.btn-rename-agent {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.btn-rename-agent:hover {
  opacity: 1;
  color: var(--text-main, #ffffff);
  background: rgba(255, 255, 255, 0.08);
}
html.light .btn-rename-agent:hover {
  background: rgba(0, 0, 0, 0.05);
}

.studio-role-switcher {
  position: relative;
  display: flex;
  background: rgba(0, 0, 0, 0.32);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 184px;
  box-sizing: border-box;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1.5px 3.5px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

html.light .studio-role-switcher {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.08);
}

.studio-role-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.studio-role-switcher.mode-seller .studio-role-glider {
  transform: translateX(0);
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25);
}

.studio-role-switcher.mode-consumer .studio-role-glider {
  transform: translateX(calc(100%));
  background: rgba(232, 101, 10, 0.18);
  border: 1px solid rgba(232, 101, 10, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25);
}

html.light .studio-role-switcher.mode-seller .studio-role-glider {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.12);
}

html.light .studio-role-switcher.mode-consumer .studio-role-glider {
  background: rgba(232, 101, 10, 0.14);
  border: 1px solid rgba(232, 101, 10, 0.32);
  box-shadow: 0 2px 6px rgba(232, 101, 10, 0.12);
}

.studio-role-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.studio-role-switcher.mode-seller .studio-role-btn.btn-role-seller.active {
  color: #38bdf8 !important;
}
.studio-role-switcher.mode-consumer .studio-role-btn.btn-role-consumer.active {
  color: #ff8a3d !important;
}

html.light .studio-role-switcher.mode-seller .studio-role-btn.btn-role-seller.active {
  color: #0284c7 !important;
}
html.light .studio-role-switcher.mode-consumer .studio-role-btn.btn-role-consumer.active {
  color: #c2410c !important;
}

/* ─── SLOT MACHINE ROLLER ANIMATION ─── */
.slot-roller-wrap {
  display: inline-block;
  height: 18px;
  line-height: 18px;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}

.slot-roller-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.slot-item {
  height: 18px;
  line-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 600;
}

.slot-item.slot-sub {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.slot-roller-track.roll-step-1 {
  transform: translateY(-18px);
}
.slot-roller-track.roll-step-2 {
  transform: translateY(-36px);
}


/* ─── TRANSIÇÃO FÍSICA DO AVATAR ─── */
.avatar-bust-container.slide-out-left {
  transform: translate3d(-70px, 0, 0) scale(0.9);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease;
}
.avatar-bust-container.slide-out-right {
  transform: translate3d(70px, 0, 0) scale(0.9);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease;
}
.avatar-bust-container.slide-in-from-right {
  transform: translate3d(70px, 0, 0) scale(0.9);
  opacity: 0;
}
.avatar-bust-container.slide-in-from-left {
  transform: translate3d(-70px, 0, 0) scale(0.9);
  opacity: 0;
}
.avatar-bust-container.slide-settle {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}



