/* Zenorix People Portal */
:root {
  --bg: #05060a;
  --bg-2: #090b12;
  --panel: #0e111b;
  --panel-2: #141826;
  --panel-3: #1b2033;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5fb;
  --text-2: #c4cada;
  --muted: #8790a6;
  --blue: #2349f0;
  --blue-2: #4d6dff;
  --blue-3: #8fa5ff;
  --blue-glow: rgba(35, 73, 240, 0.45);
  --good: #2fd27a;
  --warn: #f6b93b;
  --bad: #f2546a;
  --ph: #ffe08a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--blue-3); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
svg.lucide { width: 1em; height: 1em; stroke-width: 1.8; }
::selection { background: var(--blue); color: #fff; }

/* Backdrop */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 22s ease-in-out infinite alternate; }
.backdrop .orb.a { width: 520px; height: 520px; background: radial-gradient(circle, #1d3fe0, transparent 70%); top: -180px; left: -120px; }
.backdrop .orb.b { width: 460px; height: 460px; background: radial-gradient(circle, #0f2a9e, transparent 70%); bottom: -200px; right: -100px; animation-delay: -8s; }
.backdrop .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.35;
}
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }

/* Brand bar motif (the slanted blue stroke from the logo) */
.zx-bar { display: inline-block; width: 46px; height: 7px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform: skewX(-38deg); border-radius: 1px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-3); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo img { height: 26px; display: block; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: 0.2s; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: var(--text); background: var(--panel-3); }
.nav .soon { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 999px; background: rgba(77, 109, 255, 0.18); color: var(--blue-3); }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: 0.2s; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

main { max-width: 1240px; margin: 0 auto; padding: 36px 32px 80px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--panel-3); color: var(--text); border: 1px solid var(--line-2);
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.3s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); background: #232a42; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: transparent; box-shadow: 0 10px 30px -10px var(--blue-glow); color: #fff; }
.btn.primary:hover { box-shadow: 0 14px 40px -10px var(--blue-glow); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* Cards */
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* Placeholder highlight */
.ph { color: var(--ph); background: rgba(255, 224, 138, 0.1); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Entrance animation helpers */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.7s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { 0% { transform: scale(0.92); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* ===================== Welcome ===================== */
.welcome { min-height: calc(100vh - 0px); display: grid; grid-template-columns: 1.1fr 1fr; }
.welcome-hero { padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.welcome-hero .logo img { height: 34px; }
.welcome-hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; margin: 28px 0 20px; }
.welcome-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-2), var(--blue-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-hero .lead { color: var(--text-2); font-size: 17px; max-width: 520px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.hero-stats span { color: var(--muted); font-size: 13px; }
.welcome-form-wrap { display: grid; place-items: center; padding: 40px; border-left: 1px solid var(--line); background: rgba(9, 11, 18, 0.6); }
.welcome-form { width: 100%; max-width: 420px; }
.welcome-form h2 { font-size: 26px; margin-bottom: 6px; }
.welcome-form .sub { color: var(--muted); margin-bottom: 28px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--line-2); outline: none; transition: 0.2s;
}
.input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(77, 109, 255, 0.18); }
.input::placeholder { color: #59617a; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.switch-link { margin-top: 22px; font-size: 13px; color: var(--muted); }
.switch-link button { color: var(--blue-3); font-weight: 700; }
.err { color: var(--bad); font-size: 13px; min-height: 20px; }
.ticker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.ticker span { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); animation: rise 0.6s var(--ease) both; }

/* ===================== Dashboard ===================== */
.dash-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: 32px; }
.dash-head h1 { font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 10px; }
.dash-head p { color: var(--text-2); max-width: 640px; }
.ring { position: relative; width: 168px; height: 168px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--panel-3); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring .label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .label b { font-family: var(--font-display); font-size: 38px; font-weight: 600; display: block; line-height: 1; }
.ring .label span { font-size: 12px; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { padding: 18px 20px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-top: 6px; }

.next-up {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 28px; margin-bottom: 36px; border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(35, 73, 240, 0.35), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(77, 109, 255, 0.35);
}
.next-up .big-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 32px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 20px 40px -15px var(--blue-glow); color: #fff; }
.next-up h3 { font-size: 22px; margin: 6px 0; }
.next-up p { color: var(--text-2); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; margin-top: 10px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

.section-title { display: flex; align-items: end; justify-content: space-between; margin: 8px 0 18px; }
.section-title h2 { font-size: 22px; }
.section-title p { color: var(--muted); font-size: 14px; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.mod-card {
  position: relative; text-align: left; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; gap: 12px; min-height: 196px; overflow: hidden;
}
.mod-card:not(.locked):hover { transform: translateY(-4px); border-color: rgba(77, 109, 255, 0.5); box-shadow: 0 24px 50px -24px var(--blue-glow); }
.mod-card .top { display: flex; align-items: center; justify-content: space-between; }
.mod-card .num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--muted); }
.mod-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--panel-3); color: var(--blue-3); }
.mod-card h3 { font-size: 17px; }
.mod-card .tag { font-size: 13px; color: var(--muted); flex: 1; }
.mod-card .foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.mod-card .progress { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.mod-card .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 4px; }
.mod-card.locked { opacity: 0.5; cursor: not-allowed; }
.mod-card.done .ic { background: rgba(47, 210, 122, 0.14); color: var(--good); }
.mod-card.current { border-color: rgba(77, 109, 255, 0.55); }
.mod-card.current::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(77, 109, 255, 0.3); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 1px rgba(77, 109, 255, 0.8), 0 0 40px -10px var(--blue-glow); } }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.badge.good { background: rgba(47, 210, 122, 0.14); color: var(--good); }
.badge.warn { background: rgba(246, 185, 59, 0.14); color: var(--warn); }
.badge.bad { background: rgba(242, 84, 106, 0.14); color: var(--bad); }
.badge.blue { background: rgba(77, 109, 255, 0.16); color: var(--blue-3); }
.badge.mute { background: var(--panel-3); color: var(--muted); }

.timeline { margin-top: 40px; }
.timeline-track { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; }
.tl-day { text-align: center; }
.tl-day .dot { height: 8px; border-radius: 6px; background: var(--panel-3); margin-bottom: 8px; position: relative; }
.tl-day.done .dot { background: var(--good); }
.tl-day.today .dot { background: var(--blue-2); box-shadow: 0 0 16px var(--blue-glow); }
.tl-day.late .dot { background: var(--bad); }
.tl-day b { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.tl-day small { font-size: 11px; color: var(--text-2); }

/* ===================== Player ===================== */
.player { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.rail { position: sticky; top: 92px; padding: 20px; }
.rail .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.rail .back:hover { color: var(--text); }
.rail h3 { font-size: 17px; margin-bottom: 6px; }
.rail .meta { margin: 0 0 18px; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(100vh - 330px); overflow: auto; }
.rail li button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--muted); transition: 0.2s; }
.rail li button:hover:not([disabled]) { background: var(--panel-3); color: var(--text); }
.rail li button[disabled] { opacity: 0.45; cursor: default; }
.rail li.active button { background: rgba(77, 109, 255, 0.14); color: var(--text); }
.rail li .n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--panel-3); }
.rail li.seen .n { background: rgba(47, 210, 122, 0.18); color: var(--good); }
.rail li.active .n { background: var(--blue); color: #fff; }

.stage-wrap { min-width: 0; }
.stage-progress { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; margin-bottom: 18px; }
.stage-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transition: width 0.6s var(--ease); }
.stage {
  position: relative; min-height: 540px; border-radius: 26px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(90% 80% at 100% 0%, rgba(35, 73, 240, 0.14), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}
.slide { padding: 48px 56px 40px; }
.slide.enter-next { animation: slideInNext 0.6s var(--ease); }
.slide.enter-prev { animation: slideInPrev 0.6s var(--ease); }
@keyframes slideInNext { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes slideInPrev { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: none; } }
.slide > * { opacity: 0; animation: rise 0.7s var(--ease) forwards; }
.slide > *:nth-child(1) { animation-delay: 0.05s; }
.slide > *:nth-child(2) { animation-delay: 0.14s; }
.slide > *:nth-child(3) { animation-delay: 0.23s; }
.slide > *:nth-child(4) { animation-delay: 0.32s; }
.slide > *:nth-child(5) { animation-delay: 0.41s; }
.slide h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 12px 0 10px; }
.slide .lead { color: var(--text-2); font-size: 16px; max-width: 760px; margin-bottom: 28px; }
.stage-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.stage-controls .count { color: var(--muted); font-size: 13px; font-weight: 600; }
.keys-hint { font-size: 12px; color: #5a627a; }
.keys-hint kbd { font-family: inherit; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); }

