/* Virtua Academy: mesma identidade do Site e do Painel (azul-marinho, vermelho e azul). */
:root {
  color-scheme: dark;
  --navy: #061a33;
  --navy-2: #0b2a4d;
  --navy-3: #0f3560;
  --blue: #1769aa;
  --blue-soft: #2d6599;
  --sky: #7fc4ff;
  --red: #e11d2e;
  --red-dark: #a70f22;
  --green: #2fbf71;
  --amber: #f2b33d;
  --white: #fff;
  --muted: #c7dcf0;
  --line: rgba(120, 183, 232, .3);
  --shadow: 0 24px 70px rgba(0, 7, 20, .38);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-width: 280px; min-height: 100vh;
  background: radial-gradient(circle at 80% 4%, rgba(23, 105, 170, .2), transparent 28rem), var(--navy);
  color: var(--white);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
code { padding: .1rem .35rem; border-radius: 5px; background: rgba(127, 196, 255, .12); color: var(--sky); font-size: .92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.kicker { display: block; color: var(--sky); font-size: .76rem; font-weight: 900; letter-spacing: .18em; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; min-height: 68px;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .6rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line); background: rgba(6, 26, 51, .94); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.brand b { font-weight: 400; color: var(--red); }
.search { flex: 1; max-width: 460px; margin-left: auto; }
.search input { width: 100%; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: var(--navy-2); color: var(--white); }
.search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.user { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.search + .user { margin-left: 0; }
.user-name { font-weight: 650; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-tag { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .75rem; }

/* ---------- botões ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.1rem;
  border: 1px solid transparent; border-radius: 10px; font-weight: 750; cursor: pointer; color: var(--white);
  transition: transform .15s ease, background .15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .65; cursor: default; }
.button.primary { background: var(--red); box-shadow: 0 12px 30px rgba(225, 29, 46, .22); }
.button.primary:hover:not(:disabled) { background: #f02539; }
.button.ghost { border-color: var(--blue-soft); background: var(--navy-2); }
.button.small { min-height: 34px; padding: .35rem .8rem; font-size: .88rem; }

/* ---------- carregando (antes de saber se há sessão) ---------- */
.booting { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: calc(100vh - 68px); color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(127, 196, 255, .25); border-top-color: var(--sky); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- login ---------- */
.auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center;
  gap: clamp(2rem, 6vw, 6rem); max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}
.auth-intro h1 { margin: .7rem 0 1rem; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.04em; }
.auth-intro p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 560px; }
.auth-intro ul { padding-left: 1.2rem; color: var(--muted); line-height: 1.9; }
.auth-card { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--navy-2); box-shadow: var(--shadow); }
.auth-card form { display: grid; gap: .9rem; }
.auth-card h2 { margin: 0; font-size: 1.6rem; }
.auth-card p { margin: 0; line-height: 1.5; }
.auth-card label { display: grid; gap: .35rem; font-weight: 650; font-size: .92rem; }
.auth-card input { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: var(--navy); color: var(--white); }
.auth-card input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
#login-code { font-size: 1.5rem; letter-spacing: .35em; text-align: center; }
#enroll { display: grid; justify-items: center; gap: .6rem; }
#enroll img { border-radius: 10px; background: #fff; padding: 6px; }
.manual-key { word-break: break-all; text-align: center; }
.form-error { margin: 1rem 0 0 !important; padding: .7rem .9rem; border-left: 4px solid var(--red); background: rgba(225, 29, 46, .12); color: #ffd4d8; }
.secure-note { margin-top: 1rem !important; color: var(--muted); font-size: .8rem; }
.secure-note.insecure { color: #ff9ca6; font-weight: 700; }

/* ---------- área logada ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 68px); }
/* Menu das trilhas: começa fechado; o botão "Menu" do topo abre e fecha. */
.sidebar {
  display: none; position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow-y: auto;
  flex-direction: column; gap: .25rem; padding: 1.2rem .9rem; border-right: 1px solid var(--line);
}
body.menu-open .app { grid-template-columns: 280px minmax(0, 1fr); }
body.menu-open .sidebar { display: flex; }
.view { margin: 0 auto; }
.menu-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .4rem .8rem; border: 1px solid var(--blue-soft); border-radius: 9px; background: var(--navy-2); color: var(--white); font-weight: 700; cursor: pointer; }
.menu-toggle:hover { background: var(--navy-3); }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
body.menu-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sidebar-close { display: none; margin-bottom: .5rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; text-align: left; cursor: pointer; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(0, 7, 20, .6); }
.sidebar a { display: grid; gap: .4rem; padding: .7rem .8rem; border-radius: 9px; color: var(--muted); font-size: .92rem; }
.sidebar a:hover { background: rgba(45, 101, 153, .3); color: var(--white); }
.sidebar a.active { background: var(--navy-2); color: var(--white); box-shadow: inset 3px 0 0 var(--red); }
.sidebar .nav-team { margin-top: .8rem; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.nav-title { font-weight: 650; }
.done-mark { color: var(--green); }
.view { max-width: 980px; width: 100%; padding: clamp(1.2rem, 4vw, 3rem); outline: none; }
.view h1 { margin: .3rem 0 .6rem; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; }
.crumbs { margin: 0; color: var(--muted); font-size: .85rem; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.meta { color: var(--muted); font-size: .85rem; }
.notice { padding: .8rem 1rem; border-left: 4px solid var(--amber); background: rgba(242, 179, 61, .1); color: #ffe7b8; line-height: 1.5; }

progress.bar { display: block; width: 100%; height: 6px; margin-top: .2rem; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: rgba(127, 196, 255, .15); color: var(--green); }
progress.bar::-webkit-progress-bar { background: rgba(127, 196, 255, .15); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; }

/* início */
.hero-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); box-shadow: var(--shadow);
}
.hero-card > div { flex: 1 1 320px; }
.hero-card p { margin: 0 0 .7rem; }
.all-done { color: var(--green); font-weight: 750; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.track-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 42, 77, .8), rgba(6, 26, 51, .75)); transition: transform .18s ease, border-color .18s ease;
}
.track-card:hover { transform: translateY(-3px); border-color: var(--blue-soft); }
.track-card.complete { border-color: rgba(47, 191, 113, .55); }
.track-number { color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.track-card h2 { margin: .2rem 0 0; font-size: 1.2rem; }
.track-card p { margin: 0; flex: 1; color: var(--muted); line-height: 1.5; font-size: .93rem; }

/* trilha */
.lesson-list { list-style: none; margin: 1.5rem 0; padding: 0; border-top: 1px solid var(--line); }
.lesson-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: 1rem .5rem; border-bottom: 1px solid var(--line); }
.lesson-list a:hover { background: rgba(45, 101, 153, .2); }
.lesson-list small { color: var(--muted); }
.check { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--blue-soft); border-radius: 50%; font-size: .8rem; font-weight: 900; }
.lesson-list .done .check { border-color: var(--green); background: var(--green); color: var(--navy); }
.quiz-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-2); }
.quiz-card.passed { border-color: rgba(47, 191, 113, .55); }
.quiz-card h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.quiz-card p { margin: 0; }

