/* EVA — Tactical Voice Call Interface. Design tokens + components (handoff hifi). */
:root {
  --eva-app: #1a1a1d;
  --eva-stage: #0e0e11;
  --eva-panel: #222228;
  --eva-elev: #2a2a31;
  --eva-text: #f3f3f4;
  --eva-dim: #a8a8b3;
  --eva-border: rgba(255, 255, 255, 0.09);
  --eva-ctrl: rgba(255, 255, 255, 0.07);
  --eva-ctrl-hover: rgba(255, 255, 255, 0.14);
  --eva-accent: #7c83e8;
  --eva-leave: #c4314b;
  --eva-shadow: rgba(0, 0, 0, 0.55);
  --eva-bubble-eva: rgba(124, 131, 232, 0.16);
  --eva-bubble-you: rgba(255, 255, 255, 0.08);
  --eva-green: #3fd18a;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--eva-app);
  color: var(--eva-text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  color: inherit;
}
svg {
  display: block;
}

/* ── app shell ── */
.eva-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--eva-app);
}

/* ── title bar ── */
.eva-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--eva-border);
  flex-shrink: 0;
}
.eva-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.eva-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--eva-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.eva-titlelines {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.eva-title {
  font-size: 13.5px;
  font-weight: 600;
}
.eva-subrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--eva-dim);
}
.eva-titleactions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eva-timer {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--eva-ctrl);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.eva-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eva-green);
  box-shadow: 0 0 6px var(--eva-green);
  animation: evaOnline 2.4s ease-in-out infinite;
}
@keyframes evaOnline {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.eva-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 7px;
  background: var(--eva-ctrl);
  color: var(--eva-text);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s;
}
.eva-btn:hover {
  background: var(--eva-ctrl-hover);
}
.eva-btn.accent {
  background: var(--eva-accent);
  color: #fff;
}
.eva-btn.accent:hover {
  filter: brightness(1.08);
}
.eva-iconbtn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--eva-ctrl);
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.eva-iconbtn:hover {
  background: var(--eva-ctrl-hover);
}

/* ── body ── */
.eva-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.eva-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  background: var(--eva-stage);
  min-width: 0;
}
.eva-tile {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(120% 120% at 50% 30%, #16161c 0%, #0c0c0f 70%);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: evaTileIn 0.55s ease both;
}
:root.light .eva-tile {
  background: radial-gradient(120% 120% at 50% 30%, #f4f4f8 0%, #e3e3ea 72%);
}
@keyframes evaTileIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eva-orb {
  width: min(46vmin, 360px);
  aspect-ratio: 1;
  position: relative;
}
.eva-orb canvas {
  width: 100% !important;
  height: 100% !important;
}
.eva-twinkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: evaTwinkle 6s ease-in-out infinite;
}
@keyframes evaTwinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  50% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.eva-speakring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.eva-tile[data-speaking="1"] .eva-speakring {
  opacity: 1;
  animation: evaSpeak 1.8s ease-in-out infinite;
}
@keyframes evaSpeak {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 131, 232, 0);
  }
  50% {
    box-shadow: 0 0 60px 8px rgba(124, 131, 232, 0.28);
  }
}

.eva-namechip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(10, 10, 13, 0.6);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
}
:root.light .eva-namechip {
  background: rgba(255, 255, 255, 0.62);
}
.eva-namechip .st {
  color: var(--eva-dim);
  font-weight: 500;
}
.eva-namechip .st[data-tone="accent"] {
  color: var(--eva-accent);
}
.eva-namechip .st[data-tone="green"] {
  color: var(--eva-green);
}

/* self PiP */
.eva-pip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 184px;
  height: 116px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #0c0c0f;
  box-shadow: 0 10px 30px -10px var(--eva-shadow);
  display: grid;
  place-items: center;
}
.eva-pip[data-listening="1"] {
  border-color: var(--eva-green);
}
.eva-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.eva-pip-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--eva-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.eva-pip-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10, 10, 13, 0.62);
  font-size: 11px;
}
/* mic meter on the YOU tile — thin bar driven by snapshot.micLevel; green while VAD is active */
.eva-miclevel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.eva-miclevel > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--eva-accent);
  transition:
    width 0.08s linear,
    background 0.15s;
}
.eva-miclevel[data-vad="1"] > i {
  background: var(--eva-green);
}

/* loading overlay */
.eva-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  background: radial-gradient(120% 120% at 50% 30%, #16161c 0%, #0c0c0f 70%);
  transition: opacity 0.5s;
  gap: 0;
}
.eva-loading.hide {
  opacity: 0;
  pointer-events: none;
}

