/* Level Up Academy — styles on top of app.css tokens */
:root { --brand-red: #ef4b33; --hue: 30; }
.acc-h { color: hsl(var(--hue) 90% 66%); }
kbd { font: 600 .72em var(--f-text); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); }
.page-h { font-size: var(--fs-2xl); margin: 6px 0 10px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
body.bare .topbar, body.bare .tabbar, body.bare .bg-grid { display: none; }
body.bare main { padding: 0 !important; }

/* Top bar additions */
.brand-logo { height: 34px; width: auto; }
.xp-pill b { white-space: nowrap; }
.brand-tag { font: 700 var(--fs-xs) var(--f-display); color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }
.role-sw { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); }
.role-sw button { border: 0; background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; min-height: 32px; }
.role-sw button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.nav-live .ld, .tab-live .ld { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-right: 7px; vertical-align: middle; }
.nav-live.on { color: var(--danger) !important; }
.nav-live.on .ld { background: var(--danger); animation: blink 1.2s ease-in-out infinite; }
.tab-live.on { color: var(--danger) !important; }
@media (max-width: 1100px) { .role-sw { display: none; } }
@media (max-width: 760px) { .brand-logo { height: 28px; } .tabbar { grid-template-columns: repeat(4, 1fr); } }

/* Onboarding */
.hero-logo { width: min(330px, 80%); height: auto; margin-bottom: 8px; }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; }
.seg.wide button { min-height: 42px; font-size: var(--fs-sm); }
.site-foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 32px 0 48px; border-top: 1px solid var(--line); margin-top: 24px; color: var(--muted); font-size: var(--fs-xs); }
.site-foot img { height: 40px; width: auto; }

/* Home */
.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: end; margin-bottom: 40px; }
.dash-hero h1 { font-size: var(--fs-3xl); letter-spacing: -.035em; margin: 8px 0 14px; }
.dash-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-stats .stat:last-child { grid-column: 1 / -1; }
.dash-stats .stat b { font-size: var(--fs-xl); }
@media (max-width: 900px) { .dash-hero { grid-template-columns: 1fr; } .dash-stats { grid-template-columns: repeat(3, 1fr); } .dash-stats .stat:last-child { grid-column: auto; } }
@media (max-width: 520px) { .dash-stats { grid-template-columns: 1fr 1fr; } .dash-stats .stat:last-child { grid-column: 1 / -1; } }
.day { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.day-h { display: grid; align-content: start; gap: 8px; position: sticky; top: 84px; align-self: start; }
.day-n { font: 800 var(--fs-sm) var(--f-display); color: var(--accent); }
.day-h h2 { font-size: var(--fs-xl); }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; gap: 14px; } .day-h { position: static; } }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mod-card {
  --mc: hsl(var(--hue) 85% 64%);
  position: relative; display: grid; gap: 8px; align-content: start; min-height: 196px; padding: 20px; border-radius: var(--r-card); text-decoration: none; overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--hue) 70% 50% / .13), transparent 55%), var(--surface); border: 1px solid var(--line);
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-standard);
}
.mod-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--mc); transform-origin: left; transform: scaleX(.18); transition: transform var(--dur-slow) var(--ease-enter); }
.mod-card:hover { border-color: hsl(var(--hue) 60% 50% / .6); }
.mod-card:hover::before { transform: scaleX(1); }
.mod-card:hover .mc-ico { transform: rotate(-8deg) scale(1.06); }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: hsl(var(--hue) 70% 50% / .16); color: var(--mc, hsl(var(--hue) 85% 64%)); font-size: 1.15rem; transition: transform var(--dur-base) var(--ease-spring); }
.mc-ico.sm { width: 38px; height: 38px; font-size: 1rem; color: hsl(var(--hue) 85% 64%); }
.mc-n { font: 800 1.6rem var(--f-display); color: hsl(var(--hue) 40% 50% / .45); letter-spacing: -.04em; }
.mod-card h3 { font-size: var(--fs-lg); }
.mod-card p { font-size: var(--fs-sm); color: var(--muted); }
.mc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.steps5 { display: flex; gap: 4px; }
.steps5 i { width: 14px; height: 6px; border-radius: 3px; background: var(--line-2); }
.steps5 i.on { background: var(--ok); }
.mc-stamp { position: absolute; right: -14px; bottom: -14px; width: 92px; opacity: .9; rotate: -14deg; }
.mod-card.done { border-color: rgba(63, 212, 155, .35); }
.outputs { padding-top: 32px; border-top: 1px solid var(--line); margin-top: 8px; }
.outputs h2 { font-size: var(--fs-xl); margin-bottom: 16px; }
.out-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.out { display: grid; gap: 6px; padding: 20px; text-decoration: none; transition: border-color var(--dur-base); }
.out i { font-size: 1.4rem; color: var(--accent); margin-bottom: 6px; }
.out span { color: var(--muted); font-size: var(--fs-sm); }
.out:hover { border-color: var(--muted); }
@media (max-width: 900px) { .out-grid { grid-template-columns: 1fr 1fr; } }

