/* TC Logger Event Floor, module E: interview bar, auto-start chip, marker/line/history sheets. Uses app tokens. */
.ev-bar { display: flex; gap: 8px; margin: 8px 0; }
.ev-btn { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.3)); background: var(--card, rgba(127,127,127,.12)); color: inherit; font: inherit; font-weight: 600; }
.ev-btn[disabled] { opacity: .45; }
.ev-good { flex: 0 0 auto; padding: 0 14px; color: #c99a00; }
.ev-chip { display: block; width: 100%; margin-top: 6px; padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--accent, #2f7df6); background: transparent; color: var(--accent, #2f7df6); font: inherit; font-size: 13px; }
.ev-step { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.ev-step > span { width: 48px; color: var(--dim, #888); }
.ev-step .mono { flex: 1; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ev-hist-list { list-style: none; margin: 0; padding: 0; }
.ev-hist { padding: 8px 0; border-bottom: 1px solid var(--line, rgba(127,127,127,.2)); }
.ev-hist small { display: block; color: var(--dim, #888); }
.ev-hist.undone { opacity: .5; text-decoration: line-through; }
.ev-warn { color: #d98a00; }
#evLineText { width: 100%; box-sizing: border-box; font: inherit; }

/* One full-width Start / Stop interview button: press = shrink + darken + glow ring, spring release, pulsing ring while running. */
.ev-main { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px;
  background: linear-gradient(#34c759, #28a745); color: #fff; font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; position: relative;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), filter .12s, box-shadow .2s, background-color .3s; -webkit-tap-highlight-color: transparent; }
.ev-main.running { background: linear-gradient(#ff453a, #d93a3a);  }
.ev-main:active { filter: brightness(.75); transition: filter .12s; box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 0 18px 4px rgba(52,199,89,.7); }
.ev-main.running:active { box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 0 18px 4px rgba(255,69,58,.7); }
.ev-main.pop { animation: none; }
.ev-main.running.pop { animation: none; }
.ev-main-ic { font-size: 20px; } .ev-main-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.ev-main-tx b, .ev-main-tx small { white-space: nowrap; } .ev-main-tx small { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .85; }
.ev-bar .ev-good { flex: 0 0 56px; min-height: 56px; padding: 0; font-size: 22px; border-radius: 16px; }
@keyframes evPop { 0% { transform: scale(.92); } 45% { transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes evShade { 0%, 100% { filter: none; } 50% { filter: brightness(.8) saturate(1.1); } }
@media (prefers-reduced-motion: reduce) { .ev-main, .ev-main.running, .ev-main.pop { animation: none; transition: none; } }

/* 05.11: Start (green) ↔ Stop (red) cross-fade, Stop never looks dim, Good Tag with a text label, chip never covers the controls */
.ev-main::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(#ff453a, #d93a3a); opacity: 0; transition: opacity .3s; }
.ev-main.running { background: linear-gradient(#34c759, #28a745); }
.ev-main.running::before { opacity: 1; }
.ev-main > span { position: relative; z-index: 1; }
.ev-main.running, .ev-main.running .ev-main-tx small { opacity: 1; color: #fff; filter: none; }
.ev-main.running:active { filter: brightness(.75); }
.ev-main:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ev-bar .ev-good { flex: 0 0 auto; min-width: 56px; padding: 0 14px; display: flex; align-items: center; gap: 6px; font-size: 15px; }
.ev-bar .ev-good .ev-good-ic { font-size: 22px; line-height: 1; }
.ev-bar .ev-good:active { transform: scale(.9); transition: transform .07s; }
@media (max-width: 360px) { .ev-bar .ev-good .ev-good-tx { display: none; } }
.ev-chip { position: static; white-space: normal; }
.ev-bar .ev-addsp { color: var(--accent, #0a84ff); }

/* Event bar: "⋯" menu (Interviewer…, Edit speaker, Team) replaces the removed speaker strip */
.ev-bar { position: relative; }
.ev-more { flex: 0 0 auto; min-width: 44px; font-size: 20px; }
.ev-menu { position: absolute; z-index: 30; right: 12px; margin-top: 4px; min-width: 220px; border-radius: 14px; padding: 4px; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ev-menu .row { text-align: start; padding: 10px 12px; background: none; border: 0; color: inherit; font: inherit; }
.ev-main .ev-main-tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
.ev-ivline { background: none; border: 0; color: inherit; font: inherit; padding: 4px 0 8px; text-align: start; }
.ev-link { background: none; border: 0; color: var(--accent, #0a84ff); font: inherit; padding: 10px 0; }
.ev-set-team { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Add speaker: camera never covers the buttons; Cancel/Save stay visible on small screens. */
.ev-add [data-camhost] { height: 260px; max-height: 38vh; overflow: hidden; border-radius: 12px; position: relative; }
.ev-add [data-camhost] video, .ev-add [data-camhost] img { width: 100%; height: 100%; object-fit: cover; }
.ev-add .ev-actions { position: sticky; bottom: 0; z-index: 2; background: var(--bg, #1c1c1e); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 8px; }
.ev-main:not(.running) { animation: none; scale: 1; }

/* Running pulse stays inside the button: the red layer breathes inset 3px ↔ 0, the button box never grows. */
.ev-main.running { background: transparent; }
.ev-main.running::before { animation: evShade 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ev-main.running::before { animation: none; inset: 0; } }
/* 06.11 audit: same width for Start and Stop (flex basis 0, long "since TC" line ellipsizes instead of widening the button). */
.ev-main { min-width: 0; padding: 0 18px; box-sizing: border-box; } .ev-main .ev-main-tx { min-width: 0; overflow: hidden; } .ev-main .ev-main-tx b { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 420px) { .ev-bar .ev-addsp .ev-good-tx { display: none; } }