/* start gate — real user gesture required to unlock audio before boot */
.eva-startgate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, #16161c 0%, #0c0c0f 70%);
}
.eva-startbtn {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.eva-startbtn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.eva-loadinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 260px;
}
.eva-spinner {
  position: relative;
  width: 56px;
  height: 56px;
  animation: evaSpin 6s linear infinite;
}
.eva-spinner i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--eva-accent);
  transform-origin: 3px 28px;
  animation: evaPulse 1.4s ease-in-out infinite;
}
@keyframes evaSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes evaPulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
.eva-loadlabel {
  font-size: 14px;
  font-weight: 600;
}
.eva-loadstage {
  font-size: 12px;
  color: var(--eva-dim);
  min-height: 16px;
}
.eva-loadbar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--eva-ctrl);
  overflow: hidden;
}
.eva-loadbar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--eva-accent);
  border-radius: 999px;
  transition: width 0.4s;
}
.eva-boot-error {
  color: #ff8d9b;
  font-size: 12px;
  text-align: center;
  max-width: 280px;
}

/* ── chat rail ── */
.eva-rail {
  flex-basis: 340px;
  width: 340px;
  flex-shrink: 0;
  overflow: hidden;
  border-left: 1px solid var(--eva-border);
  background: var(--eva-panel);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition:
    flex-basis 0.4s cubic-bezier(0.3, 1, 0.4, 1),
    width 0.4s cubic-bezier(0.3, 1, 0.4, 1),
    opacity 0.3s;
}
.eva-rail.closed {
  flex-basis: 0;
  width: 0;
  opacity: 0;
  border-left-color: transparent;
}
.eva-rail-inner {
  width: 340px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.eva-rail-head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--eva-border);
  flex-shrink: 0;
}
.eva-rail-head .t {
  font-size: 13.5px;
  font-weight: 600;
}
.eva-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eva-log::-webkit-scrollbar {
  width: 6px;
}
.eva-log::-webkit-scrollbar-thumb {
  background: var(--eva-ctrl-hover);
  border-radius: 999px;
}

.eva-msg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 90%;
  animation: evaMsgIn 0.36s cubic-bezier(0.34, 1.25, 0.64, 1) both;
  position: relative;
}
.eva-msg.eva {
  align-self: flex-start;
}
.eva-msg.you {
  align-self: flex-end;
  align-items: flex-end;
}
.eva-bubble {
  padding: 9px 12px;
  font-size: 13px;
}
.eva-msg.eva .eva-bubble {
  background: var(--eva-bubble-eva);
  border-radius: 3px 12px 12px 12px;
}
.eva-msg.you .eva-bubble {
  background: var(--eva-bubble-you);
  border-radius: 12px 3px 12px 12px;
}
.eva-msg.interim .eva-bubble {
  font-style: italic;
  color: var(--eva-dim);
  border: 1px dashed var(--eva-border);
  background: transparent;
}
.eva-who {
  font-size: 11px;
  color: var(--eva-dim);
  font-weight: 600;
}
.eva-cursor {
  animation: evaDot 1.2s steps(2) infinite;
}
@keyframes evaDot {
  50% {
    opacity: 0;
  }
}
@keyframes evaMsgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* reactions */
.teams-react-btn {
  position: absolute;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eva-elev);
  border: 1px solid var(--eva-border);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 4px 12px -4px var(--eva-shadow);
}
.eva-msg.eva .teams-react-btn {
  right: -10px;
}
.eva-msg.you .teams-react-btn {
  left: -10px;
}
.eva-msg:hover .teams-react-btn {
  opacity: 1;
}
.eva-picker {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--eva-elev);
  border: 1px solid var(--eva-border);
  box-shadow: 0 10px 30px -10px var(--eva-shadow);
  animation: evaPop 0.2s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.eva-picker.above {
  bottom: calc(100% - 12px);
}
.eva-picker.below {
  top: calc(100% - 12px);
}
.eva-msg.eva .eva-picker {
  left: 0;
}
.eva-msg.you .eva-picker {
  right: 0;
}
.eva-picker button {
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
}
.eva-picker button:hover {
  background: var(--eva-ctrl-hover);
}
.teams-reactions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.teams-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--eva-ctrl);
  font-size: 12px;
  animation: evaPop 0.2s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes evaPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* tool card */
.eva-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--eva-elev);
  border: 1px solid var(--eva-border);
  align-self: flex-start;
  max-width: 90%;
  animation: evaMsgIn 0.36s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}
.eva-tool .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(124, 131, 232, 0.16);
  color: var(--eva-accent);
  flex-shrink: 0;
}
.eva-tool .lab {
  font-size: 12.5px;
  font-weight: 600;
}
.eva-tool .det {
  font-size: 11.5px;
  color: var(--eva-dim);
}
.eva-tool .spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--eva-ctrl-hover);
  border-top-color: var(--eva-accent);
  border-radius: 50%;
  animation: evaSpin 0.8s linear infinite;
  margin-left: auto;
}
.eva-tool .ok {
  margin-left: auto;
  color: var(--eva-green);
}

