:root {
  --brand: #bb001d;
  --brand-dark: #870016;
  --brand-soft: #fff0f2;
  --ink: #121722;
  --muted: #667085;
  --line: #e7e9ee;
  --surface: #ffffff;
  --canvas: #f6f7f9;
  --success: #0b9f69;
  --warning: #a15c00;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.1);
  --sidebar: 288px;
  --topbar: 76px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(187, 0, 29, 0.25); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 18px; color: #fff; background: var(--brand); border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar); display: flex; align-items: center; gap: 18px; padding: 0 26px; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.progress-strip { position: fixed; z-index: 55; top: calc(var(--topbar) - 3px); left: 0; width: 100%; height: 3px; background: transparent; }
.progress-strip-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--brand), #f0445e); transition: width 0.45s ease; }

.brand { display: inline-flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.official-logo { display: block; width: auto; object-fit: contain; }
.topbar-logo { width: 132px; height: 46px; }
.brand-symbol { position: relative; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, #e01b3a, var(--brand-dark)); border-radius: 12px 12px 12px 4px; box-shadow: 0 8px 20px rgba(187, 0, 29, 0.25); }
.brand-symbol::after { content: ""; position: absolute; width: 28px; height: 28px; right: -10px; bottom: -10px; border: 5px solid rgba(255,255,255,.25); transform: rotate(45deg); }
.brand-symbol span { position: relative; z-index: 1; font-size: 10px; font-weight: 900; letter-spacing: -.4px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy small { color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: 1.4px; }
.brand-copy strong { font-size: 15px; font-weight: 750; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.soft-button, .icon-button, .avatar-button { border: 1px solid var(--line); background: #fff; cursor: pointer; }
.soft-button { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 11px; color: #475467; font-size: 13px; font-weight: 650; }
.soft-button:hover { color: var(--brand); border-color: #e5b8bf; background: var(--brand-soft); }
.soft-button kbd { padding: 2px 6px; color: #98a2b3; background: #f7f8fa; border: 1px solid #e6e8ec; border-radius: 5px; font-size: 10px; box-shadow: 0 1px 0 #d0d5dd; }
.avatar-button { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: #181d28; border-color: #181d28; border-radius: 50%; font-size: 12px; font-weight: 800; }
.icon-button { width: 42px; height: 42px; border-radius: 11px; font-size: 20px; }
.mobile-only { display: none; }

.sidebar { position: fixed; z-index: 40; left: 0; top: var(--topbar); bottom: 0; width: var(--sidebar); background: #fff; border-right: 1px solid var(--line); }
.sidebar-scroll { height: 100%; overflow-y: auto; padding: 22px 18px; scrollbar-width: thin; }
.sidebar-progress-card { display: flex; align-items: center; gap: 13px; padding: 15px; margin-bottom: 25px; background: #f8f9fb; border: 1px solid #eef0f3; border-radius: 15px; }
.sidebar-progress-card > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.sidebar-progress-card span { color: var(--muted); font-size: 11px; }
.sidebar-progress-card strong { font-size: 13px; }
.progress-ring { --progress: 0; position: relative; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--progress) * 1deg), #e7e9ee 0); }
.progress-ring::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.progress-ring span { position: relative; z-index: 1; color: var(--ink); font-size: 10px; font-weight: 850; }
.nav-module { margin: 0 0 23px; }
.nav-module-heading { display: flex; justify-content: space-between; padding: 0 9px 8px; color: #98a2b3; font-size: 9px; font-weight: 850; letter-spacing: 1.15px; }
.nav-module-heading small { font-size: 10px; letter-spacing: 0; }
.nav-step { position: relative; width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px; margin: 2px 0; color: #60697b; background: transparent; border: 0; border-radius: 11px; cursor: pointer; text-align: left; font-size: 12px; font-weight: 650; transition: .2s ease; }
.nav-step:hover { color: var(--ink); background: #f7f8fa; }
.nav-step.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-step.is-active::after { content: ""; position: absolute; right: -18px; width: 3px; height: 22px; background: var(--brand); border-radius: 3px 0 0 3px; }
.nav-step-marker { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; color: #8a93a3; background: #f1f2f4; border-radius: 8px; font-size: 9px; font-weight: 850; }
.nav-step.is-active .nav-step-marker { color: #fff; background: var(--brand); }
.nav-step.is-complete .nav-step-marker { color: var(--success); background: #e9f8f2; }
.nav-step.is-active.is-complete .nav-step-marker { color: #fff; background: var(--success); }
.practice-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px; margin-top: 10px; text-align: left; color: #fff; background: linear-gradient(135deg, #1b2230, #0d1118); border: 0; border-radius: 14px; cursor: pointer; box-shadow: 0 14px 35px rgba(13, 17, 24, .14); }
.practice-card > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.practice-card small { color: #aeb6c5; font-size: 8px; letter-spacing: .8px; }
.practice-card strong { font-size: 11px; }
.practice-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 9px; }
.sidebar-backdrop { display: none; }

main { min-height: 100vh; margin-left: var(--sidebar); padding-top: var(--topbar); }
.view { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.home-view { padding: 34px 0 70px; }
.hero-card { position: relative; min-height: 520px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 84% 20%, rgba(232, 42, 71, .32), transparent 34%), linear-gradient(135deg, #161b26 0%, #0c1017 62%, #1a0810 100%); border-radius: 28px; box-shadow: 0 28px 80px rgba(13, 17, 24, .18); }
.hero-card::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-copy { position: relative; z-index: 2; padding: 58px 28px 58px 60px; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.hero-copy .eyebrow { color: #ff6c83; }
.hero-copy h1 { max-width: 660px; margin: 16px 0 18px; font-size: clamp(38px, 4vw, 62px); line-height: .99; letter-spacing: -2.6px; }
.hero-copy h1 span { color: #ff5d76; }
.hero-copy > p { max-width: 560px; margin: 0; color: #bec5d1; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 19px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button { color: #fff; background: var(--brand); border: 1px solid var(--brand); box-shadow: 0 10px 25px rgba(187, 0, 29, .22); }
.primary-button:hover { transform: translateY(-1px); background: #d00626; box-shadow: 0 14px 30px rgba(187, 0, 29, .28); }
.secondary-button { color: #394150; background: #fff; border: 1px solid var(--line); }
.secondary-button:hover { transform: translateY(-1px); border-color: #cbd0d8; box-shadow: 0 8px 22px rgba(16,24,40,.08); }
.hero-card .secondary-button { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.17); }
.hero-metrics { display: flex; gap: 28px; margin-top: 38px; }
.hero-metrics div { display: flex; flex-direction: column; gap: 4px; }
.hero-metrics strong { font-size: 19px; }
.hero-metrics span { color: #8f99aa; font-size: 10px; }
.hero-visual { position: relative; align-self: stretch; min-height: 510px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 390px; height: 390px; background: rgba(187, 0, 29, .28); filter: blur(70px); border-radius: 50%; }
.device-preview { position: relative; z-index: 1; width: 210px; height: 430px; overflow: hidden; transform: rotate(2deg) translateY(24px); filter: drop-shadow(0 28px 35px rgba(0,0,0,.45)); }
.device-preview img { width: 100%; height: 100%; object-fit: contain; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 12px 14px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.17); border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.floating-card div { display: flex; flex-direction: column; gap: 2px; }
.floating-card small { color: #aab2bf; font-size: 8px; letter-spacing: 1px; }
.floating-card strong { font-size: 11px; }
.floating-card-top { top: 90px; right: 30px; }
.floating-card-bottom { bottom: 64px; left: 20px; }
.status-dot { width: 10px; height: 10px; background: #35d69a; border-radius: 50%; box-shadow: 0 0 0 6px rgba(53,214,154,.12); }
.mini-check { width: 27px; height: 27px; display: grid; place-items: center; background: var(--brand); border-radius: 8px; font-weight: 900; }

.journey-overview { padding: 70px 0 52px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 24px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -1.1px; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.journey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.journey-card { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 18px; padding: 25px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; box-shadow: 0 5px 20px rgba(16,24,40,.035); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.journey-card:hover { transform: translateY(-4px); border-color: #e6b6be; box-shadow: 0 18px 42px rgba(16,24,40,.09); }
.journey-number { width: 62px; height: 62px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 16px; font-size: 20px; font-weight: 900; }
.journey-card-copy { display: flex; flex-direction: column; min-width: 0; }
.journey-card-copy small { color: #98a2b3; font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.journey-card-copy > strong { margin-top: 9px; font-size: 18px; }
.journey-card-copy > span { min-height: 38px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.journey-card-copy i { height: 4px; overflow: hidden; margin-top: 17px; background: #eef0f3; border-radius: 999px; }
.journey-card-copy i b { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.journey-card-copy em { display: flex; justify-content: space-between; margin-top: 9px; color: #7a8494; font-size: 10px; font-style: normal; font-weight: 700; }
.journey-card-copy em span { color: var(--brand); font-size: 14px; }
.help-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.help-icon { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; background: #1c2230; border-radius: 14px; font-size: 20px; font-weight: 800; }
.help-banner h2 { margin: 5px 0 0; font-size: 17px; }

.lesson-view { padding: 31px 0 60px; }
.lesson-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.back-link { padding: 0; color: #697386; background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; }
.back-link:hover { color: var(--brand); }
.lesson-breadcrumb { margin: 5px 0 0; color: #9aa2af; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.lesson-counter { padding: 7px 10px; color: #7d8695; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 750; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 50px rgba(16,24,40,.07); }
.lesson-content { padding: 42px 48px; }
.lesson-title-row { display: flex; gap: 18px; align-items: flex-start; }
.step-number { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 17px 17px 17px 5px; box-shadow: 0 12px 25px rgba(187,0,29,.2); font-size: 21px; font-weight: 900; }
.module-chip { display: inline-block; margin-bottom: 7px; color: var(--brand); font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.lesson-content h1 { margin: 0; font-size: clamp(27px, 3vw, 40px); line-height: 1.06; letter-spacing: -1.4px; }
.lesson-lead { margin: 18px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.instruction-card { padding: 21px; background: #f8f9fb; border: 1px solid #eceef2; border-radius: 17px; }
.instruction-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.instruction-heading > div { display: flex; flex-direction: column; gap: 2px; }
.instruction-heading small { color: var(--brand); font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.instruction-heading strong { font-size: 13px; }
.instruction-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--brand); background: #fff; border: 1px solid #f0d6da; border-radius: 10px; font-size: 17px; }
.instruction-card ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.instruction-card li { counter-increment: steps; display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; color: #3d4553; border-top: 1px solid #e8eaee; font-size: 12px; line-height: 1.55; }
.instruction-card li::before { content: counter(steps); width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; color: var(--brand); background: #fff; border: 1px solid #ead3d7; border-radius: 50%; font-size: 9px; font-weight: 850; }
.attention-card { display: flex; gap: 12px; padding: 15px 17px; margin-top: 15px; color: #704711; background: #fff8eb; border: 1px solid #f3deba; border-radius: 14px; }
.attention-card > span { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; color: #fff; background: #c47a12; border-radius: 50%; font-size: 11px; font-weight: 900; }
.attention-card div { display: flex; flex-direction: column; gap: 3px; }
.attention-card strong { font-size: 11px; }
.attention-card p { margin: 0; color: #8b642e; font-size: 10px; line-height: 1.5; }
.completion-check { display: flex; gap: 11px; align-items: center; padding: 15px 17px; margin-top: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.completion-check input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; color: transparent; background: #f3f4f6; border: 1px solid #d9dde4; border-radius: 8px; font-size: 12px; }
.completion-check input:checked + .custom-check { color: #fff; background: var(--success); border-color: var(--success); }
.completion-check > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.completion-check strong { font-size: 11px; }
.completion-check small { color: #8a93a3; font-size: 9px; }

.device-stage { min-height: 700px; display: flex; flex-direction: column; padding: 20px 24px 23px; background: radial-gradient(circle at 50% 42%, rgba(187,0,29,.15), transparent 36%), linear-gradient(160deg, #181d27, #0a0e15 72%); }
.stage-header { display: flex; align-items: center; justify-content: space-between; color: #7f8999; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.stage-header > div { display: flex; align-items: center; gap: 12px; color: #e5e9ef; }
.stage-logo { width: 106px; height: 37px; object-fit: contain; }
.live-dot { width: 7px; height: 7px; background: #ff4763; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,71,99,.12); }
.machine-frame { position: relative; flex: 1; display: grid; place-items: center; min-height: 570px; }
.machine-halo { position: absolute; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); }
.machine-image-wrap { position: relative; z-index: 1; height: 565px; filter: drop-shadow(0 30px 30px rgba(0,0,0,.48)); }
.machine-image-wrap > img { display: block; width: auto; height: 100%; }
#hotspotLayer { position: absolute; inset: 0; }
.hotspot { position: absolute; left: var(--x); top: var(--y); width: 28px; height: 28px; display: grid; place-items: center; padding: 0; transform: translate(-50%, -50%); color: #fff; background: var(--brand); border: 3px solid #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 12px rgba(187,0,29,.35); animation: hotspotPulse 2.2s var(--delay) infinite; }
.hotspot::before { content: ""; position: absolute; inset: -9px; border: 2px solid rgba(255, 72, 101, .55); border-radius: 50%; }
.hotspot span { font-size: 9px; font-weight: 900; }
.hotspot:hover, .hotspot.is-active { transform: translate(-50%, -50%) scale(1.14); background: #ee1738; animation: none; }
@keyframes hotspotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 33, 67, .5); } 50% { box-shadow: 0 0 0 12px rgba(245, 33, 67, 0); } }
.stage-caption { min-height: 59px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: #dce1e9; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.stage-caption > span { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 9px; font-size: 11px; font-weight: 900; }
.stage-caption p { margin: 0; font-size: 10px; line-height: 1.5; }
.lesson-controls { display: grid; grid-template-columns: auto minmax(140px, 240px) auto; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 6px 0; }
.lesson-controls button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.control-progress { display: flex; align-items: center; gap: 9px; color: #8a93a3; font-size: 9px; font-weight: 800; }
.control-progress > div { width: 100%; height: 4px; overflow: hidden; background: #dddfe4; border-radius: 99px; }
.control-progress i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .3s ease; }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 20px; background: rgba(8, 11, 16, .66); border: 0; backdrop-filter: blur(9px); }
.modal::backdrop { background: transparent; }
.modal[open] { display: grid; place-items: center; }
.modal-card { position: relative; width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; box-shadow: var(--shadow); }
.close-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: #687184; background: #f5f6f8; border: 0; border-radius: 9px; cursor: pointer; font-size: 20px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 27px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.6px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 26px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.command-card { width: min(660px, 100%); align-self: start; margin-top: 9vh; overflow: hidden; }
.command-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.command-input-wrap > span { color: #8d96a5; font-size: 23px; }
.command-input-wrap input { flex: 1; min-width: 0; padding: 8px 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 15px; }
.search-results { max-height: 390px; overflow-y: auto; padding: 8px; }
.search-result { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px; text-align: left; background: transparent; border: 0; border-radius: 11px; cursor: pointer; }
.search-result.is-selected, .search-result:hover { background: #f5f6f8; }
.search-result > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 9px; font-size: 10px; font-weight: 850; }
.search-result div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.search-result strong { font-size: 12px; }
.search-result small { color: #929aa8; font-size: 9px; }
.search-result em { color: #a2a9b4; font-style: normal; }
.command-hint { margin: 0; padding: 10px 18px; color: #a0a7b2; background: #fafbfc; border-top: 1px solid var(--line); font-size: 9px; }
.empty-search { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px; color: #818a9a; font-size: 11px; }
.wide-modal { width: min(1040px, 100%); }
.quick-guide-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 21px 25px; }
.quick-step { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; background: #f8f9fb; border: 1px solid #eceef2; border-radius: 14px; cursor: pointer; }
.quick-step:hover { border-color: #e7adb6; background: var(--brand-soft); }
.quick-step > span { align-self: flex-start; color: var(--brand); font-size: 9px; font-weight: 900; }
.quick-step img { height: 125px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(16,24,40,.13)); }
.quick-step strong { min-height: 27px; font-size: 10px; text-align: center; line-height: 1.35; }
.practice-modal-card, .profile-card, .completion-card { padding: 36px; text-align: center; }
.practice-close, .profile-close { position: absolute; top: 15px; right: 15px; }
.practice-hero-icon, .completion-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 20px; color: #fff; background: linear-gradient(145deg, #de1634, var(--brand-dark)); border-radius: 22px 22px 22px 7px; box-shadow: 0 14px 28px rgba(187,0,29,.2); font-size: 29px; font-weight: 900; }
.practice-modal-card h2, .profile-card h2, .completion-card h2 { margin: 8px 0 10px; font-size: 29px; letter-spacing: -.9px; }
.practice-modal-card p, .profile-card p, .completion-card p { margin: 0 auto 23px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.full-button { width: 100%; }
.quiz-topline { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #7b8494; font-size: 10px; font-weight: 800; }
.quiz-topline > div { flex: 1; height: 5px; overflow: hidden; background: #edf0f2; border-radius: 99px; }
.quiz-topline i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
#practiceQuiz { text-align: left; }
#practiceQuiz h2 { margin-bottom: 22px; }
.quiz-options { display: grid; gap: 9px; margin-bottom: 15px; }
.quiz-options button { display: flex; align-items: center; gap: 12px; padding: 13px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 650; }
.quiz-options button:hover:not(:disabled) { border-color: #dba0aa; background: var(--brand-soft); }
.quiz-options button > span { width: 28px; height: 28px; display: grid; place-items: center; color: #697386; background: #f2f3f5; border-radius: 8px; font-size: 10px; font-weight: 850; }
.quiz-options button.is-correct { color: #06744e; background: #ecfbf5; border-color: #8ed8be; }
.quiz-options button.is-correct > span { color: #fff; background: var(--success); }
.quiz-options button.is-wrong { color: #a21229; background: #fff1f3; border-color: #f1a8b4; }
.quiz-options button.is-wrong > span { color: #fff; background: var(--brand); }
.quiz-feedback { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; margin-bottom: 13px; border-radius: 11px; }
.quiz-feedback strong { font-size: 11px; }
.quiz-feedback span { font-size: 10px; line-height: 1.45; }
.quiz-feedback.is-correct { color: #06744e; background: #ecfbf5; }
.quiz-feedback.is-wrong { color: #9b1c2f; background: #fff1f3; }
.result-score { width: 92px; height: 92px; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; background: #2f3745; border-radius: 50%; box-shadow: 0 0 0 9px #eef0f3; font-size: 24px; font-weight: 900; }
.result-score.is-pass { background: var(--success); box-shadow: 0 0 0 9px #e7f8f1; }
.completion-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.faq-modal-card { width: min(690px, 100%); }
.faq-list { padding: 10px 25px 25px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 2px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: -4px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.profile-card { text-align: left; }
.profile-card label { display: flex; flex-direction: column; gap: 7px; margin: 20px 0 14px; color: #555e6d; font-size: 10px; font-weight: 800; }
.profile-card input { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #dfe2e7; border-radius: 11px; font-size: 13px; }
.completion-card { overflow: hidden; }
.celebration span { position: absolute; color: var(--brand); opacity: .35; font-size: 13px; }
.celebration span:nth-child(1) { top: 16%; left: 10%; transform: rotate(22deg); }
.celebration span:nth-child(2) { top: 25%; right: 12%; }
.celebration span:nth-child(3) { bottom: 18%; left: 17%; transform: rotate(-17deg); }
.celebration span:nth-child(4) { right: 18%; bottom: 16%; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; padding: 12px 17px; color: #fff; background: #171c26; border-radius: 11px; box-shadow: 0 14px 35px rgba(0,0,0,.22); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; font-size: 11px; font-weight: 750; transition: .3s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .88fr) minmax(460px, 1.12fr); background: #f7f8fa; }
.auth-screen[hidden] { display: none; }
.auth-panel { width: min(470px, calc(100% - 56px)); margin: auto; padding: 48px 0; }
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 64px; }
.auth-official-logo { width: 164px; height: 57px; }
.auth-brand > div { display: flex; flex-direction: column; gap: 2px; }
.auth-brand small { color: #8992a1; font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.auth-brand strong { color: var(--ink); font-size: 17px; }
.auth-panel h1 { max-width: 430px; margin: 13px 0 13px; color: var(--ink); font-size: clamp(36px, 4vw, 54px); line-height: 1.02; letter-spacing: -2.2px; }
.auth-panel > p { max-width: 420px; margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; background: #e9ebef; border-radius: 12px; }
.auth-tabs button { min-height: 42px; color: #737d8d; background: transparent; border: 0; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 800; }
.auth-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.08); }
.auth-form, .register-fields { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 7px; color: #4b5565; font-size: 10px; font-weight: 800; }
.auth-form input { width: 100%; padding: 14px 15px; color: var(--ink); background: #fff; border: 1px solid #dce0e6; border-radius: 11px; outline: 0; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.auth-form input:focus { border-color: #d25a6d; box-shadow: 0 0 0 4px rgba(187,0,29,.08); }
.auth-form .primary-button { margin-top: 2px; }
.auth-form .primary-button:disabled { opacity: .65; cursor: wait; }
.auth-message { min-height: 18px; margin: 0; color: #087354; font-size: 10px; line-height: 1.5; }
.auth-message.is-error { color: #ac1830; }
.auth-link { justify-self: center; padding: 6px; color: #737d8d; background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 750; }
.auth-link:hover { color: var(--brand); }
.danger-link { margin-top: 9px; color: #a61c32; }
.auth-showcase { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(230,30,61,.32), transparent 29%), linear-gradient(145deg, #202633, #090d14 70%, #260710); }
.auth-showcase::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; }
.auth-device { position: relative; z-index: 2; height: min(660px, 72vh); filter: drop-shadow(0 38px 40px rgba(0,0,0,.58)); transform: rotate(2deg); }
.auth-device img { width: auto; height: 100%; }
.auth-proof { position: absolute; z-index: 3; right: 8%; bottom: 10%; display: flex; align-items: center; gap: 13px; padding: 16px 19px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; backdrop-filter: blur(18px); box-shadow: 0 22px 45px rgba(0,0,0,.25); }
.auth-proof > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--brand); border-radius: 10px; font-weight: 900; }
.auth-proof div { display: flex; flex-direction: column; gap: 3px; }
.auth-proof small { color: #aeb7c5; font-size: 8px; letter-spacing: 1px; }
.auth-proof strong { font-size: 12px; }
.auth-orbit { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.auth-orbit-one { width: 540px; height: 540px; }
.auth-orbit-two { width: 760px; height: 760px; }

/* Acabamento premium Parcele Na Hora */
:root { --topbar: 82px; --canvas: #f3f5f8; --shadow: 0 24px 70px rgba(24, 29, 40, .13); }
.topbar {
  padding-inline: 28px;
  color: #fff;
  background: linear-gradient(105deg, #970017 0%, var(--brand) 58%, #d20a2b 100%);
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(112, 0, 18, .18);
  backdrop-filter: none;
}
.topbar-logo { width: 145px; height: 51px; }
.brand-copy small { color: rgba(255,255,255,.7); }
.brand-copy strong { color: #fff; }
.topbar .soft-button, .topbar .icon-button {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.24);
}
.topbar .soft-button:hover, .topbar .icon-button:hover { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.topbar .soft-button kbd { color: rgba(255,255,255,.7); background: rgba(0,0,0,.12); border-color: rgba(255,255,255,.18); box-shadow: none; }
.topbar .avatar-button { color: var(--brand); background: #fff; border-color: #fff; box-shadow: 0 7px 18px rgba(75,0,12,.18); }
.progress-strip { background: rgba(255,255,255,.18); }
.progress-strip-fill { background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.65); }
.sidebar { border-right: 0; box-shadow: 10px 0 35px rgba(31,39,54,.06); }
.sidebar-scroll { padding: 26px 18px; }
.nav-step { min-height: 46px; font-size: 13px; }
.nav-step-marker { width: 29px; height: 29px; flex-basis: 29px; }
.sidebar-progress-card { background: linear-gradient(145deg, #fff5f6, #fff); border-color: #f3d9dd; }

.auth-screen { background: #f1f3f6; }
.auth-panel {
  width: min(520px, calc(100% - 54px));
  margin-block: 32px;
  padding: 48px;
  background: #fff;
  border: 1px solid rgba(19,26,40,.06);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(25,32,45,.12);
}
.auth-brand { margin-bottom: 46px; }
.auth-official-logo { width: 178px; height: 62px; }
.auth-panel h1 { font-size: clamp(39px, 4vw, 56px); }
.auth-panel > p { font-size: 14px; }
.auth-tabs { background: #f0f2f5; }
.auth-form label { font-size: 12px; }
.auth-form input { min-height: 50px; font-size: 14px; }
.auth-showcase { background: radial-gradient(circle at 45% 42%, rgba(255,255,255,.17), transparent 30%), linear-gradient(145deg, #850014, var(--brand) 58%, #290108); }
.auth-showcase::before { opacity: .22; }
.auth-device {
  height: min(700px, 78vh);
  padding: 22px 34px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 46px;
  box-shadow: 0 38px 85px rgba(62,0,10,.35);
  filter: none;
  transform: none;
}
.auth-device img { width: auto; height: 100%; object-fit: contain; }
.auth-proof { right: 7%; bottom: 8%; background: rgba(17,19,25,.84); border-color: rgba(255,255,255,.2); }
.auth-orbit { border-color: rgba(255,255,255,.16); }

.hero-card { background: radial-gradient(circle at 82% 26%, rgba(255,255,255,.15), transparent 30%), linear-gradient(135deg, #750012 0%, var(--brand) 60%, #1e0308 100%); }
.hero-copy h1 span { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 8px; }
.hero-copy > p { color: rgba(255,255,255,.72); }
.hero-metrics span { color: rgba(255,255,255,.6); }
.device-preview { width: 245px; height: 445px; padding: 13px 18px; background: #fff; border-radius: 28px; transform: rotate(1.5deg) translateY(18px); box-shadow: 0 32px 70px rgba(56,0,10,.36); filter: none; }
.device-preview img { object-fit: contain; }
.visual-glow { background: rgba(255,255,255,.18); }
.journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journey-card { min-height: 210px; grid-template-columns: 58px 1fr; }
.journey-number { width: 54px; height: 54px; }

.lesson-layout { border: 0; box-shadow: 0 26px 75px rgba(24,31,45,.12); }
.lesson-content { padding: 46px 50px; }
.lesson-lead { font-size: 15px; }
.instruction-card li { font-size: 14px; }
.attention-card p { font-size: 12px; }
.completion-check strong { font-size: 13px; }
.completion-check small { font-size: 11px; }
.device-stage {
  min-height: 720px;
  padding: 0 24px 23px;
  background: #fff;
  border-left: 1px solid #eceef2;
}
.stage-header {
  min-height: 66px;
  margin: 0 -24px 12px;
  padding: 12px 22px;
  color: rgba(255,255,255,.72);
  background: linear-gradient(100deg, #920016, var(--brand));
}
.stage-header > div { color: #fff; }
.stage-logo { width: 112px; height: 39px; }
.machine-frame { min-height: 570px; background: #fff; }
.machine-halo { width: 370px; height: 370px; border-color: rgba(187,0,29,.08); box-shadow: 0 0 0 75px rgba(187,0,29,.018), 0 0 0 145px rgba(187,0,29,.012); }
.machine-image-wrap { height: 575px; filter: none; }
.stage-caption { color: #fff; background: linear-gradient(135deg, #171c27, #0d1118); border-color: #252c39; }
.stage-caption p { font-size: 12px; }

@media (max-width: 1180px) {
  :root { --sidebar: 250px; }
  .view { width: min(1100px, calc(100% - 42px)); }
  .hero-copy { padding-left: 42px; }
  .hero-copy h1 { font-size: 46px; }
  .floating-card-top { right: 8px; }
  .lesson-content { padding: 36px 30px; }
  .lesson-layout { grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); }
}

@media (max-width: 960px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  :root { --sidebar: 288px; }
  .mobile-only { display: grid; }
  .sidebar { z-index: 70; top: 0; transform: translateX(-105%); box-shadow: 20px 0 45px rgba(16,24,40,.18); transition: transform .25s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 65; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(8,11,16,.55); border: 0; transition: .25s ease; }
  .sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; }
  main { margin-left: 0; }
  .hero-card { grid-template-columns: 1fr 360px; }
  .hero-copy { padding: 44px 20px 44px 40px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-visual { min-height: 480px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .device-stage { min-height: 680px; }
}

@media (max-width: 760px) {
  .auth-panel { width: min(100% - 28px, 470px); margin: 14px auto; padding: 30px 24px 38px; border-radius: 22px; }
  .auth-brand { margin-bottom: 42px; }
  .auth-panel h1 { font-size: 39px; }
  :root { --topbar: 68px; }
  .topbar { gap: 10px; padding: 0 13px; }
  .topbar-logo { width: 98px; height: 34px; }
  .auth-official-logo { width: 145px; height: 50px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 8px; }
  .desktop-label { display: none !important; }
  .soft-button { width: 42px; padding: 0; justify-content: center; font-size: 20px; }
  .avatar-button { width: 38px; height: 38px; }
  .view { width: min(100% - 26px, 680px); }
  .home-view { padding-top: 18px; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .hero-copy { padding: 38px 27px 12px; text-align: center; }
  .hero-copy h1 { font-size: clamp(37px, 11vw, 50px); letter-spacing: -2px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { justify-content: center; }
  .hero-actions button { width: 100%; }
  .hero-metrics { justify-content: center; gap: 20px; }
  .hero-visual { min-height: 420px; }
  .device-preview { height: 370px; }
  .floating-card-top { top: 68px; right: 10px; }
  .floating-card-bottom { bottom: 36px; left: 10px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .journey-overview { padding-top: 48px; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { grid-template-columns: 54px 1fr; padding: 18px; }
  .journey-number { width: 52px; height: 52px; }
  .help-banner { grid-template-columns: auto 1fr; padding: 20px; }
  .help-banner button { grid-column: 1 / -1; width: 100%; }
  .lesson-view { padding-top: 19px; }
  .lesson-layout { border-radius: 20px; }
  .lesson-content { padding: 27px 21px; }
  .step-number { width: 50px; height: 50px; flex-basis: 50px; font-size: 18px; }
  .lesson-content h1 { font-size: 30px; }
  .device-stage { min-height: 620px; padding: 0 14px 18px; }
  .stage-header { min-height: 60px; margin: 0 -14px 10px; padding: 10px 14px; }
  .stage-logo { width: 92px; height: 32px; }
  .machine-frame { min-height: 505px; }
  .machine-image-wrap { height: 495px; max-width: 100%; }
  .stage-header > span { display: none; }
  .lesson-controls { grid-template-columns: 1fr 1fr; gap: 9px; }
  .lesson-controls button { min-width: 0; padding-inline: 11px; font-size: 11px; }
  .control-progress { grid-column: 1 / -1; grid-row: 1; }
  .quick-guide-grid { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); border-radius: 18px; }
  .modal-footer { align-items: stretch; flex-direction: column; }
  .practice-modal-card, .profile-card, .completion-card { padding: 32px 22px; }
  .completion-actions { flex-direction: column; }
  .command-card { margin-top: 5vh; }
}

@media print {
  body * { visibility: hidden; }
  #quickGuideDialog, #quickGuideDialog * { visibility: visible; }
  #quickGuideDialog { position: absolute; inset: 0; display: block; padding: 0; background: #fff; }
  #quickGuideDialog .modal-card { width: 100%; max-height: none; box-shadow: none; border: 0; }
  #quickGuideDialog .close-button, #quickGuideDialog .modal-footer { display: none; }
  .quick-guide-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