/* Module page */
.mod-hero { position: relative; padding: 28px 0 22px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(700px 260px at 10% 0%, hsl(var(--hue) 80% 55% / .16), transparent 70%); }
.mh-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.mh-ico { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-size: 2rem; color: #0b0f1e; background: hsl(var(--hue) 85% 64%); box-shadow: 0 18px 50px -20px hsl(var(--hue) 85% 60% / .9); animation: ava-in .8s var(--ease-spring) both; }
.mod-hero h1 { font-size: var(--fs-2xl); margin: 4px 0 6px; }
.mod-hero .kicker { color: hsl(var(--hue) 85% 66%); }
.mh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.outcomes { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 24, 52, .6); }
.outcomes summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: var(--fs-sm); list-style: none; }
.outcomes summary::-webkit-details-marker { display: none; }
.outcomes summary::after { content: '+'; float: right; color: var(--muted); }
.outcomes[open] summary::after { content: '–'; }
.outcomes ul { margin: 0; padding: 0 16px 14px 34px; color: var(--ink-2); display: grid; gap: 4px; }
@media (max-width: 640px) { .mh-grid { grid-template-columns: 1fr; } .mh-ico { width: 60px; height: 60px; font-size: 1.4rem; border-radius: 18px; } .mh-present { justify-self: start; } }
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-block: 24px 72px; }
@media (max-width: 1020px) { .mod-layout { grid-template-columns: 1fr; } .mod-side { order: 2; } }
.st-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; position: sticky; top: 68px; z-index: 5; }
.st-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 8px; border-radius: 11px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); transition: background var(--dur-quick), color var(--dur-quick); }
.st-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.st-tab .st-k { display: none; }
.st-tab.active { background: hsl(var(--hue) 85% 64%); color: #0b0f1e; }
.st-tab.done::after { content: '\f058'; font: 900 .8rem 'Font Awesome 6 Free'; color: var(--ok); position: absolute; top: 4px; right: 6px; }
.st-tab.active.done::after { color: #0b0f1e; }
@media (max-width: 640px) { .st-tab span:not(.st-k) { display: none; } .st-tab { font-size: 1rem; } .st-tabs { top: 56px; } }
.tab-body { display: grid; gap: 18px; }
.mod-nav { display: flex; justify-content: flex-end; margin-top: 20px; }
.mod-side { display: grid; gap: 14px; position: sticky; top: 84px; }
.prog-card { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.prog-card .ring { width: 92px; height: 92px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.step-list li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; }
.step-list li span { font-size: var(--fs-xs); }
.step-list li.ok { color: var(--ink); } .step-list li.ok i { color: var(--ok); }
.badge-prev { width: 120px; margin: 4px auto 0; transition: transform var(--dur-slow) var(--ease-spring); }
.badge-prev.got { animation: slam .6s var(--ease-spring) both; rotate: -8deg; }
.stamp-dim { color: var(--line-2); }
.mod-pn { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); }
.mod-pn a { color: var(--muted); text-decoration: none; } .mod-pn a:hover { color: var(--ink); }
.ring.big { width: 140px; height: 140px; margin: 0 auto; }
.ring.big b { font-size: 1.8rem; }
.ring .rv { transition: stroke-dashoffset 1.2s var(--ease-enter); }

/* Slides: shared by Learn deck, Present mode and Live */
.deck { padding: 0; overflow: hidden; }
.deck:focus-visible { outline: 2px solid var(--focus); }
.deck-stage, .pr-stage, .live-stage { container-type: inline-size; }
.deck-stage { padding: clamp(18px, 4vw, 40px); min-height: 380px; display: grid; align-items: center;
  background: radial-gradient(600px 300px at 100% 0%, hsl(var(--hue) 80% 55% / .12), transparent 70%); }
.deck-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.deck-dots { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.deck-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: transform var(--dur-quick), background var(--dur-quick); }
.deck-dots button.seen { background: hsl(var(--hue) 60% 45%); }
.deck-dots button.cur { background: hsl(var(--hue) 85% 64%); transform: scale(1.5); }
.deck-pos { font-size: var(--fs-xs); min-width: 44px; text-align: right; }
@media (max-width: 560px) { .deck-dots { display: none; } .deck-bar { justify-content: space-between; } }

.pr-slide { --sc: hsl(var(--hue) 85% 64%); width: 100%; }
.pr-slide.in-next > .sl { animation: sl-in-r .5s var(--ease-enter) both; }
.pr-slide.in-prev > .sl { animation: sl-in-l .5s var(--ease-enter) both; }
@keyframes sl-in-r { from { opacity: 0; transform: translateX(36px); } }
@keyframes sl-in-l { from { opacity: 0; transform: translateX(-36px); } }
.sl { display: grid; gap: clamp(10px, 2cqi, 26px); }
.sl h2 { font-size: clamp(30px, 6.2cqi, 92px); line-height: .98; letter-spacing: -.035em; }
.sl h3 { font-size: clamp(22px, 3.6cqi, 54px); letter-spacing: -.025em; }
.sl p, .sl li { font-size: clamp(15px, 1.9cqi, 28px); color: var(--ink-2); }
.sl-kick { font-weight: 700; color: var(--sc) !important; font-size: clamp(13px, 1.5cqi, 22px) !important; display: flex; align-items: center; gap: 8px; }
.sl-cover { min-height: 34cqi; align-content: center; }
.sl-cover h2 { max-width: 16ch; }
.sl-cover .sl-sub { max-width: 46ch; font-size: clamp(16px, 2.3cqi, 34px); }
.sl-big h2 { max-width: 18ch; } .sl-big h2::after { content: ''; display: block; width: 3.2em; height: .12em; margin-top: .35em; border-radius: 1em; background: var(--sc); transform-origin: left; animation: grow-x .9s var(--ease-enter) .2s both; }
.sl-big p { max-width: 52ch; }
.sl-points ul, .sl-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.2cqi, 16px); }
.sl-points li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; animation: rise .5s var(--ease-enter) both; animation-delay: calc(.15s + var(--i) * 90ms); }
.sl-points li::before { content: ''; width: .55em; height: .55em; border-radius: 3px; background: var(--sc); rotate: 45deg; }
.sl-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22cqi), 1fr)); gap: clamp(8px, 1.4cqi, 18px); }
.sl-steps li { display: grid; gap: 6px; align-content: start; padding: clamp(12px, 1.8cqi, 24px); border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); animation: rise .5s var(--ease-enter) both; animation-delay: calc(.12s + var(--i) * 90ms); }
.sl-steps li b { font: 700 clamp(16px, 2.2cqi, 32px) var(--f-display); color: var(--ink); }
.sl-steps li span:not(.st-n) { font-size: clamp(13px, 1.6cqi, 22px); color: var(--muted); }
.st-n { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #0b0f1e; font: 800 clamp(13px, 1.5cqi, 20px) var(--f-display); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2cqi, 24px); }
.cmp > div { padding: clamp(14px, 2cqi, 28px); border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.cmp-l { border-color: rgba(242, 102, 122, .35) !important; } .cmp-r { border-color: rgba(63, 212, 155, .4) !important; }
.cmp h4 { font-size: clamp(15px, 2cqi, 28px); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.cmp-l h4 i { color: var(--danger); } .cmp-r h4 i { color: var(--ok); }
.cmp li { animation: rise .45s var(--ease-enter) both; animation-delay: calc(.2s + var(--i) * 80ms); }
.cmp-l li { color: var(--muted); } .cmp-r li { color: var(--ink); }
@media (max-width: 640px) { .cmp { grid-template-columns: 1fr; } }
.flips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24cqi), 1fr)); gap: clamp(10px, 1.6cqi, 20px); perspective: 1200px; }
.flips.n4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 34cqi), 1fr)); }
.flip { border: 0; padding: 0; background: none; cursor: pointer; min-height: clamp(150px, 20cqi, 300px); text-align: left; animation: rise .5s var(--ease-enter) both; animation-delay: calc(.1s + var(--i) * 90ms); }
.f-in { position: relative; display: block; width: 100%; height: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform .7s var(--ease-spring); }
.flip[aria-pressed="true"] .f-in { transform: rotateY(180deg); }
.f-front, .f-back { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: clamp(14px, 2cqi, 26px); border-radius: 18px; backface-visibility: hidden; font-size: clamp(15px, 1.9cqi, 26px); line-height: 1.35; }
.f-front { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.f-front i { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #0b0f1e; font-size: .8em; }
.f-back { transform: rotateY(180deg); background: hsl(var(--hue) 60% 22%); border: 1px solid var(--sc); color: var(--ink); font-size: clamp(14px, 1.7cqi, 23px); }
.poll { display: grid; gap: 10px; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; min-height: 52px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-size: clamp(15px, 1.9cqi, 26px); font-weight: 600; transition: border-color var(--dur-quick), transform var(--dur-instant); }
.poll-opt:hover:not(:disabled) { border-color: var(--muted); }
.poll-opt:active:not(:disabled) { transform: scale(.98); }
.poll-opt:disabled { cursor: default; }
.po-bar { position: absolute; inset: 0; background: hsl(var(--hue) 70% 55% / .28); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease-enter); }
.po-t, .po-n { position: relative; }
.po-n { font: 800 1.1em var(--f-display); color: var(--sc); }
.poll-opt.lead { border-color: var(--sc); }
.poll-opt.mine { border-color: var(--sc); background: hsl(var(--hue) 70% 50% / .16); }
.poll-opt.right { border-color: var(--ok); background: var(--ok-soft); }
.poll-opt.right::after { content: '\f00c'; font: 900 1em 'Font Awesome 6 Free'; color: var(--ok); }
.poll-opt.wrong { border-color: var(--danger); background: rgba(242, 102, 122, .1); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qa-why { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--ink) !important; animation: rise .4s var(--ease-enter); }
.qa-why i { color: var(--accent); margin-right: 6px; }
.scen-story { font-size: clamp(16px, 2.2cqi, 30px) !important; color: var(--ink) !important; max-width: 60ch; }
.scen { display: grid; gap: 10px; }
.scen-c { display: grid; gap: 8px; text-align: left; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-size: clamp(15px, 1.9cqi, 25px); font-weight: 600; transition: border-color var(--dur-quick); }
.scen-c:hover { border-color: var(--muted); }
.sc-r { font-weight: 500; font-size: .88em; padding-left: 12px; border-left: 3px solid; animation: rise .4s var(--ease-enter); }
.sc-r.good { border-color: var(--ok); color: var(--ok); } .sc-r.bad { border-color: var(--danger); color: #ffb3bf; }
.scen-c.open { border-color: var(--line-2); background: var(--surface); }
.act-timer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.act-timer .t { font: 800 clamp(40px, 8cqi, 120px) var(--f-display); letter-spacing: -.04em; color: var(--sc); line-height: 1; }
.act-timer.over .t { color: var(--danger); animation: blink 1s ease-in-out 3; }
.sl-act { padding: clamp(16px, 3cqi, 40px); border-radius: 22px; border: 2px dashed hsl(var(--hue) 60% 50% / .5); }

/* Present mode */
.present { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(1200px 600px at 85% -10%, hsl(var(--hue) 80% 50% / .16), transparent 70%), #060b1a; }
.pr-top { display: flex; align-items: center; gap: 18px; padding: 14px 28px; }
.pr-logo { height: 30px; width: auto; }
.pr-mod { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.pr-live { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: var(--fs-sm); }
.pr-live i { color: var(--danger); animation: blink 1.6s ease-in-out infinite; }
.pr-main { display: grid; grid-template-columns: 1fr auto; min-height: 0; }
.pr-stage { display: grid; place-items: center; padding: 1.5vh 5vw; min-height: 0; overflow: auto; }
.pr-stage .pr-slide { max-width: 1500px; }
.pr-notes { width: 340px; padding: 22px; border-left: 1px solid var(--line); background: var(--bg-2); overflow: auto; animation: rise .3s var(--ease-enter); }
.pr-notes h4 { font-size: var(--fs-sm); color: var(--accent); margin-bottom: 8px; font-family: var(--f-text); }
.pr-notes p { color: var(--ink-2); line-height: 1.6; }
.pr-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px 14px; }
.pr-nav { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.pr-tools { display: flex; gap: 6px; }
.pr-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.pr-progress span { display: block; height: 100%; background: hsl(var(--hue) 85% 64%); transform-origin: left; transition: transform var(--dur-slow) var(--ease-enter); }
@media (max-width: 760px) { .pr-notes { position: absolute; inset: auto 0 64px 0; width: auto; max-height: 40vh; border-left: 0; border-top: 1px solid var(--line); } .pr-tools .btn span, .pr-bar kbd { display: none; } }

/* Live (participant) */
.live-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(242, 102, 122, .6); animation: ping-dot 1.8s infinite; flex: none; }
@keyframes ping-dot { 70% { box-shadow: 0 0 0 14px rgba(242, 102, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 102, 122, 0); } }
.live-head h1 { font-size: var(--fs-xl); }
.live-stage { padding: clamp(18px, 4vw, 40px); }
.live-pos { margin-top: 16px; }

/* Toolbox */
.toolbox { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 18px; }
.tb-head h2 { font-size: var(--fs-xl); display: flex; gap: 10px; align-items: center; }
.tb-head h2 i { color: var(--accent); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool { position: relative; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--dur-quick), transform var(--dur-base) var(--ease-standard); }
.tool:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tool-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.tool h4 { font-size: var(--fs-md); }
.tool p { font-size: var(--fs-sm); color: var(--muted); }
.tool a { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); text-decoration: none; }
.howtos { display: grid; gap: 10px; }
.howto { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.howto summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px 1fr 18px; gap: 10px; align-items: center; padding: 14px 16px; font-weight: 700; min-height: 48px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary > i:first-child { color: var(--ok); }
.howto .chev { color: var(--muted); transition: transform var(--dur-base) var(--ease-standard); }
.howto[open] .chev { transform: rotate(180deg); }
.ht-body { padding: 0 18px 18px; display: grid; gap: 14px; animation: rise .35s var(--ease-enter); }
.ht-body ol { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.ht-body ol li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--ink-2); }
.ht-body ol li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 .75rem var(--f-display); color: var(--ink); }
.watch { padding: 14px 16px; border-radius: 12px; background: rgba(245, 181, 61, .08); border: 1px solid rgba(245, 181, 61, .3); }
.watch h5 { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--accent); }
.watch ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); font-size: var(--fs-sm); }
.tb-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.search { position: relative; flex: 1; min-width: 240px; }
.search i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search .input { padding-left: 40px; }
.tb-mod { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.tb-mod h3 a { text-decoration: none; color: hsl(var(--hue) 85% 66%); font-size: var(--fs-lg); }

/* Quiz */
.quiz { min-height: 360px; display: grid; align-content: start; }
.qz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qz-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.qz-bar span { display: block; height: 100%; background: hsl(var(--hue) 85% 64%); transform-origin: left; transition: transform var(--dur-slow) var(--ease-enter); }
.qz-q { font-size: var(--fs-xl); margin-bottom: 16px; animation: rise .4s var(--ease-enter); }
.quiz .poll-opt { font-size: var(--fs-md); }
.qz-fb { margin-top: 14px; display: grid; gap: 12px; justify-items: start; animation: rise .35s var(--ease-enter); }
.qz-intro, .qz-end { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 24px 0; }
.qz-big { font-size: 2.4rem; color: hsl(var(--hue) 85% 64%); }
.qz-end h2 { font-size: var(--fs-xl); max-width: 30ch; }

/* Practice engines */
.eng-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.eng-head h2 { font-size: var(--fs-xl); }
.ws { display: grid; gap: 18px; }
.ws-field { display: grid; gap: 8px; }
.ws-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ws-label { font-weight: 700; color: var(--ink); font-size: var(--fs-md); font-family: var(--f-text); }
.ws-label em { font-style: normal; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }
.ws-count { font: 700 var(--fs-xs) var(--f-display); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-field.ok > .ws-head .ws-count { color: var(--ok); }
.ws-field.ok > .ws-head .ws-count::before { content: '\f00c'; font: 900 .7rem 'Font Awesome 6 Free'; margin-right: 5px; }
.ws-list { display: grid; gap: 12px; }
.ws-item { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-base); animation: rise .4s var(--ease-enter); }
.ws-item.ok { border-color: rgba(63, 212, 155, .45); }
.ws-item.ok .ws-item-top .chip { color: var(--ok); border-color: rgba(63, 212, 155, .45); }
.ws-item-top { display: flex; justify-content: space-between; align-items: center; }
.ws-item .ws-label { font-size: var(--fs-sm); color: var(--ink-2); }
.checks { display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; transition: border-color var(--dur-quick), background var(--dur-quick); }
.check .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; transition: all var(--dur-base) var(--ease-spring); }
.check .box i { font-size: .7rem; color: #04150e; transform: scale(0); transition: transform var(--dur-base) var(--ease-spring); }
.check[aria-pressed="true"] { border-color: rgba(63, 212, 155, .5); background: var(--ok-soft); }
.check[aria-pressed="true"] .box { background: var(--ok); border-color: var(--ok); }
.check[aria-pressed="true"] .box i { transform: scale(1); }

/* Sorter game */
.sorter { display: grid; gap: 14px; outline: none; }
.so-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.so-best { margin-left: auto; font-size: var(--fs-xs); }
.so-stage { min-height: 200px; display: grid; place-items: center; position: relative; perspective: 900px; }
.so-card { width: min(100%, 560px); min-height: 170px; display: grid; place-items: center; text-align: center; padding: 26px; border-radius: 22px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); box-shadow: var(--sh-2); font: 700 var(--fs-lg)/1.35 var(--f-display); animation: card-pop .45s var(--ease-spring) both; transition: transform .55s var(--ease-exit), opacity .55s, border-color .2s; }
@keyframes card-pop { from { opacity: 0; transform: translateY(24px) scale(.94) rotate(-1.5deg); } }
.so-card.good { border-color: var(--ok); } .so-card.bad { border-color: var(--danger); }
.so-card.fly-l { transform: translateX(-120%) rotate(-14deg); opacity: 0; transition-delay: .55s; }
.so-card.fly-r { transform: translateX(120%) rotate(14deg); opacity: 0; transition-delay: .55s; }
.so-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.so-btn { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 58px; border-radius: 16px; font: 700 var(--fs-md) var(--f-display); cursor: pointer; border: 1px solid; transition: transform var(--dur-instant), background var(--dur-quick); }
.so-btn:active { transform: scale(.96); }
.so-btn.left { background: var(--ok-soft); border-color: rgba(63, 212, 155, .5); color: var(--ok); }
.so-btn.right { background: rgba(242, 102, 122, .1); border-color: rgba(242, 102, 122, .5); color: var(--danger); }
.so-btn.left:hover { background: rgba(63, 212, 155, .2); } .so-btn.right:hover { background: rgba(242, 102, 122, .18); }
@media (hover: none) { .so-btn kbd { display: none; } }
.so-fb { min-height: 64px; }
.so-msg { display: flex; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; animation: rise .3s var(--ease-enter); }
.so-msg i { font-size: 1.3rem; margin-top: 2px; }
.so-msg div { display: grid; gap: 2px; } .so-msg span { color: var(--ink-2); font-size: var(--fs-sm); }
.so-msg.good { background: var(--ok-soft); } .so-msg.good i, .so-msg.good b { color: var(--ok); }
.so-msg.bad { background: rgba(242, 102, 122, .1); } .so-msg.bad i, .so-msg.bad b { color: var(--danger); }
.so-intro, .so-end { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 10px; }
.so-intro p { color: var(--ink-2); max-width: 46ch; }
.so-score { font: 800 var(--fs-3xl) var(--f-display); color: var(--accent); letter-spacing: -.04em; line-height: 1; animation: slam .6s var(--ease-spring); }
.so-score small { font-size: .4em; color: var(--muted); }
.so-missed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; width: min(100%, 620px); }
.so-missed li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border-left: 3px solid var(--danger); font-size: var(--fs-sm); }
.so-missed span { color: var(--muted); }

