/* Shared by careers-assessment.php (real test) and careers-practice.php (demo) */
    * { box-sizing: border-box; }
    :root { --c: #00BFFF; --c2: #0080FF; --o: #FF8C00; --ink: #0f172a; --mut: #64748b; --line: #e2e8f0; --soft: #f8fafc; --ok: #16a34a; --bad: #dc2626; }
    body { margin: 0; font-family: 'Inter', sans-serif; color: #334155; background: #f1f5f9; -webkit-font-smoothing: antialiased; }
    h1, h2, h3 { font-family: 'Poppins', sans-serif; color: var(--ink); letter-spacing: -.02em; }
    .ax-shell { max-width: 780px; margin: 0 auto; padding: 32px 16px 60px; }
    .ax-brand { display: flex; align-items: center; gap: 10px; font: 800 .95rem 'Poppins', sans-serif; color: var(--ink); margin-bottom: 20px; }
    .ax-brand img { width: 36px; height: 36px; border-radius: 9px; } .ax-brand span { color: var(--o); } .ax-brand em { font-style: normal; color: var(--mut); font-weight: 600; }
    .card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 20px 50px -34px rgba(15,23,42,.4); }
    .card + .card { margin-top: 16px; }
    .card h1 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 0 0 8px; }
    .card h3 { font-size: 1.02rem; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
    .card h3 i { color: var(--c2); }
    .muted { color: var(--mut); }
    .eyebrow { color: var(--mut); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
    .hero-top { display: flex; gap: 16px; align-items: center; }
    .hero-ic { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), var(--c2)); color: #fff; font-size: 1.4rem; }
    .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0; }
    .kv div { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .78rem; color: var(--mut); }
    .kv b { display: block; font-size: 1.1rem; color: var(--ink); }
    .parts { display: grid; gap: 8px; }
    .part { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
    .part > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e0f2fe; color: #0284c7; }
    .part b { display: block; color: var(--ink); font-size: .92rem; } .part small { color: var(--mut); font-size: .8rem; }
    .part .r { text-align: right; font-size: .8rem; color: var(--mut); } .part .r b { font-size: .95rem; }
    .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .chk { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--soft); font-size: .86rem; line-height: 1.45; }
    .chk i { color: var(--ok); margin-top: 2px; }
    .rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
    .rules li { display: flex; gap: 12px; font-size: .9rem; line-height: 1.55; }
    .rules i { color: var(--c2); margin-top: 4px; width: 16px; text-align: center; flex: 0 0 auto; }
    .rules li.warn i { color: var(--bad); }
    .note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .86rem; line-height: 1.5; margin-bottom: 14px; }
    .note.amber { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
    .note.red { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
    .agree { display: flex; gap: 12px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 14px; font-size: .9rem; line-height: 1.5; margin: 0 0 16px; cursor: pointer; }
    .agree input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--o); flex: 0 0 auto; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 22px; border-radius: 12px; border: 0; font: 800 .95rem 'Inter', sans-serif; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2)); cursor: pointer; text-decoration: none; transition: transform .15s, opacity .15s; }
    .btn:hover { transform: translateY(-1px); }
    .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
    .btn.orange { background: linear-gradient(135deg, #ffa733, var(--o)); }
    .btn.big { width: 100%; padding: 16px; font-size: 1rem; }
    .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
    .state { text-align: center; }
    .state .ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.9rem; background: #e0f2fe; color: #0284c7; }
    .state p { max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.65; }
    .tl { list-style: none; padding: 0; margin: 22px auto 6px; max-width: 460px; text-align: left; }
    .tl li { position: relative; padding: 0 0 18px 38px; font-size: .9rem; line-height: 1.5; color: var(--mut); }
    .tl li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
    .tl li:last-child::before { display: none; }
    .tl li i { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--line); color: var(--mut); }
    .tl li.done i { background: #dcfce7; color: var(--ok); } .tl li.now i { background: #fff7ed; color: var(--o); }
    .tl b { display: block; color: var(--ink); }

    /* ── Test ── */
    body.testing { user-select: none; -webkit-user-select: none; background: var(--soft); }
    .tbar { position: sticky; top: 0; z-index: 30; background: #0b1324; color: #e2e8f0; }
    .tbar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
    .tbar .ttl { font-weight: 700; font-size: .9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tbar .ttl small { color: #94a3b8; font-weight: 600; margin-left: 6px; }
    .pill { display: inline-flex; gap: 7px; align-items: center; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.08); font-weight: 800; font-size: .84rem; white-space: nowrap; border: 0; color: inherit; font-family: inherit; }
    .pill.time { background: rgba(0,191,255,.16); color: #7dd3fc; font-variant-numeric: tabular-nums; font-size: .95rem; }
    .pill.time.low { background: rgba(220,38,38,.25); color: #fecaca; animation: pulse 1.4s infinite; }
    @keyframes pulse { 50% { opacity: .65; } }
    .pill.strk.hit { background: rgba(234,88,12,.28); color: #fed7aa; }
    .pill.navbtn { cursor: pointer; display: none; }
    .save { font-size: .76rem; color: #94a3b8; white-space: nowrap; } .save.off { color: #fca5a5; } .save i { margin-right: 4px; }
    .prog { height: 4px; background: #1e293b; } .prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), var(--o)); transition: width .3s; }
    .twrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 120px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; align-items: start; }
    .sec-h { margin: 30px 0 12px; display: flex; align-items: center; gap: 12px; scroll-margin-top: 80px; }
    .sec-h:first-child { margin-top: 0; }
    .sec-h > i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #e0f2fe; color: #0284c7; flex: 0 0 auto; }
    .sec-h h2 { font-size: 1.12rem; margin: 0; } .sec-h small { display: block; color: var(--mut); font-weight: 600; font-size: .8rem; }
    .q { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; scroll-margin-top: 80px; transition: border-color .2s, box-shadow .2s; }
    .q.answered { border-color: #bae6fd; }
    .q.flash { box-shadow: 0 0 0 4px rgba(255,140,0,.3); border-color: var(--o); }
    .q-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .76rem; font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
    .q-h .st { text-transform: none; letter-spacing: 0; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #f1f5f9; }
    .q.answered .q-h .st { background: #dcfce7; color: var(--ok); }
    .q p.prompt { margin: 0 0 14px; font-size: 1rem; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }
    .opt { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: .94rem; line-height: 1.5; transition: background .15s, border-color .15s; }
    .opt:hover { background: var(--soft); }
    .opt .let { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: #f1f5f9; color: var(--mut); }
    .opt input { position: absolute; opacity: 0; pointer-events: none; }
    .opt:has(input:checked) { border-color: var(--c); background: #f0f9ff; }
    .opt:has(input:checked) .let { background: var(--c2); color: #fff; }
    .opt:has(input:focus-visible) { outline: 3px solid rgba(0,191,255,.35); }
    .clear { background: none; border: 0; color: var(--mut); font: 600 .78rem 'Inter', sans-serif; cursor: pointer; padding: 4px 0; }
    .clear:hover { color: var(--bad); }
    textarea.w { width: 100%; min-height: 240px; padding: 14px; border: 1.5px solid #cbd5e1; border-radius: 12px; font: .96rem/1.65 'Inter', sans-serif; resize: vertical; user-select: text; -webkit-user-select: text; color: var(--ink); }
    textarea.w:focus { outline: 3px solid rgba(0,191,255,.2); border-color: var(--c); }
    .wc { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--mut); margin-top: 6px; }
    .wc b { color: var(--ink); } .wc .good b { color: var(--ok); }
    .tfoot { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
    .tfoot p { margin: 0; font-size: .9rem; }
    /* Question map */
    .qmap { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
    .qmap h4 { margin: 0 0 4px; font: 800 .9rem 'Poppins', sans-serif; color: var(--ink); }
    .qmap .sum { font-size: .8rem; color: var(--mut); margin-bottom: 12px; }
    .qmap .sl { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); margin: 12px 0 6px; }
    .qmap .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .qmap a { display: grid; place-items: center; height: 34px; border-radius: 9px; border: 1.5px solid var(--line); font-weight: 800; font-size: .82rem; color: var(--mut); text-decoration: none; background: #fff; }
    .qmap a.done { background: var(--c2); border-color: var(--c2); color: #fff; }
    .qmap a:hover { border-color: var(--c); }
    .qmap .legend { display: flex; gap: 12px; margin-top: 14px; font-size: .72rem; color: var(--mut); }
    .qmap .legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--line); }
    .qmap .legend span.d::before { background: var(--c2); border-color: var(--c2); }
    .wm { position: fixed; inset: 0; pointer-events: none; z-index: 15; opacity: .045; overflow: hidden; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 60px 80px; padding: 40px; transform: rotate(-18deg) scale(1.4); font: 700 15px 'Inter', sans-serif; color: var(--ink); }
    /* Overlays */
    .gate, .modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 18px; }
    .gate { background: rgba(11,19,36,.97); color: #e2e8f0; text-align: center; }
    .modal { background: rgba(15,23,42,.6); }
    .gate.on, .modal.on { display: grid; }
    .gate .box { max-width: 470px; }
    .gate .gi { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(0,191,255,.15); color: var(--c); }
    .gate.warn .gi { background: rgba(234,88,12,.2); color: #fdba74; }
    .gate h2 { color: #fff; margin: 0 0 10px; font-size: 1.5rem; } .gate p { line-height: 1.65; color: #cbd5e1; margin: 0 0 22px; }
    .dots { display: flex; justify-content: center; gap: 8px; margin: -8px 0 20px; }
    .dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.15); } .dots i.on { background: #fb923c; }
    .modal .card { max-width: 460px; width: 100%; }
    .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
    .chips a { padding: 6px 11px; border-radius: 99px; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; font-weight: 700; font-size: .8rem; text-decoration: none; }
    .toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; display: none; max-width: calc(100vw - 32px); box-shadow: 0 14px 34px -12px rgba(0,0,0,.4); background: #1e293b; }
    .toast.on { display: flex; gap: 10px; align-items: center; } .toast.bad { background: #b91c1c; } .toast.info { background: #0369a1; }
    @media (max-width: 1100px) {
        .twrap { grid-template-columns: 1fr; }
        .qmap { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 40; border-radius: 20px 20px 0 0; max-height: 70vh; transform: translateY(110%); transition: transform .25s; box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4); }
        .qmap.open { transform: none; }
        .qmap .grid { grid-template-columns: repeat(8, 1fr); }
        .pill.navbtn { display: inline-flex; }
    }
    @media (max-width: 640px) {
        .card { padding: 20px; } .q { padding: 16px; } .tbar-in { gap: 6px; padding: 8px 10px; } .save, .tbar .ttl small { display: none; }
        .kv { grid-template-columns: 1fr 1fr; } .checks { grid-template-columns: 1fr; } .part { grid-template-columns: 36px 1fr; } .part .r { grid-column: 2; text-align: left; }
        .qmap .grid { grid-template-columns: repeat(6, 1fr); } .tfoot .btn { width: 100%; }
        .pill { padding: 6px 9px; font-size: .78rem; }
    }
