/* compexinc.com — assessment avatar modal (DRAFT). Uses the site's existing tokens from style.css. */
.avm[hidden] { display: none !important; }
.avm { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.avm__scrim { position: absolute; inset: 0; background: rgba(8, 14, 12, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.avm.on .avm__scrim { opacity: 1; }
.avm__card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--color-surface, #fff); color: var(--color-text, #111); border: 1px solid var(--color-border, #ddd);
  border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.35); padding: 18px; transform: translateY(8px); opacity: 0;
  transition: transform .22s ease, opacity .22s ease; font-family: var(--font-body, system-ui, sans-serif); }
.avm.on .avm__card { transform: none; opacity: 1; }
.avm__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.avm__title { font-family: var(--font-display, inherit); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.avm__x { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--color-text-muted, #555); cursor: pointer; padding: 4px 8px; }
.avm__x:hover { color: var(--color-primary, #0a7); }
.avm__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1210; }
.avm__poster, .avm__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avm__video { opacity: 0; transition: opacity .35s ease; }
.avm.is-live .avm__video { opacity: 1; }
.avm__status { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; font-size: .85rem;
  background: rgba(0,0,0,.6); color: #fff; display: none; }
.avm__status.on { display: inline-block; }
.avm__cc { max-height: 6.5em; overflow-y: auto; margin: 10px 2px 0; font-size: .9rem; color: var(--color-text-muted, #555); }
.avm__line { margin: 2px 0; } .avm__line b { color: var(--color-text, #111); font-weight: 600; }
.avm__note { font-size: .88rem; color: var(--color-text-muted, #555); margin: 12px 0; }
.avm__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.avm__type input { width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--color-border-strong, #bbb);
  background: var(--color-bg, #fff); color: var(--color-text, #111); font: inherit; }
.avm__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.avm-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .avm__scrim, .avm__card, .avm__video { transition: none; } }
@media (max-width: 560px) { .avm { padding: 0; } .avm__card { border-radius: 0; max-height: 100vh; height: 100%; } }
