/* TC Logger Event Floor (module A). Uses the app's CSS variables when present (--bg, --fg, --dim, --card, --accent). */
.ev-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.ev-sheet { background: var(--card, var(--bg, #fff)); color: var(--fg, var(--text, #111)); color-scheme: light dark; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; }
@media (min-width: 700px) { .ev-backdrop { align-items: center; } .ev-sheet { border-radius: 16px; } }
.ev-sheet h2 { margin: 0 0 12px; font-size: 1.2em; } .ev-sheet h3 { margin: 16px 0 6px; font-size: .95em; color: var(--dim, #666); }
.ev-field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; } .ev-field span { font-size: .85em; color: var(--dim, #666); }
.ev-field input, .ev-field textarea, .ev-field select, .ev-row select, .ev-rrow input, .ev-rrow select {
  font: inherit; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; min-width: 0; }
.ev-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; } .ev-row select { max-width: 60%; }
.ev-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.ev-actions button, .ev-btn { font: inherit; padding: 9px 16px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; cursor: pointer; }
.ev-primary { background: var(--accent, #1f6fd1) !important; color: #fff !important; border-color: transparent !important; }
.ev-seg { display: flex; border: 1px solid rgba(127,127,127,.35); border-radius: 10px; overflow: hidden; }
.ev-seg button { flex: 1; font: inherit; padding: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ev-seg button.on { background: var(--accent, #1f6fd1); color: #fff; }
.ev-dim { color: var(--dim, #666); font-size: .85em; margin: 4px 0; } .ev-warn { color: #c2410c; font-size: .9em; } .ev-mono { font-variant-numeric: tabular-nums; }
.ev-rrow { display: grid; grid-template-columns: minmax(90px, 35%) 1fr auto auto; gap: 6px; margin: 6px 0; align-items: center; }
.ev-icon { font: inherit; min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(127,127,127,.3); background: transparent; color: inherit; cursor: pointer; }
.ev-icon[disabled] { opacity: .3; }
.ev-list { display: flex; flex-direction: column; gap: 6px; }
.ev-item { font: inherit; text-align: start; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(127,127,127,.3); background: transparent; color: inherit; cursor: pointer; }
.ev-item.on { border-color: var(--accent, #1f6fd1); }
.ev-cam { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.ev-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-frame { position: absolute; inset: 12% 10%; border: 2px solid #ffd60a; border-radius: 12px; pointer-events: none; }
.ev-hint { text-align: center; margin: 10px 0 0; }
.ev-photo { width: 100%; max-height: 240px; object-fit: contain; border-radius: 10px; background: rgba(127,127,127,.1); }
.ev-bind { margin: 8px 0; }
.ev-strip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 8px 0; border-radius: 12px; background: rgba(127,127,127,.1); }
.ev-chip { font: inherit; font-size: .85em; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; cursor: pointer;
  max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ev-who b, .ev-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ev-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ev-card b, .ev-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-thumb { height: 110px; border-radius: 10px; background: rgba(127,127,127,.15) center / cover no-repeat; }
.ev-settings h3 { margin: 0 0 8px; }
[dir="rtl"] .ev-rrow, [dir="rtl"] .ev-strip { direction: rtl; }

/* readable roster in the dark theme (text was dark on dark), and options in native dropdowns */
.ev-sheet input, .ev-sheet textarea, .ev-sheet select { color: var(--fg, var(--text, inherit)); background: rgba(127,127,127,.12); }
.ev-sheet select option { background: var(--bg, #fff); color: var(--fg, var(--text, #111)); }
.ev-sheet input::placeholder, .ev-sheet textarea::placeholder { color: var(--dim, #888); }
/* strip: the status text ("No interview") is never cut to "No i…" */
.ev-strip { gap: 6px; } .ev-strip .ev-chip { max-width: 30%; flex: 0 1 auto; }
.ev-who { flex: 1 0 auto; } .ev-who .ev-dim { white-space: nowrap; overflow: visible; }

/* 05.11 dark theme: sheets are solid (no see-through glass), text always light on dark */
.ev-sheet { background: var(--bg, #111); color: var(--text, #f2f5fb); border: 1px solid var(--edge, rgba(255,255,255,.14)); }
.ev-sheet .ev-dim, .ev-sheet h3, .ev-field span { color: var(--dim, #aab); }
.ev-sheet select option { background: var(--bg, #111); color: var(--text, #f2f5fb); }
.ev-actions button { min-height: 44px; }
/* strip: status/name wraps to two lines instead of being cut or pushing the icons off */
.ev-who { flex: 1 1 0; min-width: 72px; cursor: pointer; } .ev-who b, .ev-who .ev-dim { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; overflow-wrap: anywhere; }
.ev-strip .ev-chip { max-width: 34%; }
/* spoken-name chip under the main button */
.ev-namechip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-radius: 14px; cursor: default; margin-top: 6px; }
.ev-namechip > span { flex: 1 1 100%; } .ev-namechip.warn { border-color: rgba(255,159,10,.6); background: rgba(255,159,10,.12); }
.ev-namechip .ev-link { background: none; border: 0; color: inherit; font: inherit; padding: 0; text-align: start; flex: 1 1 auto; cursor: pointer; }