/* Hero slide */
.slide.hero { min-height: 540px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.slide.hero .mod-no { font-family: var(--font-display); font-size: 160px; line-height: 1; font-weight: 700; position: absolute; right: 40px; bottom: -20px; color: transparent; -webkit-text-stroke: 1px rgba(143, 165, 255, 0.22); opacity: 1; }
.slide.hero h2 { font-size: clamp(34px, 4vw, 54px); max-width: 760px; }
.slide.hero .goal { display: flex; gap: 14px; align-items: flex-start; max-width: 640px; padding: 18px 20px; margin-top: 18px; border-radius: 16px; background: rgba(77, 109, 255, 0.08); border: 1px solid rgba(77, 109, 255, 0.25); color: var(--text-2); }
.slide.hero .goal svg { color: var(--blue-3); font-size: 20px; margin-top: 2px; flex: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--panel-3); font-size: 13px; font-weight: 600; color: var(--text-2); }
.legal-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--warn); margin-top: 16px; }

/* Statement slide */
.slide.statement { min-height: 540px; display: flex; flex-direction: column; justify-content: center; }
.slide.statement h2 { font-size: clamp(32px, 3.8vw, 50px); max-width: 820px; }
.slide.statement h2::after { content: ""; display: block; width: 70px; height: 5px; margin-top: 22px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform: skewX(-38deg); }
.slide.statement .text { color: var(--text-2); font-size: 18px; max-width: 720px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); opacity: 0; animation: pop 0.5s var(--ease) forwards; }

