/*
 * The product visuals used on /cybersecurity-employee-training/:
 *
 * - .qh   the animated hero of the redesigned homepage (website/training-hero-visual)
 * - .fpd  the training-loop diagram (website/training-loop-diagram)
 * - .acx  the Academy session from "Trainings & checkpoints" (website/academy-session-visual)
 * - .rk   the Risk Category Dashboard (website/risk-category-dashboard)
 *
 * Extracted from the design files: only the rules that match these elements,
 * with the design's override layers folded into their final values and its
 * rem sizes multiplied by 1.6 for the site's html{font-size:62.5%}. The step
 * classes (s0..sN, g0..gN) are set by /assets/js/training-visuals.js. Under
 * prefers-reduced-motion every visual shows its final step and nothing moves.
 */

@property --cwshim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.qh, .qh *, .acx, .acx *, .rx-win, .rx-win *, .fpd, .fpd * { box-sizing: border-box; }
/* min-height undoes the site-wide `figure img{min-height:100%}`. */
.qh img, .acx img, .rx-win img, .fpd img { max-width: 100%; min-height: 0; display: block; }
.qh p, .acx p { margin: 0; line-height: 1.65; }

/* ---------- app window chrome (hero + dashboard) ---------- */
.rx-win {
  position: relative; border-radius: 20px; overflow: hidden; color: #fff; text-align: left;
  background: linear-gradient(180deg, #0B2443 0%, #061A33 100%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(147,164,192,.16);
  font-family: 'Quicksand', 'Helvetica Neue', Arial, sans-serif; line-height: 1.5;
}
.rx-bar {
  display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 20px; margin: 0;
  background: rgba(255,255,255,.035); border-bottom: 1px solid rgba(147,164,192,.12);
  font-size: 1.248rem; color: #93A4C0;
}
.rx-bar > i { width: 9px; height: 9px; border-radius: 50%; opacity: .55; }
.rx-bar > i:nth-of-type(1) { background: #FF5F57; }
.rx-bar > i:nth-of-type(2) { background: #FEBC2E; }
.rx-bar > i:nth-of-type(3) { background: #28C840; }
.rx-bar b { margin-left: 10px; color: #fff; font-weight: 600; font-size: 14px; }
.rx-bar .sp { margin-left: auto; }
.rx-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 1.12rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.rx-pill.t { color: #9ADEDA; background: rgba(80,188,189,.14); }
.rx-pill.w { color: #D2D6DF; background: rgba(255,255,255,.08); }
.rx-cur {
  position: absolute; z-index: 9; width: 20px; height: 20px; pointer-events: none;
  background: no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8.2-6.2 1.3L9.6 19z' fill='%23fff' stroke='%2308142E' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

/* ---------- hero: simulation, Academy session, protected view ---------- */
.qh { max-width: 940px; margin: 0 auto; }
.qh-win { max-width: 940px; margin: 0 auto; }
.qh-t { display: none; }
.qh:is(.s0,.s1,.s2,.s3) .t1, .qh:is(.s4,.s5,.s6,.s7) .t2, .qh:is(.s8,.s9,.s10,.s11) .t3 { display: inline; }
.qh-body { position: relative; height: 340px; }
/* Scene changes: the old pane fades out before the new one fades in, so the
   loop back to the inbox never shows two panes at once. */
.qh-pane { position: absolute; inset: 0; padding: 18px 20px; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.qh:is(.s0,.s1,.s2,.s3) .pA, .qh:is(.s4,.s5,.s6,.s7) .pB, .qh:is(.s8,.s9,.s10,.s11) .pC { opacity: 1; transition-delay: .3s; }
.qh .qav { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.qh .qav.lgo { padding: 6px; background: #fff; }
.qh .qav.lgo img { width: 100%; height: 100%; object-fit: contain; }
.qh-tool { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 1.28rem; color: #93A4C0; }
.qh-rep { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font-weight: 700; color: #fff; background: rgba(255,255,255,.07); transition: background .3s, box-shadow .3s; }
.qh-rep svg { width: 14px; height: 14px; color: #9ADEDA; }
.qh-list > li::before { content: none; } /* the site-wide `ul li::before` dot */
.qh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qh-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0; border-radius: 12px; background: rgba(3,16,34,.45); font-size: 1.28rem; }
.qh-list li div { min-width: 0; flex: 1 1 0%; }
.qh-list li b { display: block; color: #fff; font-size: 1.344rem; }
.qh-list li div span { display: block; color: #93A4C0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qh-list time { font-size: 1.152rem; color: #7E92B0; }
.qh-tags { display: flex; gap: 6px; flex: 0 0 auto; }
.qh-list .nw { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transition: .5s; box-shadow: inset 0 0 0 1px rgba(80,188,189,.5); }
.qh-toast { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #061A33; box-shadow: inset 0 0 0 1px rgba(80,188,189,.5), 0 18px 40px -16px rgba(0,0,0,.7); opacity: 0; transform: translateY(10px); transition: .45s; }
.qh-toast .ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #50BCBD; color: #031327; }
.qh-toast .ok svg { width: 16px; height: 16px; stroke-width: 3; }
.qh-toast div { flex: 1 1 0%; }
.qh-toast b { display: block; font-size: 1.408rem; }
.qh-toast span { font-size: 1.248rem; color: #93A4C0; }
.qh-toast .xp { font-weight: 700; color: #9ADEDA; font-size: 1.44rem; }
.qh-sess { display: flex; align-items: center; gap: 12px; font-size: 1.248rem; color: #93A4C0; }
.qh-prog { flex: 1 1 0%; height: 6px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.qh-prog i { display: block; height: 100%; width: 52%; background: #50BCBD; border-radius: 9px; transition: width .8s; }
.qh .qh-q { margin: 18px 0 14px; font-size: 1.632rem; font-weight: 700; color: #fff; }
.qh-opt { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(3,16,34,.45); box-shadow: inset 0 0 0 1px rgba(147,164,192,.14); font-size: 1.376rem; color: #D2D6DF; transition: .35s; }
.qh-opt .rd { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(147,164,192,.5); flex: 0 0 auto; transition: .3s; }
.qh-opt .ck { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #50BCBD; color: #031327; opacity: 0; transform: scale(.5); transition: .35s; }
.qh-opt .ck svg { width: 13px; height: 13px; stroke-width: 3; }
.qh-badge { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #061A33; box-shadow: inset 0 0 0 1px rgba(210,214,223,.35), 0 18px 40px -16px rgba(0,0,0,.7); opacity: 0; transform: translateY(10px) scale(.98); transition: .45s; }
.qh-badge .md { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.qh-badge .mdl-s { background: url(/assets/img/security-awareness-training/img-3a3cb728.png) center/contain no-repeat; }
.qh-badge b { display: block; font-size: 1.408rem; }
.qh-badge span { font-size: 1.248rem; color: #93A4C0; }
.qh-mail { padding: 14px 16px; border-radius: 14px; background: rgba(3,16,34,.45); }
.qh-mail .hd { display: flex; align-items: center; gap: 12px; }
.qh-mail .hd b { display: block; font-size: 1.376rem; }
.qh-mail .hd span { font-size: 1.184rem; color: #93A4C0; }
.qh .qh-mail .sj { margin: 14px 0 10px; font-weight: 700; font-size: 1.52rem; }
.qh-mail .ln { display: block; height: 8px; border-radius: 9px; background: rgba(255,255,255,.08); margin-top: 8px; }
.qh-mail .l1 { width: 92%; }
.qh-mail .l2 { width: 70%; }
.qh-btn { display: inline-block; margin-top: 16px; padding: 9px 16px; border-radius: 9px; background: #3D6FD6; font-size: 1.312rem; font-weight: 700; transition: .2s; }
.qh .qh-pv {
  position: absolute; top: 56px; right: 20px; bottom: 48px; left: 34px; padding: 0; border-radius: 12px; background: #061A33;
  box-shadow: 0 0 0 1.5px rgba(80,188,189,.75), 0 0 22px rgba(80,188,189,.28), 0 24px 50px -18px rgba(0,0,0,.8);
  display: flex; flex-direction: column; overflow: visible; opacity: 0; transform: translateY(14px); transition: .5s;
}
.qh .qh-pv::before, .qh .qh-pv::after {
  content: ""; position: absolute; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: cwShim 5s linear infinite;
}
.qh .qh-pv::before { inset: -2px; border-radius: 14px; padding: 2.5px; z-index: 2; background: conic-gradient(from var(--cwshim), rgba(80,188,189,0) 0deg, rgba(80,188,189,1) 40deg, #fff 62deg, rgba(154,222,218,.9) 84deg, rgba(80,188,189,0) 140deg, rgba(80,188,189,0) 360deg); }
.qh .qh-pv::after { inset: -7px; border-radius: 19px; padding: 7px; z-index: 1; filter: blur(5px); background: conic-gradient(from var(--cwshim), rgba(80,188,189,0) 0deg, rgba(80,188,189,.75) 45deg, rgba(154,222,218,.8) 62deg, rgba(80,188,189,.4) 90deg, rgba(80,188,189,0) 140deg, rgba(80,188,189,0) 360deg); }
.qh .cw-lbl { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: 1.184rem; font-weight: 700; letter-spacing: .04em; color: #9ADEDA; background: #061A33; border-radius: 999px; padding: 3px 13px; box-shadow: inset 0 0 0 1px rgba(80,188,189,.6); }
.qh .pvu { padding: 22px 12px 10px; background: #0B2443; border-radius: 12px 12px 0 0; }
.qh .pvu span { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.184rem; color: #C9D1E0; background: #04142B; border-radius: 999px; padding: 6px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qh .qh-ver { margin: 0; border-radius: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #FCF0E3; box-shadow: none; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s .7s, opacity .45s .7s, padding .45s .7s; }
.qh .qh-ver .sh svg { width: 18px; height: 18px; display: block; }
.qh .qh-ver b { flex: 1 1 0%; min-width: 0; font-size: 1.312rem; color: #B8620C; }
.qh .qh-ver .gb { flex: 0 0 auto; font-size: 1.12rem; font-weight: 700; color: #fff; background: #EE8A1E; border-radius: 7px; padding: 4px 10px; white-space: nowrap; }
.qh .pvb { position: relative; flex: 1 1 0%; margin: 0; min-height: 110px; border-radius: 0 0 12px 12px; background: #0A2342; overflow: hidden; }
.qh .pvb .lgn { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; font-size: 1.216rem; color: #93A4C0; filter: blur(.3px); }
.qh .pvb .lgn svg { width: 14px; height: 14px; }
.qh .pvb .sk { position: absolute; left: 16px; height: 8px; border-radius: 9px; background: rgba(255,255,255,.1); }
.qh .pvb .s1 { top: 44px; width: 40%; }
.qh .pvb .s2 { top: 62px; width: 62%; }
.qh .pvb .bt { top: 82px; width: 24%; height: 14px; background: rgba(61,111,214,.4); }
.qh .pvb .scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(rgba(80,188,189,0), rgba(80,188,189,.25), rgba(80,188,189,0)); animation: hhScan 1.8s linear infinite; }
.qh .qh-safe { position: absolute; left: 0; right: 0; bottom: -30px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 1.28rem; font-weight: 600; color: #9ADEDA; opacity: 0; transition: .4s; }
.qh .qh-safe svg { width: 15px; height: 15px; flex: 0 0 auto; }
.qh .rx-cur { left: 80%; top: 86%; opacity: 0; transition: left .7s cubic-bezier(.5,0,.2,1), top .7s cubic-bezier(.5,0,.2,1), opacity .3s, transform .15s; }

/* The step choreography (qh-steps): without it the scenes only swap.
   A: a simulation lands, is reported, the inbox is cleaned, feedback appears. */
.qh.rs, .qh.rs * { transition: none !important; }
.qh:is(.s1,.s2) .qh-list .nw { max-height: 64px; padding-top: 10px; padding-bottom: 10px; opacity: 1; }
.qh.s2 .qh-rep { background: rgba(80,188,189,.22); box-shadow: inset 0 0 0 1px rgba(80,188,189,.75); }
.qh.s3 .qh-toast { opacity: 1; transform: none; }
/* B: the right answer is picked, confirmed, progress fills, the level unlocks. */
.qh:is(.s5,.s6,.s7) .qh-opt.o1 { box-shadow: inset 0 0 0 1.5px rgba(80,188,189,.8); color: #fff; background: rgba(80,188,189,.08); }
.qh:is(.s5,.s6,.s7) .qh-opt.o1 .rd { box-shadow: inset 0 0 0 5px #50BCBD; }
.qh:is(.s6,.s7) .qh-opt.o1 .ck { opacity: 1; transform: none; }
.qh:is(.s6,.s7) .qh-prog i { width: 58%; }
.qh.s7 .qh-badge { opacity: 1; transform: none; }
/* C: the link is opened, lands in the protected view, verdict and isolation message. */
.qh.s9 .qh-btn { transform: scale(.96); filter: brightness(1.15); }
.qh:is(.s10,.s11) .qh-pv { opacity: 1; transform: none; }
.qh.s11 .qh-ver { max-height: 60px; opacity: 1; padding-top: 8px; padding-bottom: 8px; }
.qh.s11 .qh-safe { opacity: 1; }
/* The cursor shows only on the steps where the employee acts. */
.qh:is(.s2,.s5,.s9) .rx-cur { opacity: 1; }
.qh:is(.s2,.s5,.s9) .rx-cur.press { transform: scale(.85); }

@media (max-width: 560px) {
  .qh-body { height: 380px; }
  .qh-tags .rx-pill.w { display: none; }
  .qh .qh-pv { left: 12px; right: 12px; bottom: 62px; }
  .qh .qh-safe { bottom: -50px; font-size: 1.184rem; text-align: center; padding: 0 6px; }
}
@media (max-width: 420px) {
  .qh-list li { overflow: hidden; }
  .qh-list time { display: none; }
  .qh-tags { display: none !important; }
  .qh-list .nw .qh-tags { display: flex !important; }
  .qh-list li div span { font-size: 1.152rem; }
}

/* ---------- training-loop diagram ---------- */
.fpd { position: relative; max-width: 900px; margin: 8px auto 0; aspect-ratio: 900/500; font-family: 'Quicksand', Arial, sans-serif; text-align: left; line-height: 1.4; }
.fpd-l { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fpd-l .orb { fill: none; stroke: rgba(80,188,189,.14); stroke-width: 1.5; }
.fpd-l .arc { fill: none; stroke: url(#fpdG); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.fpd-l .lnk { fill: none; stroke: rgba(154,222,218,.45); stroke-width: 1.5; stroke-dasharray: 3 6; }
.fpd-l .dot { fill: #9ADEDA; filter: drop-shadow(0 0 4px #50BCBD); }
.fpd-l .run { fill: #E9FFFC; filter: drop-shadow(0 0 8px #50BCBD); }
.fpd-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 190px; padding: 16px 14px; border-radius: 20px; text-align: center; background: linear-gradient(160deg, #1C3466, #0F2045); box-shadow: inset 0 0 0 1.5px rgba(80,188,189,.55), 0 0 40px rgba(80,188,189,.22), 0 24px 50px -20px rgba(0,0,0,.8); }
.fpd-core .halo { position: absolute; inset: -28px; border-radius: 50%; background: radial-gradient(circle, rgba(80,188,189,.22), transparent 65%); z-index: -1; animation: fpdP 4s ease-in-out infinite; }
.fpd-core img { display: block; height: 20px; width: auto; margin: 0 auto 10px; }
.fpd-core b { display: block; font-size: 1.632rem; line-height: 1.3; color: #fff; }
.fpd-n { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); display: flex; align-items: center; gap: 11px; padding: 9px 13px 9px 9px; border-radius: 14px; background: rgba(15,32,69,.92); box-shadow: inset 0 0 0 1px rgba(165,174,191,.18), 0 16px 34px -18px rgba(0,0,0,.8); white-space: nowrap; animation: fpdN 8s ease-in-out infinite; }
.fpd-n.n2 { animation-delay: 2s; }
.fpd-n.n3 { animation-delay: 4s; }
.fpd-n.n4 { animation-delay: 6s; }
.fpd-n .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(160deg, rgba(80,188,189,.28), rgba(80,188,189,.06)); box-shadow: inset 0 0 0 1px rgba(80,188,189,.4); }
.fpd-n .ic svg { width: 19px; height: 19px; fill: none; stroke: #9ADEDA; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fpd-n b { display: block; font-size: 1.376rem; color: #fff; }
.fpd-n small { display: block; margin-top: 2px; font-size: 1.152rem; color: #A5AEBF; }
/* Off screen the diagram stops animating (the class is set by the script). */
.fpd:not(.is-visible) * { animation-play-state: paused; }
@media (max-width: 640px) {
  .fpd { aspect-ratio: auto; display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 360px; }
  .fpd-l { display: none; }
  .fpd-core, .fpd-n { position: relative; left: auto; top: auto; transform: none; }
  .fpd-core { width: auto; margin-bottom: 6px; }
  .fpd-n { white-space: normal; }
}

/* ---------- Academy session (Trainings & checkpoints) ---------- */
.acx {
  --ac-acc: #00BFBE; --ac-acc-t: #7FE3E2; --ac-mut: #93A4C0; --ac-todo: #435673;
  --ac-line: rgba(147,164,192,.12); --ac-line2: rgba(255,255,255,.15);
  position: relative; max-width: 560px; margin: 0 auto; color: #fff; text-align: left; letter-spacing: -.005em;
  font-family: 'Quicksand', 'Helvetica Neue', Arial, sans-serif; line-height: 1.5;
  border-radius: 20px; overflow: hidden; border: 0;
  background: linear-gradient(180deg, #0B2443 0%, #061A33 100%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(147,164,192,.16);
}
.acx .q-top { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; margin: 0; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--ac-line); }
.acx .q-top::before { content: ""; flex: 0 0 auto; width: 39px; height: 9px; margin-right: 4px; background: radial-gradient(4.5px at 4.5px 4.5px, rgba(255,95,87,.55) 98%, transparent) 0 0/9px 9px no-repeat, radial-gradient(4.5px at 4.5px 4.5px, rgba(254,188,46,.55) 98%, transparent) 15px 0/9px 9px no-repeat, radial-gradient(4.5px at 4.5px 4.5px, rgba(40,200,64,.55) 98%, transparent) 30px 0/9px 9px no-repeat; }
.acx .q-bar { display: block; flex: 1 1 0%; height: 5px; border-radius: 9px; background: var(--ac-todo); overflow: hidden; }
.acx .q-bar i { display: block; height: 100%; width: 20%; border-radius: 9px; background: var(--ac-acc); transition: width 1s cubic-bezier(.3,.8,.3,1); }
.acx.g2 .q-bar i { width: 40%; }
.acx .q-mut { color: var(--ac-mut); }
.acx .q-st { font-size: 1.152rem; white-space: nowrap; }
.acx .q-bd { padding: 26px clamp(18px, 4vw, 40px) 20px; }
.acx .q-lv { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(147,164,192,.18); }
.acx .q-lv i { flex: 0 0 auto; width: 34px; height: 34px; }
.acx .q-lv .ai-bz { background: url(/assets/img/security-awareness-training/img-dea874d1.svg) center/contain no-repeat; }
.acx .q-lv span { letter-spacing: .02em; font-size: 1.312rem; font-weight: 600; color: #E2E8F0; }
.acx .q-h { margin: 12px 0 16px; font-size: clamp(1.68rem, 1.8vw, 2.16rem); line-height: 1.25; font-weight: 600; color: #fff; }
.acx .q-op { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.043); box-shadow: inset 0 0 0 1px var(--ac-line2); font-size: 1.344rem; color: #E2E8F0; transition: .35s; }
.acx .q-rd { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); flex: 0 0 auto; transition: .3s; }
.acx .q-ok { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ac-acc); color: #06283A; opacity: 0; transform: scale(.5); transition: .35s; }
.acx .q-ok svg { width: 12px; height: 12px; stroke-width: 3; }
.acx.g1 .q-o2 { box-shadow: inset 0 0 0 1.5px var(--ac-acc); background: rgba(0,191,190,.1); color: #fff; }
.acx.g1 .q-o2 .q-rd { box-shadow: inset 0 0 0 5px var(--ac-acc); }
.acx.g1 .q-o2 .q-ok { opacity: 1; transform: none; }
.acx.g1 .q-o1, .acx.g1 .q-o3 { opacity: .45; }
.acx .q-fb { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 0; font-size: 1.28rem; color: #86EFAC; opacity: 0; transform: translateY(6px); transition: .45s; }
.acx .q-fb b { color: #4ADE80; }
.acx.g1 .q-fb { opacity: 1; transform: none; }
.acx .q-fish { flex: 0 0 auto; width: 58px; height: auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); animation: qFish 3.2s ease-in-out infinite; }
.acx .q-say { position: relative; flex: 1 1 0%; padding: 10px 14px; border-radius: 14px; background: rgba(34,197,94,.08); box-shadow: inset 0 0 0 1px rgba(74,222,128,.3); line-height: 1.45; }
.acx .q-say::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg); background: #11293D; box-shadow: -1px 1px 0 rgba(74,222,128,.3); }
.acx .q-ft { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--ac-line); }
.acx .q-btn-c { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 26px; border-radius: 999px; background: var(--ac-acc); color: #06283A; font-weight: 600; font-size: 1.344rem; transition: transform .2s, box-shadow .3s; }
.acx .q-kb { display: inline-grid; place-items: center; width: 18px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(6,40,58,.5); font-size: 1.056rem; }

/* ---------- Risk Category Dashboard ---------- */
.rk { max-width: 620px; margin: 0 auto; }
.rk .rx-body { padding: 20px; }
.rk-c { padding: 0 2px; }
.rk-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; }
.rk-h b { font-size: 1.44rem; color: #fff; }
.rk-h span { font-size: 1.152rem; color: #7E92B0; }
.rk-r { display: grid; grid-template-columns: 150px 1fr 22px 96px; gap: 12px; align-items: center; padding: 5px 0; font-size: 1.28rem; color: #D2D6DF; }
.rk-r .n { white-space: nowrap; }
.rk-r .b { height: 7px; border-radius: 9px; background: rgba(147,164,192,.12); overflow: hidden; }
.rk-r .b i { display: block; height: 100%; border-radius: 9px; }
.rk-r .b .r { background: #E73458; }
.rk-r .b .o { background: #F5A623; }
.rk-r .b .t { background: #9ADEDA; }
.rk-r > b { text-align: right; color: #fff; }
.rk-r .m { text-align: center; white-space: nowrap; font-size: 1.152rem; color: #9ADEDA; padding: 5px 8px; border-radius: 8px; background: rgba(80,188,189,.1); }
.rk-u { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(147,164,192,.12); }
.rk-uh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rk-uh b { font-size: 1.28rem; color: #fff; }
.rk-uh span { font-size: 1.12rem; color: #7E92B0; }
.rk-ur { display: grid; grid-template-columns: 24px minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 1.184rem; color: #93A4C0; }
.rk-ur img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rk-ur b { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-ur em { font-style: normal; font-size: 1.088rem; color: #9ADEDA; padding: 4px 8px; border-radius: 7px; background: rgba(80,188,189,.1); }
@media (max-width: 640px) {
  .rk-r .m, .rk-h span { display: none; }
}
@media (max-width: 560px) {
  .rk-r { grid-template-columns: minmax(0,1fr) minmax(60px,90px) 22px; }
  .rk-r .n { white-space: normal; }
  .rk-ur { grid-template-columns: 24px minmax(0,1fr) auto; }
  .rk-ur span { display: none; }
}

@keyframes cwShim { 100% { --cwshim: 360deg; } }
@keyframes hhScan { 0% { top: -30%; } 100% { top: 100%; } }
@keyframes qFish { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fpdP { 0%, 100% { opacity: .7; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes fpdN {
  0%, 22% { box-shadow: inset 0 0 0 1.5px rgba(80,188,189,.75), 0 0 26px rgba(80,188,189,.3); }
  30%, 100% { box-shadow: inset 0 0 0 1px rgba(165,174,191,.18), 0 16px 34px -18px rgba(0,0,0,.8); }
}

@media (prefers-reduced-motion: reduce) {
  .qh *, .acx *, .rx-win *, .fpd * { animation: none !important; transition: none !important; }
  .fpd-l .dot, .fpd-l .run { display: none; }
}