.eva-thinking {
  display: flex;
  gap: 4px;
  align-self: flex-start;
  padding: 10px 12px;
}
.eva-thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eva-dim);
  animation: evaBounce 1.2s ease-in-out infinite;
}
.eva-thinking i:nth-child(2) {
  animation-delay: 0.15s;
}
.eva-thinking i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes evaBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.eva-composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--eva-border);
  flex-shrink: 0;
}
.eva-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--eva-ctrl);
  border: 1px solid transparent;
  color: var(--eva-text);
  font-size: 13px;
  outline: none;
}
.eva-input:focus {
  border-color: var(--eva-accent);
}
.eva-send {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--eva-accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.eva-send:hover {
  filter: brightness(1.08);
}

/* ── error strip (dismissible; driven by snapshot.lastError + boot failures) ── */
.eva-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid rgba(196, 49, 75, 0.45);
  background: rgba(196, 49, 75, 0.14);
  color: #ff8d9b;
  font-size: 12.5px;
  flex-shrink: 0;
  animation: evaMsgIn 0.36s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}
.eva-error .msg {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eva-error .eva-btn {
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
}

/* ── control bar ── */
.eva-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--eva-border);
  background: var(--eva-app);
  flex-shrink: 0;
}
.eva-cbtn {
  position: relative;
  width: 54px;
  height: 48px;
  border-radius: 10px;
  background: var(--eva-ctrl);
  color: var(--eva-text);
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.eva-cbtn:hover {
  background: var(--eva-ctrl-hover);
}
.eva-cbtn.active {
  background: var(--eva-accent);
  color: #fff;
}
.eva-cbtn .ring {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
}
.eva-cbtn[data-listening="1"] .ring {
  box-shadow: 0 0 0 2px var(--eva-accent);
  animation: evaRing 1.4s ease-out infinite;
}
@keyframes evaRing {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 131, 232, 0.5);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(124, 131, 232, 0);
  }
}
.eva-leave-btn {
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--eva-leave);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.eva-leave-btn:hover {
  filter: brightness(1.08);
}

/* ── overlays ── */
.eva-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 11, 0.62);
  backdrop-filter: blur(4px);
  animation: evaScaleIn 0.2s ease both;
}
@keyframes evaScaleIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.eva-modal {
  width: 440px;
  max-width: calc(100% - 32px);
  border-radius: 16px;
  background: var(--eva-panel);
  border: 1px solid var(--eva-border);
  box-shadow: 0 30px 80px -22px var(--eva-shadow);
  padding: 18px 20px 20px;
  animation: evaPop 0.24s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.eva-modal-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.eva-modal-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(124, 131, 232, 0.16);
  color: var(--eva-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.eva-modal-title {
  font-size: 16px;
  font-weight: 600;
}
.eva-modal-sub {
  font-size: 12.5px;
  color: var(--eva-dim);
}
.eva-modal-x {
  margin-left: auto;
}
.eva-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.eva-uplabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eva-dim);
  margin-bottom: 8px;
}
.eva-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.eva-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: var(--eva-ctrl);
  font-size: 12.5px;
}
.eva-pill .av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eva-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.eva-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--eva-ctrl-hover);
  color: var(--eva-dim);
}
.eva-badge.green {
  background: rgba(63, 209, 138, 0.16);
  color: var(--eva-green);
}
.eva-field {
  display: flex;
  gap: 8px;
}
.eva-link-input,
.eva-email-input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--eva-ctrl);
  border: 1px solid transparent;
  color: var(--eva-text);
  font-size: 12.5px;
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.eva-email-input:focus {
  border-color: var(--eva-accent);
}
.eva-link-input span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.eva-pillbtn {
  height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--eva-accent);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.eva-pillbtn.copied {
  background: #2faa6a;
}
.eva-pillbtn:disabled {
  background: var(--eva-ctrl);
  color: var(--eva-dim);
  cursor: default;
}
.eva-sent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eva-sent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: evaMsgIn 0.36s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}
.eva-sent-row .av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 131, 232, 0.2);
  color: var(--eva-accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.eva-sent-row .em {
  flex: 1;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eva-modal-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--eva-dim);
}

.eva-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--eva-elev);
  border: 1px solid var(--eva-border);
  box-shadow: 0 14px 40px -12px var(--eva-shadow);
  font-size: 13px;
  animation: evaPop 0.24s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.eva-toast .chk {
  color: var(--eva-accent);
}

.eva-ended {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--eva-app);
  animation: evaScaleIn 0.3s ease both;
}
.eva-ended-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.eva-ended-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--eva-ctrl);
  color: var(--eva-dim);
  display: grid;
  place-items: center;
}
.eva-ended-title {
  font-size: 19px;
  font-weight: 600;
}
.eva-ended-dur {
  font-size: 13px;
  color: var(--eva-dim);
}

/* test bar (dev-only synthetic utterances) */
.eva-testbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid var(--eva-border);
  background: var(--eva-stage);
  font-size: 11px;
  color: var(--eva-dim);
}
.eva-testbar button {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--eva-ctrl);
  color: var(--eva-text);
  font-size: 11px;
}
.eva-testbar button:hover {
  background: var(--eva-ctrl-hover);
}
.eva-testbar button:disabled {
  opacity: 0.5;
  cursor: default;
}
.hidden {
  display: none !important;
}
