/* Wah-Kit Aptitude: lessons, practice and mock tests. */
.apt { padding-bottom: 40px; }
.apt h1 { font: 800 clamp(26px, 4vw, 38px) var(--font-display); margin: 0; letter-spacing: -.5px; }
.apt h2 { font: 800 21px var(--font-display); margin: 0 0 10px; }
.apt h3 { font: 800 16px var(--font-display); margin: 6px 0; }
.apt .muted { color: var(--muted); }
.apt-crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 4px; }
.apt-crumbs a { color: var(--ink-soft); }
.apt-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6D28D9; }

/* hub */
.apt-hero { padding: 26px 0 8px; max-width: 820px; }
.apt-hero p { color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.apt-how { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.apt-how span { background: #F3E8FF; color: #4C1D95; border-radius: 999px; padding: 7px 14px; font-size: 14.5px; }
.apt-group { margin-top: 26px; }
.apt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.apt-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.apt-card:hover { border-color: #7C3AED; box-shadow: 0 4px 14px rgba(124, 58, 237, .12); }
.apt-card b { font-size: 16.5px; } .apt-card small { color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; }
.apt-ic { font-size: 26px; }
.apt-mocklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.apt-mock { display: flex; flex-direction: column; gap: 3px; padding: 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.apt-mock:hover { border-color: #7C3AED; }
.apt-mock small { color: var(--ink-soft); }
.apt-mock.own { border-style: dashed; }
.apt-best { font-size: 12.5px; font-weight: 800; color: #15803D; }
.apt-hist { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.apt-hist div { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #EEEEF4; align-items: baseline; }
.apt-hist div:last-child { border: 0; }
.apt-hist b { color: #6D28D9; font-size: 17px; } .apt-hist small { color: var(--muted); }
.apt-soon { margin-top: 26px; background: #FAF5FF; border: 1px dashed #D8B4FE; border-radius: 16px; padding: 16px; }
.apt-soon p { margin: 0; color: var(--ink-soft); }

/* lessons */
.apt-lesson { max-width: 780px; display: flex; flex-direction: column; gap: 22px; }
.apt-head { display: flex; gap: 14px; align-items: center; padding-top: 6px; }
.apt-head .apt-ic { font-size: 40px; width: 64px; height: 64px; border-radius: 18px; background: #F3E8FF; display: grid; place-items: center; flex: none; }
.apt-lesson p, .apt-lesson li { font-size: 17px; line-height: 1.6; }
.apt-idea { background: #FFFBEB; border: 2px solid #FDE68A; border-radius: 18px; padding: 16px 18px; }
.apt-idea p { margin: 0 0 10px; font-size: 19px; }
.apt-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.apt-steps li { counter-increment: s; position: relative; padding: 10px 14px 10px 54px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.apt-steps li::before { content: counter(s); position: absolute; left: 12px; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: #7C3AED; color: #fff; font: 800 15px var(--font-body); display: grid; place-items: center; }
.apt-ex { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.apt-q { margin: 0 0 6px; }
.apt-slow { margin: 0; padding-left: 22px; }
.apt-slow li { margin: 3px 0; }
.apt-fast { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #ECFDF5; color: #065F46; font-size: 16px !important; }
.apt-traps { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 16px; padding: 14px 18px; }
.apt-traps ul, .apt-remember ul { margin: 0; padding-left: 22px; }
.apt-remember { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 16px; padding: 14px 18px; }
.apt-remember li { font-family: ui-monospace, Consolas, monospace; font-size: 16px; }
/* pictures */
.ap-pic { margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ap-pic figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; }
.ap-grid { display: grid; grid-template-columns: repeat(10, 16px); gap: 3px; }
.ap-grid i { width: 16px; height: 16px; border-radius: 3px; background: #E5E7EB; }
.ap-grid i.on { background: #7C3AED; }
.ap-bars { display: flex; width: min(520px, 100%); height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.ap-bars span { display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: #1F2937; padding: 0 4px; text-align: center; border-right: 2px solid #fff; }
.ap-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ap-box { background: #fff; border: 2px solid #C4B5FD; border-radius: 12px; padding: 8px 12px; text-align: center; font-size: 15px; line-height: 1.35; }
.ap-arrow { color: #7C3AED; font-size: 20px; }
.ap-cross { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; text-align: center; font-size: 15px; }
.ap-cross span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.ap-cross .mid { grid-column: 1 / 3; justify-self: center; background: #F3E8FF; border-color: #C4B5FD; }
.ap-tri { width: 160px; height: 130px; background: #F3E8FF; clip-path: polygon(50% 0, 100% 100%, 0 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 14px; gap: 4px; }
.ap-tri b { font: 800 26px var(--font-display); color: #4C1D95; }
.ap-tri span { font-weight: 800; color: #4C1D95; border-top: 2px solid #7C3AED; padding-top: 4px; }

/* practice and questions */
.apt-practice-wrap { max-width: 780px; margin-top: 30px; padding: 18px; border-radius: 20px; background: #FAF5FF; border: 2px solid #E9D5FF; }
.apt-lvls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.apt-lvls button { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 700 14px var(--font-body); color: var(--ink); cursor: pointer; }
.apt-lvls button.on { background: #6D28D9; color: #fff; border-color: #6D28D9; }
.apt-score { margin-left: auto; font-weight: 700; color: #15803D; font-size: 14px; }
.apt-qcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.apt-qn { margin: 0; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.apt-qtext { margin: 0; font-size: 18.5px; line-height: 1.5; }
.apt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apt-opt { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 52px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: 16.5px var(--font-body); color: var(--ink); cursor: pointer; }
.apt-opt b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #F3F4F6; display: grid; place-items: center; font-size: 14px; }
.apt-opt:hover:not(:disabled) { border-color: #A78BFA; }
.apt-opt.sel { border-color: #6D28D9; background: #F5F3FF; } .apt-opt.sel b { background: #6D28D9; color: #fff; }
.apt-opt.right { border-color: #16A34A; background: #F0FDF4; } .apt-opt.right b { background: #16A34A; color: #fff; }
.apt-opt.wrong { border-color: #DC2626; background: #FEF2F2; } .apt-opt.wrong b { background: #DC2626; color: #fff; }
.apt-opt.dim { opacity: .6; }
.apt-opt:disabled { cursor: default; }
.apt-qbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.apt-hint { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFFBEB; font-size: 15.5px; }
.apt-verdict { margin: 0; font: 800 18px var(--font-display); } .apt-verdict.ok { color: #15803D; } .apt-verdict.no { color: #B91C1C; }
.apt-sol { background: #F9FAFB; border-radius: 14px; padding: 12px 14px; font-size: 16px; }
.apt-sol ol { margin: 6px 0; padding-left: 22px; line-height: 1.6; }
.apt-sol p { margin: 4px 0; }
.apt-why { background: #FEF2F2; border-radius: 10px; padding: 8px 10px; }
.apt-sol-more { font-size: 14px; }
.apt-nextq { align-self: flex-start; }
.apt-cta { margin: 14px 0 0; }
.apt-nextprev { display: flex; justify-content: space-between; gap: 10px; max-width: 780px; margin-top: 24px; font-weight: 700; }

/* the test */
.apt-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.apt-panel h1 { font-size: 26px; }
.apt-topics { display: flex; flex-direction: column; gap: 10px; }
.apt-tg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.apt-tg > b { flex-basis: 100%; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.apt-chk { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-size: 14.5px; }
.apt-chk.on { border-color: #6D28D9; background: #F5F3FF; }
.apt-chk input { accent-color: #6D28D9; }
.apt-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.apt-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.apt-form input, .apt-form select { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 16px var(--font-body); background: #fff; }
.apt-err { color: #B91C1C; margin: 0; min-height: 1em; }
.apt-go { align-self: flex-start; min-height: 50px; padding: 0 26px; font-size: 17px; }
.apt-rules { margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.6; }
.apt-tbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 0; background: var(--ground); flex-wrap: wrap; }
.apt-tname { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apt-timer { font: 800 20px ui-monospace, Consolas, monospace; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.apt-timer.low { color: #B91C1C; border-color: #FCA5A5; animation: aptp 1s infinite; }
@keyframes aptp { 50% { background: #FEE2E2; } }
.apt-prog { font-size: 14px; color: var(--ink-soft); }
.apt-play { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; }
.apt-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.apt-nav .btn.on { background: #F3E8FF; border-color: #A78BFA; }
.apt-side { position: sticky; top: 70px; }
.apt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.apt-gq { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 700 14px var(--font-body); cursor: pointer; position: relative; }
.apt-gq.seen { background: #FFF7ED; border-color: #FDBA74; }
.apt-gq.ans { background: #DCFCE7; border-color: #22C55E; }
.apt-gq.mark::after { content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #7C3AED; }
.apt-gq.cur { outline: 3px solid #6D28D9; outline-offset: 1px; }
.apt-gridb { display: none; }
.apt-legend { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.apt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); background: #fff; vertical-align: middle; margin-right: 2px; }
.apt-legend i.ans { background: #DCFCE7; } .apt-legend i.seen { background: #FFF7ED; } .apt-legend i.mark { background: #7C3AED; }
.apt-results { max-width: 860px; display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.apt-results h2 { margin-top: 10px; }
.apt-scorecard { background: linear-gradient(135deg, #6D28D9, #4C1D95); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.apt-scorecard .apt-kicker { color: #DDD6FE; }
.apt-scorecard .muted { color: #DDD6FE; margin: 0; }
.apt-big { margin: 0; font: 800 56px var(--font-display); line-height: 1; }
.apt-msg { margin: 0; font-size: 18px; font-weight: 700; }
.apt-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.apt-stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; }
.apt-stats b { font-size: 18px; } .apt-stats small { color: #DDD6FE; font-size: 12px; }
.apt-scorecard .btn-ghost { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .35); }
.apt-wa { background: #25D366; color: #073B1E; border: 0; font-weight: 800; }
.apt-bytopic { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.apt-trow { display: grid; grid-template-columns: 1fr 120px 50px 70px; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #EEEEF4; font-size: 15px; }
.apt-trow:last-child { border: 0; }
.apt-trow.weak { background: #FFF7F7; }
.apt-trow small { color: var(--muted); }
.apt-tbar2 { height: 8px; border-radius: 4px; background: #E5E7EB; overflow: hidden; }
.apt-tbar2 i { display: block; height: 100%; background: #22C55E; }
.apt-trow.weak .apt-tbar2 i { background: #F87171; }
.apt-review { display: flex; flex-direction: column; gap: 8px; }
.apt-rq { background: #fff; border: 1px solid var(--line); border-left: 5px solid #22C55E; border-radius: 14px; padding: 10px 14px; }
.apt-rq.no { border-left-color: #EF4444; } .apt-rq.skip { border-left-color: #CBD5E1; }
.apt-rq summary { cursor: pointer; display: flex; gap: 10px; font-size: 16px; line-height: 1.45; }
.apt-rn { flex: none; font-weight: 800; }
.apt-rq[open] { display: flex; flex-direction: column; gap: 10px; }
.apt-opts.static .apt-opt { cursor: default; }

@media (max-width: 760px) {
  .apt-opts { grid-template-columns: 1fr; }
  .apt-play { grid-template-columns: 1fr; }
  .apt-side { position: static; order: -1; }
  .apt-grid { display: none; grid-template-columns: repeat(6, 1fr); }
  .apt-grid.open { display: grid; }
  .apt-legend { display: none; }
  .apt-gridb { display: inline-flex; }
  .apt-form { grid-template-columns: 1fr 1fr; }
  .apt-stats { grid-template-columns: repeat(3, 1fr); }
  .apt-trow { grid-template-columns: 1fr 70px 44px; } .apt-trow > :last-child { grid-column: 1 / -1; }
  .apt-tname { flex-basis: 100%; order: -1; }
  .apt-qtext { font-size: 17.5px; }
}
@media (max-width: 760px) {
  .apt-tbar { flex-wrap: nowrap; gap: 6px; }
  .apt-tname, .apt-prog { display: none; }
  .apt-tbar .btn { min-height: 40px; padding: 0 12px; }
  .apt-timer { font-size: 18px; margin-right: auto; }
  .apt-nav .btn { min-height: 42px; padding: 0 12px; }
}

/* ---------- pictures (apt-viz.js) ---------- */
.vz { margin: 4px 0; background: #fff; border: 1px solid #E4E4EF; border-radius: 16px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.vz-box svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font-body, system-ui, sans-serif); }
.vz-box text { font-size: 13px; fill: #334155; }
.vz-box .vz-s { font-size: 13px; } .vz-box .vz-xs { font-size: 11px; } .vz-box .vz-m { font-size: 17px; } .vz-box .vz-big { font-size: 22px; }
.vz-box .vz-b { font-weight: 800; } .vz-box .vz-in { fill: #fff; font-weight: 800; font-size: 12.5px; }
.vz-box .vz-len { font-weight: 700; } .vz-box .vz-gap { fill: #0F766E; font-weight: 800; } .vz-box .vz-pre { fill: #6D28D9; font-size: 14px; }
.vz-box text { paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.vz-box .vz-in, .vz-box .vz-wave { stroke: none; }
.vz-box .vz-wave { fill: #3B82F6; font-size: 26px; font-weight: 800; opacity: .55; }
.vz-box svg[data-hl] [data-k] { transition: opacity .2s; }
.vz-box svg[data-hl~="speed"] [data-k~="speed"], .vz-box svg[data-hl~="len"] [data-k~="len"] *, .vz-box svg[data-hl~="len"] [data-k~="len"],
.vz-box svg[data-hl~="gap"] [data-k~="gap"] *, .vz-box svg[data-hl~="fixed"] [data-k~="fixed"], .vz-box svg[data-hl~="rate"] [data-k~="rate"],
.vz-box svg[data-hl~="units"] [data-k~="units"], .vz-box svg[data-hl~="mark"] [data-k~="mark"], .vz-box svg[data-hl~="ev"] [data-k~="ev"] { animation: vzglow 1.1s ease-in-out 2; }
@keyframes vzglow { 50% { opacity: .25; } }
.vz-cap { font-size: 15px; line-height: 1.5; color: var(--ink-soft, #374151); min-height: 22px; background: #F8F7FF; border-radius: 10px; padding: 7px 11px; }
.vz-cap b { color: var(--ink, #111); } .vz-ok { color: #15803D; font-weight: 700; }
.vz-lock { color: var(--muted, #6B7280); font-size: 14px; }
.vz-ctl { display: flex; flex-direction: column; gap: 6px; }
.vz.locked .vz-ctl { display: none; }
.vz-row { display: flex; align-items: center; gap: 8px; }
.vz-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #7C3AED; color: #fff; font-size: 17px; cursor: pointer; flex: none; }
.vz-play:hover { background: #6D28D9; }
.vz-slider { flex: 1; accent-color: #7C3AED; min-width: 0; height: 28px; }
.vz-btn { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #DDD6FE; background: #fff; color: #4C1D95; font: 700 14.5px var(--font-body, system-ui); cursor: pointer; }
.vz-btn:disabled { opacity: .4; cursor: default; }
.vz-next { background: #7C3AED; color: #fff; border-color: #7C3AED; margin-left: auto; }
.vz-cnt { font-size: 14px; color: var(--muted, #6B7280); }
.vz-ride { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #4C1D95; }
.vz-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #DDD6FE; background: #fff; color: #4C1D95; font: 700 14px var(--font-body, system-ui); cursor: pointer; }
.vz-chip.on { background: #7C3AED; border-color: #7C3AED; color: #fff; }
/* blocks */
.vz-html { overflow-x: auto; }
.vzb-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 10px; }
.vzb-row.ans { background: #F0FDF4; outline: 2px solid #86EFAC; }
.vzb-l { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.vzb-bl { display: flex; flex-wrap: wrap; gap: 4px; }
.vzb-bl i { min-width: 40px; height: 34px; padding: 0 4px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; font: 800 12px var(--font-body, system-ui); font-style: normal; animation: vzin .35s ease both; }
.vzb-bl i.add { outline: 2px dashed #64748B; outline-offset: -2px; }
.vzb-n { font-weight: 800; font-size: 15px; white-space: nowrap; }
.vzb-tot { margin: 6px 4px 0; font-size: 15px; }
@keyframes vzin { from { transform: scale(.6); opacity: 0; } }
/* flow */
.vzf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 4px 2px; }
.vzf-b { background: #F3E8FF; border: 2px solid #C4B5FD; border-radius: 12px; padding: 9px 12px; font-size: 15.5px; line-height: 1.35; }
.vzf-b.new { animation: vzin .35s ease both; border-color: #7C3AED; }
.vzf-a { display: inline-flex; flex-direction: column; align-items: center; color: #7C3AED; font-weight: 800; font-size: 20px; line-height: 1; }
.vzf-a small { font-size: 12px; color: #6D28D9; font-weight: 700; margin-bottom: 2px; white-space: nowrap; }
/* timeline of ages */
.vzt { border-collapse: separate; border-spacing: 6px; font-size: 15px; margin: 0 auto; }
.vzt th { font-weight: 800; text-align: center; color: var(--muted, #6B7280); font-size: 13.5px; }
.vzt th.now { color: #6D28D9; }
.vzt tbody th { text-align: left; font-size: 15px; }
.vzt td { text-align: center; }
.vzt td span { display: inline-block; min-width: 64px; padding: 7px 10px; border-radius: 10px; color: #fff; font-weight: 800; }
.vzt td.now span { box-shadow: 0 0 0 3px #EDE9FE; }
.vzt-d td { color: #0F766E; font-weight: 800; }
/* lesson pages: every kind of question */
.apt-cases-wrap { background: #FAF5FF; border: 1px solid #E9D5FF; border-radius: 18px; padding: 16px; }
.apt-cases-wrap > p { margin: 0 0 10px; }
.apt-kinds { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.apt-kinds button { flex: none; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid #DDD6FE; background: #fff; color: #4C1D95; font: 700 14px var(--font-body, system-ui); cursor: pointer; white-space: nowrap; }
.apt-kinds button b { color: #7C3AED; }
.apt-kinds button.on { background: #7C3AED; border-color: #7C3AED; color: #fff; }
.apt-kinds button.on b { color: #fff; }
.apt-case { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.apt-case-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.apt-case-top h3 { margin: 0; font-size: 18px; }
.apt-lvtag { font-size: 12px; font-weight: 800; color: #6D28D9; background: #EDE9FE; border-radius: 999px; padding: 2px 9px; }
.apt-guess { margin: 2px 0 0; font-weight: 800; }
.apt-case .apt-qtext { margin: 0; }
.apt-case-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.apt-tap { margin: 4px 0 0; font-size: 13.5px; color: var(--muted, #6B7280); }
.apt-steps-live li { cursor: pointer; border-radius: 8px; padding: 2px 6px; margin-left: -6px; }
.apt-steps-live li:hover { background: #F5F3FF; }
.apt-steps-live li.on { background: #EDE9FE; outline: 2px solid #C4B5FD; }
@media (max-width: 760px) {
  .vz { padding: 8px 6px 6px; border-radius: 12px; margin: 0 -4px; }
  .vz-box text, .vz-box .vz-s { font-size: 15px; } .vz-box .vz-xs { font-size: 13px; } .vz-box .vz-in { font-size: 14px; }
  .vzb-row { grid-template-columns: 70px 1fr; } .vzb-n { grid-column: 2; }
  .apt-cases-wrap { padding: 12px 10px; margin: 0 -6px; }
  .apt-case-nav .btn { flex: 1; }
}
@media (max-width: 760px) { .apt-opts.short { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .vzb-bl i, .vzf-b.new { animation: none; } .vz-box svg[data-hl] [data-k] { animation: none !important; } }
/* calendar strip and week wheel */
.vzc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vzc-row i { font-style: normal; color: #7C3AED; font-weight: 800; }
.vzc-chip { display: inline-flex; flex-direction: column; align-items: center; background: #F3E8FF; border: 2px solid #C4B5FD; border-radius: 12px; padding: 5px 10px; min-width: 54px; animation: vzin .3s ease both; }
.vzc-chip small { font-size: 12px; color: #6D28D9; font-weight: 700; white-space: nowrap; }
.vzc-chip b { font-size: 18px; }
.vzc-chip.hl { background: #FFEDD5; border-color: #F97316; }
.vzc-sum { margin: 8px 2px 0; font-size: 15.5px; }
.vzc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.vzc-week span { text-align: center; padding: 8px 0; border-radius: 10px; background: #F1F5F9; font-weight: 800; font-size: 14px; color: #475569; }
.vzc-week span.from { outline: 3px solid #7C3AED; outline-offset: -3px; color: #4C1D95; }
.vzc-week span.to { background: #16A34A; color: #fff; }
/* number series */
.vzs { --w: 54px; --g: 10px; overflow-x: auto; padding: 2px 0 4px; }
.vzs-row { display: flex; gap: var(--g); }
.vzs-n { flex: none; width: var(--w); height: 44px; display: grid; place-items: center; border-radius: 12px; background: #EDE9FE; border: 2px solid #C4B5FD; font: 800 16px var(--font-body, system-ui); }
.vzs-n.q { background: #FFF7ED; border-color: #F97316; border-style: dashed; }
.vzs-n.bad { background: #FEE2E2; border-color: #DC2626; }
.vzs-ops { margin: 4px 0 0 calc(var(--w) / 2 + var(--g) / 2); }
.vzs-ops span, .vzs-ops2 span { flex: none; width: var(--w); text-align: center; font: 800 13px var(--font-body, system-ui); color: #6D28D9; animation: vzin .3s ease both; }
.vzs-ops span::before { content: '↗ '; color: #A78BFA; }
.vzs-forms span { flex: none; width: var(--w); text-align: center; font: 800 12.5px var(--font-body, system-ui); color: #0F766E; animation: vzin .3s ease both; }
.vzs-forms { margin-top: 4px; }
.vzs-ops2 { margin: 2px 0 0 calc(var(--w) + var(--g)); }
.vzs-ops2 span { color: #C2410C; }
/* outcomes */
.vzo { display: grid; gap: 4px; }
.vzo span, .vzo b { min-height: 30px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 700; text-align: center; }
.vzo b { color: var(--muted, #6B7280); font-size: 12px; }
.vzo span { background: #F1F5F9; color: var(--c, #334155); border: 1.5px solid #E2E8F0; }
.vzo span.on { background: #DCFCE7; border-color: #16A34A; box-shadow: 0 0 0 1.5px #16A34A inset; }
/* seats */
.vzp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vzp i { font-style: normal; font-weight: 800; color: #7C3AED; }
.vzp-s { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; padding: 5px 8px; border-radius: 12px; background: #fff; border: 2px dashed #C4B5FD; }
.vzp-s small { font-size: 11.5px; font-weight: 700; color: #6D28D9; white-space: nowrap; }
.vzp-s b { font-size: 20px; min-height: 26px; animation: vzin .3s ease both; }
.vzp-res b { font-size: 20px; color: #15803D; }
/* data table */
.vzd { border-collapse: collapse; margin: 0 auto; font-size: 15px; }
.vzd th, .vzd td { padding: 7px 12px; border: 1px solid #E2E8F0; text-align: center; }
.vzd thead th { background: #F3E8FF; color: #4C1D95; }
.vzd td.on { background: #FFEDD5; font-weight: 800; box-shadow: 0 0 0 2px #F97316 inset; }
.vzd .tot td, .vzd td.tot { font-weight: 800; background: #F8FAFC; }
@media (max-width: 560px) { .vzs { --w: 41px; --g: 5px; } .vzs-n { font-size: 14px; height: 40px; } .vzo span { font-size: 11px; min-height: 26px; } .vzd th, .vzd td { padding: 6px 7px; } }

.vz-cap:empty { display: none; }
