/* TALNEXQ QI Interview — shared styles (dark "QI" theme) */
:root {
  --bg: #050911; --bg2: #0a1120; --panel: #0e1729; --panel2: #121e34; --line: #1c2a45; --line2: #263758;
  --text: #e8eefb; --muted: #8ea2c6; --dim: #5d6f92;
  --blue: #2f7bff; --blue2: #5b9bff; --cyan: #22d3ee; --violet: #8b5cf6;
  --green: #22c55e; --amber: #f59e0b; --red: #ef4444;
  --radius: 14px; --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(1200px 600px at 80% -10%, rgba(47, 123, 255, .12), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(139, 92, 246, .10), transparent 60%), var(--bg);
  color: var(--text); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; font-weight: 650; letter-spacing: .2px; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; } .mono { font-family: var(--mono); }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

/* brand */

/* layout */
.topbar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: rgba(5, 9, 17, .7); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { color: var(--muted); padding: 7px 12px; border-radius: 9px; font-weight: 550; }
.topbar nav a.active, .topbar nav a:hover { color: var(--text); background: var(--panel2); text-decoration: none; }
.page { max-width: 1220px; margin: 0 auto; padding: 24px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin: 0 0 10px; font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  padding: 9px 15px; border-radius: 10px; font: 600 14px var(--font); cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--blue); text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--blue), #4f46e5); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(47, 123, 255, .35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.success { background: var(--green); border-color: transparent; color: #04140a; }
.btn.danger { color: #ffb4b4; border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .08); }
.btn.ghost { background: transparent; }
.btn.big { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.btn.small { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; background: #08101e; border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 9px 11px; font: 14px var(--font); outline: none; }
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 123, 255, .18); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); vertical-align: -3px; }
.field { margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); margin-bottom: 8px; cursor: pointer; font-size: 14px; color: var(--text); font-weight: 500; }
.check input { margin-top: 2px; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 8px 13px; font: 600 13px var(--font); cursor: pointer; }
.seg button.on { background: var(--blue); color: #fff; }

/* badges & status */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid var(--line2); color: var(--muted); background: rgba(255, 255, 255, .03); white-space: nowrap; }
.badge.blue { color: #a9c8ff; border-color: rgba(47, 123, 255, .45); background: rgba(47, 123, 255, .1); }
.badge.green { color: #8ff0b0; border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); }
.badge.amber { color: #ffd58a; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); }
.badge.red { color: #ffaaaa; border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
.badge.violet { color: #cdb9ff; border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .1); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .8px; padding: 10px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: rgba(47, 123, 255, .05); }

/* misc */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14px; }
.kv div:nth-child(odd) { color: var(--muted); }
.score { font-size: 34px; font-weight: 750; letter-spacing: -.5px; }
.meter { height: 8px; background: #0a1222; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }
.notice { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(47, 123, 255, .07); font-size: 13.5px; }
.notice.warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .4); }
.notice.err { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .45); }
.notice.ok { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .4); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #0f1b31; border: 1px solid var(--line2); color: var(--text); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100; max-width: 90vw; }
.toast.err { border-color: rgba(239, 68, 68, .6); }
.modal-bg { position: fixed; inset: 0; background: rgba(2, 5, 10, .72); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow: auto; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: var(--blue2); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; font: 600 14px var(--font); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--blue); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 116px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line2); background: #000; position: relative; font-size: 11px; }
.thumb img { width: 100%; height: 84px; object-fit: cover; display: block; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 5px; background: rgba(0, 0, 0, .65); }
.thumb.bad { border-color: var(--red); } .thumb.ok { border-color: rgba(34, 197, 94, .6); }
.q-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: rgba(255, 255, 255, .015); }
.transcript .t-row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.transcript .t-row .when { color: var(--dim); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.transcript .t-row.bot .who { color: var(--blue2); } .transcript .t-row.cand .who { color: var(--cyan); } .transcript .t-row.warn .who { color: var(--amber); }
.who { font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
video.player { width: 100%; border-radius: 12px; background: #000; border: 1px solid var(--line); max-height: 420px; }
.timeline { position: relative; height: 26px; background: #08101e; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.timeline i { position: absolute; top: 3px; bottom: 3px; width: 4px; border-radius: 3px; background: var(--amber); cursor: pointer; }
.timeline i.high { background: var(--red); }

/* portal sign-in pages and the link back to TALNEXQ */
.sso-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sso-card { width: min(460px, 100%); text-align: center; }
.portal-back { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); text-decoration: none; margin-left: 10px; }
.portal-back:hover { color: var(--text); border-color: var(--blue); }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.secret-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* official TALNEXQ logo (brand assets: orbital Q + wordmark, final Q in blue) — never redrawn as text */
.brand-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-logo:hover { text-decoration: none; }
.brand-logo img { height: 34px; width: auto; display: block; }
.brand-logo .prod { font-size: 10.5px; letter-spacing: 2px; color: var(--muted); font-weight: 600; border-left: 1px solid var(--line2); padding-left: 12px; line-height: 20px; }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand img { height: 60px; width: auto; display: block; margin: 0 auto 6px; }
.sso-card .login-brand img { height: 52px; }
@media (max-width: 640px) { .brand-logo img { height: 28px; } .brand-logo .prod { display: none; } }