/* Points */
.points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.points.c2 { grid-template-columns: repeat(2, 1fr); }
.points.c3 { grid-template-columns: repeat(3, 1fr); }
.point { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); transition: 0.3s var(--ease); opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.point:hover { border-color: rgba(77, 109, 255, 0.45); transform: translateY(-3px); background: rgba(77, 109, 255, 0.06); }
.point .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(77, 109, 255, 0.14); color: var(--blue-3); margin-bottom: 14px; }
.point h4 { font-size: 15px; margin-bottom: 6px; }
.point p { font-size: 14px; color: var(--text-2); }
.point.compact { display: flex; align-items: center; gap: 14px; padding: 16px; }
.point.compact .ic { margin: 0; }
.point.compact h4 { margin: 0; }
.note { margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--blue-2); background: rgba(77, 109, 255, 0.07); border-radius: 0 12px 12px 0; color: var(--text-2); font-size: 14px; }

/* Flip cards */
.flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1180px) { .flips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flips { grid-template-columns: 1fr; } }
.flip { perspective: 1200px; height: 210px; opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s var(--ease); transform-style: preserve-3d; cursor: pointer; }
.flip.on .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-2); }
.flip-front { background: linear-gradient(160deg, var(--panel-3), var(--panel-2)); }
.flip-front .ic { font-size: 26px; color: var(--blue-3); }
.flip-front h4 { font-size: 18px; }
.flip-front small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.flip-back { transform: rotateY(180deg); background: linear-gradient(150deg, var(--blue), #1630b0); color: #fff; justify-content: center; font-size: 15px; font-weight: 600; line-height: 1.5; }
.flip-count { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Scenario */
.scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.situation { padding: 26px; border-radius: 20px; background: linear-gradient(160deg, rgba(77, 109, 255, 0.18), rgba(77, 109, 255, 0.03)); border: 1px solid rgba(77, 109, 255, 0.3); font-size: 19px; font-family: var(--font-display); line-height: 1.45; position: relative; }
.situation .q { position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-size: 18px; color: #fff; }
.options { display: grid; gap: 10px; }
.opt { text-align: left; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); transition: 0.25s var(--ease); font-weight: 600; }
.opt:hover:not([disabled]) { border-color: var(--blue-2); background: rgba(77, 109, 255, 0.08); transform: translateX(4px); }
.opt .l { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--panel-3); }
.opt.right { border-color: var(--good); background: rgba(47, 210, 122, 0.1); }
.opt.right .l { background: var(--good); color: #04140b; }
.opt.wrong { border-color: var(--bad); background: rgba(242, 84, 106, 0.08); animation: shake 0.4s; }
.opt.wrong .l { background: var(--bad); color: #fff; }
.opt[disabled] { cursor: default; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: pop 0.4s var(--ease); }
.feedback.good { background: rgba(47, 210, 122, 0.1); color: #b8f5d2; }
.feedback.bad { background: rgba(242, 84, 106, 0.1); color: #ffc7cf; }
.feedback svg { flex: none; margin-top: 3px; }

/* Do / don't */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dd-col { border-radius: 18px; padding: 8px; border: 1px solid var(--line); }
.dd-col.do { background: rgba(47, 210, 122, 0.05); border-color: rgba(47, 210, 122, 0.25); }
.dd-col.dont { background: rgba(242, 84, 106, 0.05); border-color: rgba(242, 84, 106, 0.25); }
.dd-col h4 { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 16px; }
.dd-col.do h4 { color: var(--good); }
.dd-col.dont h4 { color: var(--bad); }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--text-2); opacity: 0; animation: rise 0.5s var(--ease) forwards; }
.dd-item svg { flex: none; margin-top: 4px; }
.dd-col.do .dd-item svg { color: var(--good); }
.dd-col.dont .dd-item svg { color: var(--bad); }
.dd-item + .dd-item { border-top: 1px solid var(--line); }

/* Table */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 14px 18px; background: var(--panel-3); font-weight: 700; }
.tbl td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.tbl tr { opacity: 0; animation: rise 0.5s var(--ease) forwards; }
.tbl tbody tr:hover td { background: rgba(77, 109, 255, 0.05); }
.tbl td:first-child { color: var(--text); font-weight: 600; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--bad); font-weight: 700; }
.maybe { color: var(--warn); font-weight: 700; }

/* Steps */
.steps { display: grid; gap: 0; position: relative; max-width: 780px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; position: relative; padding-bottom: 22px; opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: linear-gradient(var(--blue-2), transparent); }
.step:last-child::before { display: none; }
.step .n { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 10px 24px -10px var(--blue-glow); }
.step h4 { font-size: 16px; margin: 4px 0 4px; }
.step p { color: var(--text-2); font-size: 14px; }
.steps.inline { display: flex; flex-wrap: wrap; gap: 12px; max-width: none; }
.steps.inline .step { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 14px; background: var(--panel-3); }
.steps.inline .step::before { display: none; }
.steps.inline .step .n { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.steps.inline .step h4 { margin: 0; font-size: 14px; }

/* Callout */
.callout { display: flex; gap: 22px; align-items: flex-start; padding: 34px; border-radius: 22px; border: 1px solid var(--line-2); max-width: 860px; }
.callout .ic { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; }
.callout h3 { font-size: 24px; margin-bottom: 10px; }
.callout p { color: var(--text-2); font-size: 16px; }
.callout.info { background: rgba(77, 109, 255, 0.08); border-color: rgba(77, 109, 255, 0.3); }
.callout.info .ic { background: rgba(77, 109, 255, 0.2); color: var(--blue-3); }
.callout.warn { background: rgba(246, 185, 59, 0.06); border-color: rgba(246, 185, 59, 0.3); }
.callout.warn .ic { background: rgba(246, 185, 59, 0.16); color: var(--warn); }
.callout.good { background: rgba(47, 210, 122, 0.06); border-color: rgba(47, 210, 122, 0.3); }
.callout.good .ic { background: rgba(47, 210, 122, 0.16); color: var(--good); }
.slide.center-v { min-height: 540px; display: flex; flex-direction: column; justify-content: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-big { padding: 26px 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); opacity: 0; animation: pop 0.6s var(--ease) forwards; }
.stat-big b { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff, var(--blue-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big u { text-decoration: none; font-size: 14px; color: var(--blue-3); margin-left: 6px; font-weight: 700; }
.stat-big p { color: var(--text-2); font-size: 14px; margin-top: 10px; }
.stats.big .stat-big b { font-size: 60px; }

/* People */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); text-align: center; opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.person .avatar { width: 74px; height: 74px; font-size: 24px; margin: 0 auto 14px; }
.person h4 { font-size: 16px; }
.person p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Checklist */
.checklist { display: grid; gap: 10px; max-width: 720px; }
.check { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: 0.25s var(--ease); user-select: none; opacity: 0; animation: rise 0.5s var(--ease) forwards; }
.check:hover { border-color: var(--blue-2); }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: 0.25s var(--ease); }
.check.on { border-color: rgba(47, 210, 122, 0.4); background: rgba(47, 210, 122, 0.06); }
.check.on .box { background: var(--good); border-color: var(--good); color: #04140b; transform: scale(1.08); }
.check.on span { color: var(--text-2); }
.check-meter { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Templates */
.templates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tpl { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); display: flex; flex-direction: column; gap: 12px; opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.tpl .h { display: flex; align-items: center; justify-content: space-between; }
.tpl h4 { font-size: 14px; color: var(--blue-3); text-transform: uppercase; letter-spacing: 0.08em; }
.tpl p { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Takeaways */
.takeaways { display: grid; gap: 12px; max-width: 760px; }
.takeaway { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 16px; font-weight: 600; opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.takeaway .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 210, 122, 0.16); color: var(--good); }

/* Declaration */
.decl { display: grid; gap: 10px; }
.decl-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.decl-row .yn { display: inline-flex; border-radius: 999px; padding: 3px; background: var(--panel-3); }
.decl-row .yn button { padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: 0.2s; }
.decl-row .yn button.on.y { background: var(--warn); color: #1a1200; }
.decl-row .yn button.on.n { background: var(--good); color: #04140b; }
.decl-row textarea { grid-column: 1 / -1; min-height: 64px; resize: vertical; }
.sign-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 16px; align-items: end; }
.signed-box { margin-top: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(47, 210, 122, 0.35); background: rgba(47, 210, 122, 0.06); display: flex; gap: 12px; align-items: center; font-size: 14px; }
.signed-box svg { color: var(--good); font-size: 20px; }

/* Quiz */
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 26px; height: 6px; border-radius: 6px; background: var(--panel-3); transition: 0.3s; }
.quiz-dots i.cur { background: var(--blue-2); }
.quiz-dots i.r { background: var(--good); }
.quiz-dots i.w { background: var(--bad); }
.quiz-q { font-size: clamp(22px, 2.4vw, 30px); max-width: 820px; margin-bottom: 26px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result { text-align: center; padding: 30px 0 10px; display: flex; flex-direction: column; align-items: center; }
.result .score { font-family: var(--font-display); font-size: 96px; font-weight: 700; line-height: 1; margin: 18px 0 8px; }
.result.pass .score { background: linear-gradient(180deg, #fff, var(--good)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result.fail .score { background: linear-gradient(180deg, #fff, var(--warn)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result p { color: var(--text-2); max-width: 520px; }
.result .actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.result-icon { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 40px; }
.result.pass .result-icon { background: rgba(47, 210, 122, 0.16); color: var(--good); }
.result.fail .result-icon { background: rgba(246, 185, 59, 0.16); color: var(--warn); }

/* Acknowledgment */
.ack { max-width: 760px; }
.ack-text { padding: 24px 26px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); font-size: 17px; line-height: 1.7; margin: 18px 0 20px; font-family: var(--font-display); font-weight: 400; }
.ack-text b { color: var(--blue-3); font-weight: 600; }
.ack-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 16px 0 22px; color: var(--text-2); font-size: 14px; }
.ack-check input { width: 20px; height: 20px; accent-color: var(--blue); margin-top: 2px; flex: none; }
.record-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; font-size: 13px; margin-top: 10px; }
.record-meta div span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.record-meta code { font-size: 12px; color: var(--text-2); word-break: break-all; }

/* Complete */
.complete { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; min-height: 540px; justify-content: center; }
.complete .medal { width: 120px; height: 120px; border-radius: 36px; display: grid; place-items: center; font-size: 54px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 30px 60px -20px var(--blue-glow); animation: medal 1s var(--ease); }
@keyframes medal { 0% { transform: scale(0.3) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.1) rotate(6deg); } 100% { transform: none; opacity: 1; } }
.complete h2 { font-size: 40px; margin: 26px 0 10px; }
.complete p { color: var(--text-2); max-width: 520px; }
.complete .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

/* ===================== Admin ===================== */
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 36px; margin-top: 12px; }
.admin-head p { color: var(--text-2); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.learner-row { display: grid; grid-template-columns: auto 1.4fr 1fr 1.2fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; cursor: pointer; transition: 0.2s; }
.learner-row:hover { border-color: rgba(77, 109, 255, 0.45); }
.learner-row .name b { display: block; }
.learner-row .name small { color: var(--muted); }
.mini-bar { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.learner-detail { padding: 22px; margin: -4px 0 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); animation: pop 0.35s var(--ease); }
.learner-detail h4 { font-size: 14px; margin: 18px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.learner-detail h4:first-child { margin-top: 0; }
.cl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
.cl-item { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); padding: 6px 0; }
.cl-item svg { flex: none; }
.cl-item.ok svg { color: var(--good); }
.cl-item.no svg { color: #4a5168; }
.tbl.small td, .tbl.small th { padding: 10px 14px; font-size: 12px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { font-size: 38px; color: var(--blue-3); margin-bottom: 12px; }

/* Leave teaser */
.teaser { text-align: center; max-width: 720px; margin: 40px auto; }
.teaser .ic { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 28px; display: grid; place-items: center; font-size: 44px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 30px 60px -20px var(--blue-glow); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.teaser h1 { font-size: 44px; margin: 14px 0; }
.teaser p { color: var(--text-2); font-size: 17px; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; text-align: left; }

/* Certificate */
.cert-wrap { display: grid; place-items: center; }
.cert { width: min(960px, 100%); aspect-ratio: 1.414; background: #fff; color: #0b0d14; border-radius: 10px; padding: 6% 7%; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cert::before { content: ""; position: absolute; top: 0; left: 0; width: 34%; height: 14px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform: skewX(-38deg) translateX(-20px); }
.cert::after { content: ""; position: absolute; inset: 18px; border: 1px solid #e3e6ef; border-radius: 6px; pointer-events: none; }
.cert img { height: 34px; align-self: flex-start; }
.cert .t { margin-top: 7%; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: #5a6277; font-weight: 700; }
.cert h1 { font-size: clamp(28px, 4.4vw, 50px); margin: 14px 0; color: #0b0d14; }
.cert .body { color: #3c4357; font-size: clamp(13px, 1.4vw, 16px); max-width: 640px; }
.cert .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; font-size: 12px; color: #5a6277; gap: 20px; }
.cert .foot b { display: block; color: #0b0d14; font-size: 14px; }
.cert .seal { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-size: 34px; }
.cert-actions { display: flex; gap: 12px; margin-top: 22px; }

/* Toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; z-index: 120; transition: 0.35s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ===================== Sign-in, profile, shared bits ===================== */
.muted { color: var(--muted); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; color: var(--text-2); }
.link { color: var(--blue-3); font-weight: 700; padding: 0; }
.link:hover { text-decoration: underline; }
img.avatar { object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.lock-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; margin-bottom: 20px; background: rgba(77, 109, 255, 0.14); color: var(--blue-3); border: 1px solid rgba(77, 109, 255, 0.3); }
.lock-ic:has(.avatar) { background: none; border: 0; width: auto; height: auto; justify-content: start; }
.gsi-slot { min-height: 44px; display: flex; justify-content: center; margin: 8px 0 4px; }
.auto-status { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 14px; min-height: 20px; }
.auto-status .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--blue-2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.welcome.single { grid-template-columns: 1fr; min-height: calc(100vh - 20px); }
.welcome.single .welcome-form-wrap { background: none; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 16px; }
.back-link:hover { color: var(--text); }
.card-h { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 14px; }
.card-h svg { color: var(--blue-3); }

.banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; background: rgba(77, 109, 255, 0.1); border: 1px solid rgba(77, 109, 255, 0.3); color: var(--text-2); font-size: 14px; }
.banner svg { flex: none; font-size: 18px; margin-top: 2px; color: var(--blue-3); }
.banner.bad { background: rgba(242, 84, 106, 0.08); border-color: rgba(242, 84, 106, 0.35); }
.banner.bad svg { color: var(--bad); }
.banner.good { background: rgba(47, 210, 122, 0.08); border-color: rgba(47, 210, 122, 0.35); margin: 0 auto 18px; }
.banner.good svg { color: var(--good); }
.banner b { color: var(--text); }

/* Listen button */
.stage-controls .count { display: inline-flex; align-items: center; gap: 12px; }
.listen.on { color: var(--blue-3); border-color: var(--blue-2); background: rgba(77, 109, 255, 0.12); animation: pulse 1.6s ease-in-out infinite; }

/* Rating */
.rate { margin-top: 26px; width: min(460px, 100%); display: grid; gap: 12px; justify-items: center; padding: 20px; }
.rate p { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--text-2); font-size: 14px; }
.rate p svg { color: var(--bad); }
.rate textarea { min-height: 70px; resize: vertical; }
.stars { display: flex; gap: 4px; }
.stars button { font-size: 30px; line-height: 1; color: #39405a; transition: transform 0.2s var(--ease), color 0.2s; }
.stars button:hover { transform: scale(1.15); }
.stars button.on { color: #ffc94d; }
.stars-static { color: #ffc94d; letter-spacing: 1px; }
.stars-static span { color: #39405a; }

/* Admin tools */
.admin-tools { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 40px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--muted); transition: 0.2s; }
.chip b { margin-left: 4px; color: var(--text-2); }
.chip:hover { color: var(--text); }
.chip.on { background: rgba(77, 109, 255, 0.16); border-color: var(--blue-2); color: var(--text); }
.learner-row.open { border-color: rgba(77, 109, 255, 0.5); border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.learner-row.open + .learner-detail { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; border-color: rgba(77, 109, 255, 0.5); border-top: 0; }
.admin-edit { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.admin-edit .field { margin: 0; }
.edit-actions { display: flex; gap: 8px; }
.cl-item.toggle { text-align: left; cursor: pointer; }
.cl-item.toggle .badge { margin-left: 6px; }
.admin-fb { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment { padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.comment:first-of-type { border-top: 0; padding-top: 0; }
.comment p { color: var(--text-2); margin: 4px 0; }

/* ===================== Company settings and legal review ===================== */
.ph.legal { color: var(--warn); background: rgba(246, 185, 59, 0.1); font-weight: 600; font-size: 0.92em; }
.blank { display: inline-block; padding: 0 6px; border-radius: 4px; border: 1px dashed var(--line-2); color: var(--blue-3); font-weight: 600; }
.legal-tag.ok { color: var(--good); }
.admin-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); width: fit-content; margin: 14px 0 4px; flex-wrap: wrap; }
.admin-tabs a { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.admin-tabs a.on { background: var(--panel-3); color: var(--text); }
.admin-tabs .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; display: inline-grid; place-items: center; }
.set-progress { margin-bottom: 16px; }
.set-progress p { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.set-bar { height: 8px; border-radius: 8px; background: var(--panel-3); overflow: hidden; }
.set-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--good)); border-radius: 8px; transition: width 0.8s var(--ease); }
.set-groups { display: grid; gap: 16px; padding-bottom: 90px; }
.set-field { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.set-field:first-of-type { border-top: 0; padding-top: 0; }
.set-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.set-label label { font-size: 14px; font-weight: 700; }
.set-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); }
.set-field textarea.input { resize: vertical; min-height: 44px; }
.set-save { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; }
.legal-card { margin-bottom: 16px; }
.legal-card .card-h { justify-content: space-between; }
.legal-done { color: var(--text-2); font-size: 14px; }
.legal-notes { margin: 10px 0 0; padding-left: 20px; color: var(--warn); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.form-grid .field { margin: 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1024px) {
  .player { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; min-width: 0; }
  .rail ol { display: flex; overflow-x: auto; max-height: none; }
  .rail li button span.t { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .welcome { grid-template-columns: 1fr; }
  .welcome-form-wrap { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  main { padding: 24px 16px 60px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar .logo img { height: 20px; }
  .nav { display: none; }
  .user-chip .nm { display: none; }
  .welcome-hero { padding: 36px 20px; }
  .welcome-form-wrap { padding: 30px 16px; }
  .dash-head { grid-template-columns: 1fr; }
  .ring { width: 130px; height: 130px; }
  .next-up { grid-template-columns: 1fr; }
  .slide { padding: 30px 20px 28px; }
  .slide.hero .mod-no { font-size: 100px; right: 10px; }
  .points.c2, .points.c3, .scenario, .dodont, .templates, .quiz-opts, .people, .teaser-grid, .cl-grid, .record-meta { grid-template-columns: 1fr; }
  .timeline-track { grid-template-columns: repeat(7, 1fr); row-gap: 14px; }
  .learner-row { grid-template-columns: auto 1fr; }
  .learner-detail .tbl, .slide .tbl, .card > .tbl { display: block; overflow-x: auto; }
  .admin-edit, .admin-fb, .form-grid { grid-template-columns: 1fr; }
  .set-save { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .stage-controls .count .keys-hint { display: none; }
  .admin-head h1 { font-size: 28px; }
  .learner-row > :nth-child(n+3) { grid-column: 1 / -1; }
  .callout { flex-direction: column; padding: 24px; }
  .stage-controls .keys-hint { display: none; }
  .hero-stats { gap: 24px; }
}

/* Print: certificate only */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .topbar, .backdrop, .cert-actions, .no-print, .admin-actions, .toast { display: none !important; }
  body:not(:has(.cert)) { color: #000; }
  body:not(:has(.cert)) .card { background: #fff; border-color: #ccc; color: #000; }
  main { padding: 0; max-width: none; }
  .cert { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