/* aula */
.lesson { line-height: 1.7; font-size: 1.04rem; }
.lesson p, .lesson li { color: #e3eefa; }
.lesson strong { color: var(--white); }
.lesson ul, .lesson ol { padding-left: 1.4rem; }
.lesson li { padding: .2rem 0; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: .45rem 0 .45rem 2.6rem !important; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .45rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy-3); border: 1px solid var(--blue-soft); color: var(--sky); font-size: .85rem; font-weight: 800; }
.callout { display: grid; gap: .25rem; margin: 1.2rem 0; padding: .9rem 1.1rem; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; background: rgba(23, 105, 170, .14); color: #e3eefa; }
.callout b { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.callout.warn { border-left-color: var(--amber); background: rgba(242, 179, 61, .1); }
.callout.warn b { color: var(--amber); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
thead th { background: var(--navy-2); color: var(--sky); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }
.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.lesson-actions #complete, .lesson-actions .result { margin-right: auto; }
.lesson-actions > :first-child { margin-right: 0; }

/* questionário */
.quiz fieldset { margin: 0 0 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-2); }
.quiz legend { padding: 0 .3rem; font-weight: 700; line-height: 1.5; }
.quiz legend span { color: var(--red); }
.option { display: flex; align-items: flex-start; gap: .6rem; margin-top: .45rem; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.option:hover { background: rgba(45, 101, 153, .25); }
.option input { margin-top: .3rem; accent-color: var(--red); }
.quiz fieldset.right { border-color: rgba(47, 191, 113, .6); }
.quiz fieldset.wrong { border-color: rgba(225, 29, 46, .6); }
.option.correct { border-color: rgba(47, 191, 113, .6); background: rgba(47, 191, 113, .1); }
.why { margin: .7rem 0 0; color: var(--muted); line-height: 1.5; }
.result { font-weight: 800; }
.result.passed { color: var(--green); }
.result.failed { color: #ff9ca6; }

/* certificado de conclusão: folha clara em paisagem (A4), mesmo no tema escuro */
.cert-sheet {
  --paper: #fffdf8; --ink: #0b2a4d; --ink-soft: #3d5773; --gold: #b8903b;
  aspect-ratio: 1.414; width: 100%; padding: clamp(.5rem, 1.6vw, 1rem); border-radius: 6px;
  background: linear-gradient(135deg, var(--ink), #16457a 50%, var(--ink)); box-shadow: var(--shadow); color: var(--ink);
}
.cert-inner {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 3.5vw, 2.6rem) clamp(1rem, 5vw, 3.5rem); text-align: center;
  background: radial-gradient(circle at 50% 38%, rgba(184, 144, 59, .08), transparent 60%), var(--paper);
  outline: 2px solid var(--gold); outline-offset: -10px;
}
.cert-head { display: flex; align-items: center; gap: .8rem; text-align: left; }
.cert-head img { width: clamp(38px, 5vw, 64px); height: auto; }
.cert-head strong { display: block; font-size: clamp(.9rem, 1.8vw, 1.25rem); letter-spacing: .06em; }
.cert-head span { display: block; color: var(--ink-soft); font-size: clamp(.6rem, 1.1vw, .8rem); }
.cert-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.1rem, 3.4vw, 2.5rem); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.cert-title::after { content: ""; display: block; width: 38%; height: 2px; margin: .5em auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cert-lead { margin: 0; color: var(--ink-soft); font-size: clamp(.7rem, 1.4vw, 1rem); }
.cert-name { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 4.4vw, 3.2rem); font-weight: 700; color: var(--ink); letter-spacing: 0; line-height: 1.1; }
.cert-text { max-width: 60ch; margin: 0; color: var(--ink-soft); font-size: clamp(.65rem, 1.35vw, 1rem); line-height: 1.55; }
.cert-text strong { color: var(--ink); }
.cert-tracks { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.cert-tracks li { padding: .15rem .55rem; border: 1px solid rgba(11, 42, 77, .25); border-radius: 99px; color: var(--ink-soft); font-size: clamp(.5rem, .95vw, .72rem); }
.cert-date { margin: 0; color: var(--ink-soft); font-size: clamp(.6rem, 1.15vw, .85rem); }
.cert-signatures { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(.6rem, 3vw, 2.5rem); width: 100%; }
.cert-signatures figure { margin: 0; min-width: 0; }
.sig { display: flex; align-items: flex-end; justify-content: center; height: clamp(34px, 6vw, 70px); border-bottom: 1.5px solid var(--ink); }
.sig-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.sig-script { font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: clamp(.9rem, 2.4vw, 1.8rem); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert-signatures figcaption { padding-top: .35rem; }
.cert-signatures figcaption b { display: block; font-size: clamp(.6rem, 1.2vw, .9rem); color: var(--ink); }
.cert-signatures figcaption span { display: block; color: var(--ink-soft); font-size: clamp(.5rem, .95vw, .72rem); }
.cert-seal {
  display: grid; place-items: center; align-content: center; gap: .1rem; width: clamp(54px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #d8b562, var(--gold) 70%); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold);
  color: var(--paper); text-align: center; font-weight: 900; line-height: 1.05;
}
.cert-seal span { font-size: clamp(.42rem, .9vw, .7rem); letter-spacing: .08em; }
.cert-seal small { font-size: clamp(.35rem, .7vw, .55rem); letter-spacing: .12em; }

/* assinatura */
.sig-pad { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-2); }
.sig-pad h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.sig-pad p { margin: 0 0 .8rem; }
.sig-canvas { display: block; max-width: 100%; border-radius: 10px; background: #fffdf8; cursor: crosshair; touch-action: none; }
.owner-signature { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.owner-signature h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.sig-preview { display: flex; align-items: flex-end; justify-content: center; max-width: 420px; height: 90px; margin: 1rem 0; padding: .5rem 1rem; border-radius: 10px; background: #fffdf8; color: #0b2a4d; }
.sig-preview .muted { color: #3d5773; font-size: .88rem; }

/* modal (sair) */
.modal { width: min(440px, calc(100vw - 2rem)); padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--navy-2); color: var(--white); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0, 7, 20, .65); }
.modal h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.modal p { margin: 0 0 .6rem; line-height: 1.5; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

/* equipe */
table.team td { text-align: center; white-space: nowrap; }
table.team th[scope="row"], table.team td:last-child { text-align: left; }
table.team small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.cell-done { color: var(--green); font-weight: 900; }
.cell-partial { color: var(--amber); }
tr.inactive { opacity: .55; }
.legend { columns: 2; color: var(--muted); font-size: .88rem; line-height: 1.8; }

/* pesquisa */
.results { list-style: none; padding: 0; display: grid; gap: .7rem; }
.results a { display: grid; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-2); }
.results a:hover { border-color: var(--blue-soft); }
.results small { color: var(--sky); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.results span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* prova: a aula sai do DOM, o menu e a pesquisa somem e o texto não pode ser selecionado nem copiado */
.how-it-works { margin: 1rem 0 0; color: var(--muted); line-height: 1.6; }
.how-it-works a { color: var(--sky); text-decoration: underline; }
.exam-call { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.2rem 1.4rem; border: 1px solid var(--red); border-radius: 14px; background: linear-gradient(135deg, rgba(225, 29, 46, .14), var(--navy-2)); }
.exam-call.passed { border-color: rgba(47, 191, 113, .55); background: var(--navy-2); }
.exam-call h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.exam-call p { margin: 0; }
.exam-warning { padding: .8rem 1rem; border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; background: rgba(242, 179, 61, .1); color: #ffe7b8; line-height: 1.5; }
.exam { -webkit-user-select: none; user-select: none; }
body.exam-mode .app { grid-template-columns: minmax(0, 1fr); }
body.exam-mode .sidebar, body.exam-mode .sidebar-backdrop, body.exam-mode #search-box, body.exam-mode .menu-toggle { display: none !important; }
.lock { font-size: 1.4rem; }

.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; max-width: calc(100vw - 2rem); padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-3); box-shadow: var(--shadow); }

/* ---------- telas pequenas ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  /* no celular o menu abre por cima do conteúdo */
  body.menu-open .app { grid-template-columns: minmax(0, 1fr); }
  body.menu-open .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; align-self: stretch; width: min(300px, 86vw); height: 100vh; height: 100dvh; max-height: none; background: var(--navy); box-shadow: var(--shadow); }
  .sidebar-close { display: block; }
  .menu-label { display: none; }
  .topbar { flex-wrap: wrap; gap: .6rem 1rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (max-width: 560px) {
  .user-name, .role-tag { display: none; }
  .legend { columns: 1; }
  .lesson-actions .button { flex: 1 1 100%; }
}

@page { size: A4 landscape; margin: 0; }
@media print {
  body { background: #fff; color: #000; }
  .topbar, .sidebar, .sidebar-backdrop, .no-print, .toast, .modal { display: none !important; }
  .app { display: block; min-height: 0; }
  .view { max-width: none; padding: 0; }
  .cert-sheet { width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; padding: 8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert-inner { padding: 12mm 22mm; }
  .cert-title { font-size: 26pt; }
  .cert-name { font-size: 34pt; }
  .cert-text { font-size: 11pt; }
  .cert-lead, .cert-date { font-size: 10pt; }
  .cert-head img { width: 60px; }
  .cert-head strong { font-size: 14pt; }
  .cert-head span, .cert-tracks li, .cert-signatures figcaption span { font-size: 8pt; }
  .sig { height: 70px; }
  .sig-script { font-size: 20pt; }
  .cert-signatures figcaption b { font-size: 10pt; }
  .cert-seal { width: 100px; }
  .cert-seal span { font-size: 8pt; }
  .cert-seal small { font-size: 6pt; }
}