/* Rewrite */
.rw-list { display: grid; gap: 14px; }
.rw { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-base); }
.rw.ok { border-color: rgba(63, 212, 155, .45); }
.rw-weak { font-weight: 600; color: var(--muted); }
.rw-weak s { text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.rw-foot { display: flex; justify-content: flex-end; }
.rw-model { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); border: 1px solid rgba(63, 212, 155, .35); }
.rw-model b { color: var(--ok); font-size: var(--fs-xs); }
.pop-in { animation: rise .4s var(--ease-enter); }

/* Apply / reflect */
.ap-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fb-card { border-color: rgba(91, 124, 250, .45); }
.fb-card h3 { font-size: var(--fs-md); display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--brand-ink, #c7d3ff); }
.rf { padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-base); }
.rf.ok { border-color: rgba(63, 212, 155, .45); }
.rf > span:first-child { font-size: var(--fs-md); color: var(--ink); }
.rf.ok [data-c] { color: var(--ok); }

/* Trainer room */
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 1020px) { .tr-grid { grid-template-columns: 1fr; } }
.pres-list { display: grid; gap: 8px; }
.pres-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.pres-row small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.live-help h2, .tr-grid h2 { font-size: var(--fs-lg); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.live-help h2 i { color: var(--danger); }
.live-help ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: var(--fs-sm); }
.qbars { display: grid; gap: 8px; }
.qbars .r-bar { grid-template-columns: 40px 1fr 40px; }
.segbar.s11 { grid-template-columns: repeat(11, 1fr); }
.subs { display: grid; gap: 12px; }
.sub { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.sub .btn { justify-self: start; }

/* Portfolio additions */
.pf-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pf-quotes blockquote { margin: 0; padding: 18px; border-radius: 16px; background: var(--p-surface); border: 1px solid var(--p-line); font-size: var(--fs-md); line-height: 1.5; display: grid; gap: 10px; }
.pf-quotes cite { font-style: normal; font-size: var(--fs-xs); color: var(--p-accent); font-weight: 700; }
.pf-note { font-size: var(--fs-xs); color: var(--p-muted); margin-top: 10px; }

/* A4 documents: CV, certificate, guide */
.a4 { width: min(100%, 820px); margin: 0 auto; background: #fff; color: #111a33; border-radius: 6px; box-shadow: var(--sh-2); padding: clamp(24px, 6vw, 64px); font-family: var(--f-text); animation: rise .6s var(--ease-enter); }
.a4 h1, .a4 h2 { color: #111a33; }
.cv-h { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.cv h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.cv-role { color: #c2410c; font-weight: 700; font-size: var(--fs-lg); margin-top: 4px; }
.cv-logo { height: 30px; width: auto; opacity: .9; }
.cv-contact { color: #4b5675; font-size: var(--fs-sm); margin: 10px 0 6px; padding-bottom: 14px; border-bottom: 2px solid #111a33; }
.cv section { margin-top: 20px; }
.cv h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #c2410c; margin-bottom: 8px; font-family: var(--f-text); }
.cv-item { margin-bottom: 12px; }
.cv-top { display: flex; justify-content: space-between; gap: 12px; }
.cv-top span { color: #4b5675; font-size: var(--fs-sm); white-space: nowrap; }
.cv-org { color: #4b5675; font-size: var(--fs-sm); }
.cv p { line-height: 1.55; }
.cv-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .cv-2 { grid-template-columns: 1fr; } .cv-h { flex-direction: column-reverse; } }
.cert.land { width: min(100%, 1060px); aspect-ratio: 1.414; display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; border: 14px solid #0b1226; outline: 2px solid #f5b53d; outline-offset: -26px; }
.cert-logo { height: 54px; width: auto; }
.cert-k { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c2410c; font-size: var(--fs-sm); }
.cert h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; }
.cert-t { max-width: 62ch; color: #333d5c; line-height: 1.6; }
.cert-mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 760px; font-size: var(--fs-xs); color: #8a93ad; }
.cert-mods span { display: inline-flex; gap: 6px; align-items: center; }
.cert-mods span.on { color: #111a33; font-weight: 600; } .cert-mods span.on i { color: #059669; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; width: 100%; max-width: 820px; margin-top: 18px; }
.cert-foot img { height: 44px; width: auto; }
.sig { display: grid; gap: 6px; font-size: var(--fs-xs); color: #4b5675; }
.sig span { height: 1px; background: #111a33; }
@media (max-width: 700px) { .cert.land { aspect-ratio: auto; border-width: 8px; outline-offset: -16px; } .cert-foot { grid-template-columns: 1fr; justify-items: center; } }
.guide { background: #fff; color: #111a33; border-radius: 6px; padding: clamp(24px, 5vw, 56px); display: grid; gap: 28px; box-shadow: var(--sh-2); }
.guide h1, .guide h2, .guide h3 { color: #111a33; }
.g-cover { display: grid; gap: 12px; padding-bottom: 24px; border-bottom: 3px solid #111a33; }
.g-cover img { height: 52px; width: auto; }
.g-cover h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.g-cover p { color: #4b5675; }
.guide h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
.guide h3 { font-size: var(--fs-md); margin: 18px 0 8px; color: #c2410c; font-family: var(--f-text); }
.guide p, .guide li { color: #333d5c; line-height: 1.55; font-size: var(--fs-sm); }
.guide ul, .guide ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.guide table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); margin: 6px 0 10px; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #dfe3ec; color: #333d5c; }
.guide th { background: #f1f3f8; color: #111a33; font-weight: 700; }
.guide td:first-child { white-space: nowrap; }
.g-mod { padding-top: 24px; border-top: 1px solid #dfe3ec; }
.g-meta { color: #4b5675 !important; }
.g-watch { padding: 10px 12px; background: #fff7e6; border-left: 3px solid #f5b53d; border-radius: 6px; }
@media (max-width: 640px) { .guide table { display: block; overflow-x: auto; } }

@media print {
  .pf-bar, .site-foot, .footer-note { display: none !important; }
  .a4, .guide { box-shadow: none; border-radius: 0; animation: none !important; width: 100%; }
  .cert.land { aspect-ratio: auto; min-height: 92vh; }
  .g-mod { break-before: page; }
  .guide table { display: table; }
}

/* ---------- LTT2 labs ---------- */
.lab-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lab-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(245, 181, 61, .12); border: 1px solid rgba(245, 181, 61, .35); white-space: nowrap; }
.mh-labs .lab-chip { font-size: 13px; padding: 5px 11px; text-decoration: none; }
.lab-row .lr-when { font-size: 13px; color: var(--muted); }
.lab-row .lr-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Join overlay in present mode */
.pr-joinbtn { margin-left: auto; }
.pr-join { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(7, 13, 31, .86); backdrop-filter: blur(6px); cursor: pointer; }
.pr-join[hidden] { display: none; }
.pj-card { display: grid; justify-items: center; gap: 14px; padding: 32px 40px; border-radius: 24px; background: #fff; color: #070d1f; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.pj-card p { margin: 0; font-size: 20px; font-weight: 600; }
.pj-card b { font: 700 clamp(20px, 2.4vw, 34px) 'Bricolage Grotesque', sans-serif; letter-spacing: -.01em; }
.pj-card small { color: #5b6480; }
.pj-qr img, .pj-qr canvas { display: block; width: 280px; height: 280px; }

/* Printable deck */
.pd-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(7, 13, 31, .92); backdrop-filter: blur(8px); }
.pd { display: grid; gap: 24px; justify-items: center; padding: 24px 16px 60px; }
.pd-page { --sc: hsl(var(--hue) 85% 64%); position: relative; width: min(100%, 1120px); aspect-ratio: 16 / 9; display: grid; grid-template-rows: auto 1fr auto; padding: 2.2% 4%; border-radius: 16px; overflow: hidden; color: var(--ink);
  background: radial-gradient(120% 90% at 100% 0%, hsl(var(--hue) 60% 20% / .9), transparent 60%), #070d1f; container-type: inline-size; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pd-page *, .pd-page *::before, .pd-page *::after { animation: none !important; transition: none !important; }
.pd-head { display: flex; align-items: center; gap: 2cqi; font-size: 1.35cqi; color: var(--muted); }
.pd-head img { height: 3cqi; width: auto; }
.pd-head span:last-child { margin-left: auto; }
.pd-stage { display: grid; align-items: center; min-height: 0; container-type: inline-size; }
.pd-foot { font-size: 1.1cqi; color: var(--muted); }
.pd-page .flips { align-items: stretch; }
.pd-page .flip { min-height: 0; cursor: default; }
.pd-page .f-in { transform: none !important; display: grid; gap: 8px; }
.pd-page .f-front, .pd-page .f-back { position: static; transform: none; backface-visibility: visible; }
.pd-page .f-back { font-size: clamp(12px, 1.5cqi, 20px); }
.pd-page .sc-r[hidden], .pd-page .qa-why[hidden] { display: none; }
@media print {
  @page { size: 297mm 167mm; margin: 0; }
  body.bare { background: #070d1f; }
  .pd-bar { display: none !important; }
  .pd { display: block; padding: 0; }
  .pd-page { width: 297mm; height: 167mm; aspect-ratio: auto; border-radius: 0; break-after: page; page-break-after: always; }
  .pd-page:last-child { break-after: auto; page-break-after: auto; }
}

/* ---------- AR ---------- */
.ar-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.ar-tools .seg button { gap: 6px; }
.mv-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: radial-gradient(100% 80% at 50% 25%, #ffffff 0%, #e6eaf4 55%, #c4cbe0 100%); }
.mv-wrap model-viewer { display: block; width: 100%; height: min(72vh, 660px); --poster-color: transparent; background: transparent; }
.mv-ar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.mv-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #26314f; font-weight: 600; pointer-events: none; }
.mv-status[hidden] { display: none; }
.ar-help { margin-top: 8px; }
.ar-help ol { display: grid; gap: 8px; padding-left: 20px; }
.ar-page .mv-wrap { margin-bottom: 14px; }
@media (max-width: 640px) { .mv-wrap model-viewer { height: 60vh; } .ar-tools .seg { width: 100%; } .ar-page .lead { display: none; } }

/* ---------- Phones: slides stack instead of squeezing (deck, live view and presenter) ---------- */
@container (max-width: 600px) {
  .sl-steps ol { grid-template-columns: 1fr; }
  .sl-steps li { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .sl-steps li .st-n { grid-row: span 2; align-self: start; }
  .flips, .flips.n4 { grid-template-columns: 1fr; }
  .flip { min-height: 112px; }
}
/* Portfolio on phones: no decorative rings over the name, one scrollable row of actions */
@media (max-width: 640px) {
  .pf-hero::after { display: none; }
  .pf-bar { padding: 10px 12px; gap: 8px; }
  .pf-bar > .row-btns:last-child { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pf-bar > .row-btns:last-child::-webkit-scrollbar { display: none; }
  .pf-bar > .row-btns:last-child > *, .pf-bar .tag-grid { flex: 0 0 auto; }
  .pf-bar .tag-grid { flex-wrap: nowrap; }
}

.mv-ar[hidden] { display: none !important; }

/* AR mirror (computers with a webcam) */
.mv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.mv-video[hidden] { display: none; }
.mv-wrap model-viewer { position: relative; z-index: 1; }
.mv-wrap .mv-status, .mv-wrap .mv-ar { z-index: 2; }
.mv-wrap.mirror { background: #000; }
.mv-wrap.flash::after { content: ''; position: absolute; inset: 0; z-index: 3; background: #fff; pointer-events: none; animation: mv-flash .5s ease-out forwards; }
@keyframes mv-flash { from { opacity: .85; } to { opacity: 0; } }
.mirror-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 6px; }
.mirror-bar[hidden], .mirror-bar [hidden] { display: none !important; }
.mirror-bar .select { width: auto; max-width: 260px; }
