/* ==========================================================================
   Latino Bookkeepers Financial Advisor — sistema visual compartido
   Capa sobre Bootstrap 5.3. Cada área añade su propio archivo (site.css, student.css, admin.css).
   Paleta: tinta verde profundo, verde azulado, caléndula (acento) y papel de libro mayor.
   ========================================================================== */

:root {
  --lb-ink: #0d2b2b;
  --lb-ink-2: #123c3a;
  --lb-teal: #14706a;
  --lb-teal-700: #0f5c57;
  --lb-teal-100: #dcefeb;
  --lb-marigold: #e7a52b;
  --lb-marigold-700: #b87d0c;
  --lb-marigold-100: #fbefd2;
  --lb-paper: #f6f7f4;
  --lb-white: #ffffff;
  --lb-text: #17302f;
  --lb-muted: #566968;
  --lb-rule: #d8dfdb;
  --lb-danger: #b3261e;
  --lb-danger-100: #fbe4e2;
  --lb-ok: #1b7a46;

  --lb-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --lb-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --lb-radius: 14px;
  --lb-radius-sm: 8px;
  --lb-shadow: 0 1px 2px rgba(13, 43, 43, .06), 0 8px 24px -12px rgba(13, 43, 43, .18);

  --bs-body-font-family: var(--lb-sans);
  --bs-body-color: var(--lb-text);
  --bs-body-bg: var(--lb-paper);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-primary: var(--lb-teal-700);
  --bs-primary-rgb: 15, 92, 87;
  --bs-link-color: var(--lb-teal-700);
  --bs-link-color-rgb: 15, 92, 87;
  --bs-link-hover-color: var(--lb-ink);
  --bs-link-hover-color-rgb: 13, 43, 43;
  --bs-border-color: var(--lb-rule);
  --bs-border-radius: var(--lb-radius-sm);
  --bs-heading-color: var(--lb-ink);
  --bs-secondary-color: var(--lb-muted);
  --bs-focus-ring-color: rgba(20, 112, 106, .35);
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
.num, .tabular { font-variant-numeric: tabular-nums lining-nums; }

h1, h2, h3, h4, .display-serif {
  font-family: var(--lb-serif);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
  color: var(--lb-ink);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-family: var(--lb-sans); font-weight: 650; color: var(--lb-ink); }
p { max-width: 68ch; }
.lead { font-size: 1.125rem; color: var(--lb-muted); }
.text-muted, .text-secondary { color: var(--lb-muted) !important; }

a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--lb-marigold); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--lb-ink); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Botones ---------- */
.btn { --bs-btn-border-radius: var(--lb-radius-sm); font-weight: 600; letter-spacing: .005em; padding: .6rem 1.15rem; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .75rem; font-size: .875rem; }
.btn-primary { --bs-btn-bg: var(--lb-teal-700); --bs-btn-border-color: var(--lb-teal-700); --bs-btn-hover-bg: var(--lb-ink); --bs-btn-hover-border-color: var(--lb-ink); --bs-btn-active-bg: var(--lb-ink); --bs-btn-active-border-color: var(--lb-ink); --bs-btn-disabled-bg: var(--lb-teal-700); --bs-btn-disabled-border-color: var(--lb-teal-700); --bs-btn-focus-shadow-rgb: 20, 112, 106; }
.btn-accent { --bs-btn-color: var(--lb-ink); --bs-btn-bg: var(--lb-marigold); --bs-btn-border-color: var(--lb-marigold); --bs-btn-hover-color: var(--lb-ink); --bs-btn-hover-bg: #f0b94d; --bs-btn-hover-border-color: #f0b94d; --bs-btn-active-color: var(--lb-ink); --bs-btn-active-bg: #f0b94d; --bs-btn-active-border-color: #f0b94d; --bs-btn-focus-shadow-rgb: 231, 165, 43; }
.btn-outline-primary { --bs-btn-color: var(--lb-teal-700); --bs-btn-border-color: var(--lb-teal-700); --bs-btn-hover-bg: var(--lb-teal-700); --bs-btn-hover-border-color: var(--lb-teal-700); --bs-btn-active-bg: var(--lb-teal-700); }
.btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .55); }
.btn .icon { vertical-align: -.22em; margin-right: .35rem; }
.btn-icon-end .icon { margin: 0 0 0 .35rem; }

/* ---------- Formularios ---------- */
.form-label { font-weight: 600; font-size: .9rem; color: var(--lb-ink); margin-bottom: .3rem; }
.form-control, .form-select { border-color: #bcc8c3; padding: .65rem .85rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--lb-teal); box-shadow: 0 0 0 .25rem rgba(20, 112, 106, .18); }
.form-text { color: var(--lb-muted); }
.form-check-input:checked { background-color: var(--lb-teal-700); border-color: var(--lb-teal-700); }
.invalid-feedback { font-size: .875rem; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* trampa anti-bots */
.input-reveal { position: relative; }
.input-reveal .form-control { padding-right: 3rem; }
.input-reveal button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--lb-muted); padding: .45rem; border-radius: 6px; line-height: 0; }
.input-reveal button:hover { color: var(--lb-ink); background: var(--lb-paper); }
.code-input { font-family: var(--lb-sans); font-variant-numeric: tabular-nums; font-size: 2rem; letter-spacing: .55em; text-align: center; padding: .6rem .5rem .6rem 1.1rem; max-width: 18rem; }

/* ---------- Iconos y chips ---------- */
.icon { flex: none; vertical-align: middle; }
.icon-chip { width: 3rem; height: 3rem; border-radius: 12px; display: inline-grid; place-items: center; background: var(--lb-teal-100); color: var(--lb-teal-700); }
.icon-chip.is-gold { background: var(--lb-marigold-100); color: var(--lb-marigold-700); }
.icon-chip.is-ink { background: var(--lb-ink); color: var(--lb-marigold); }

.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; background: var(--lb-teal-100); color: var(--lb-teal-700); }
.badge-soft { display: inline-block; font-size: .75rem; font-weight: 650; padding: .22rem .6rem; border-radius: 999px; background: #e8ecea; color: var(--lb-ink); }
.badge-soft-ok { background: #d9f0e3; color: #0f5a31; }
.badge-soft-warn { background: var(--lb-marigold-100); color: #7a5200; }
.badge-soft-bad { background: var(--lb-danger-100); color: #86170f; }
.badge-soft-info { background: var(--lb-teal-100); color: var(--lb-teal-700); }

/* ---------- Progreso ---------- */
.progress-lb { height: .6rem; background: #dfe6e2; border-radius: 999px; overflow: hidden; }
.progress-lb > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lb-teal), #2aa397); transition: width .6s ease; }
.progress-lb.is-done > span { background: var(--lb-ok); }
.progress-lb-lg { height: .85rem; }

/* ---------- Barra de navegación pública ---------- */
.site-nav { background: rgba(246, 247, 244, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--lb-rule); position: sticky; top: 0; z-index: 1030; }
.site-nav .navbar { padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--lb-ink); }
.brand:hover { color: var(--lb-ink); }
.brand-mark { flex: none; height: 38px; width: auto; }
.site-footer .brand-mark, .app-sidebar .brand-mark { background: #fff; border-radius: 8px; padding: 4px 5px; box-sizing: content-box; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--lb-serif); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: none; color: var(--lb-muted); }
.site-nav .nav-link { color: var(--lb-text); font-weight: 550; padding: .5rem .85rem !important; border-radius: 8px; }
.site-nav .nav-link:hover { color: var(--lb-teal-700); background: rgba(20, 112, 106, .08); }
.site-nav .nav-link.active { color: var(--lb-teal-700); box-shadow: inset 0 -2px 0 var(--lb-marigold); border-radius: 0; }
.lang-switch { display: inline-flex; border: 1px solid var(--lb-rule); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch a { padding: .25rem .7rem; font-size: .8rem; font-weight: 650; color: var(--lb-muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--lb-ink); color: #fff; }
.lang-switch a:not([aria-current="true"]):hover { color: var(--lb-ink); background: var(--lb-teal-100); }

/* ---------- Secciones públicas ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-white { background: #fff; border-block: 1px solid var(--lb-rule); }
.section-ink { background: var(--lb-ink); color: #dbe7e4; }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-ink .lead, .section-ink .text-muted { color: #aac2bd !important; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--lb-muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 650; color: var(--lb-teal-700); margin-bottom: .6rem; }
.section-ink .eyebrow { color: var(--lb-marigold); }

/* Hoja de libro mayor: motivo visual de la marca (líneas horizontales con margen) */
.ledger-lines { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(20, 112, 106, .13) 31px 32px); }

/* ---------- Tarjetas ---------- */
.panel { background: #fff; border: 1px solid var(--lb-rule); border-radius: var(--lb-radius); box-shadow: var(--lb-shadow); }
.panel-body { padding: 1.5rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--lb-rule); }
.panel-head h2, .panel-head h3 { font-size: 1.1rem; margin: 0; font-family: var(--lb-sans); font-weight: 650; letter-spacing: 0; }
.panel-flat { box-shadow: none; }

.service-card { height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--lb-rule); border-radius: var(--lb-radius); transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--lb-teal); box-shadow: var(--lb-shadow); }
.service-card h3 { margin: 1.1rem 0 .5rem; }
.service-card p { color: var(--lb-muted); margin-bottom: 0; }

.course-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--lb-rule); border-radius: var(--lb-radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.course-card:hover { box-shadow: var(--lb-shadow); border-color: #b7c6c0; }
.course-thumb { aspect-ratio: 16 / 9; background: var(--lb-ink) center / cover no-repeat; position: relative; display: grid; place-items: center; color: var(--lb-marigold); overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-thumb.is-placeholder { background: linear-gradient(135deg, var(--lb-ink) 0%, var(--lb-ink-2) 55%, var(--lb-teal-700) 100%); }
.course-thumb.is-placeholder::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(255, 255, 255, .07) 23px 24px); }
.course-thumb.is-placeholder .icon { position: relative; z-index: 1; }
.course-card-body { padding: 1.35rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.course-card-body h3 { font-size: 1.25rem; margin: 0; }
.course-card-body p { color: var(--lb-muted); margin: 0; font-size: .95rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--lb-muted); }
.course-meta .icon { margin-right: .3rem; color: var(--lb-teal); }
.course-card-foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price-tag { font-family: var(--lb-serif); font-weight: 700; font-size: 1.15rem; color: var(--lb-ink); }
.price-tag.is-tba { font-family: var(--lb-sans); font-size: .85rem; font-weight: 600; color: var(--lb-muted); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--lb-ink); color: #b8cdc8; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #d6e5e1; text-decoration: none; }
.site-footer a:hover { color: var(--lb-marigold); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-sub { color: #9ab5af; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .875rem; color: #9ab5af; }

/* ---------- Autenticación ---------- */
.auth-wrap { min-height: calc(100vh - 8rem); display: grid; place-items: center; padding: 3rem 1rem; background: radial-gradient(60rem 30rem at 85% -10%, rgba(231, 165, 43, .12), transparent 60%), var(--lb-paper); }
.auth-card { width: 100%; max-width: 32rem; background: #fff; border: 1px solid var(--lb-rule); border-radius: 18px; box-shadow: var(--lb-shadow); padding: clamp(1.5rem, 4vw, 2.5rem); }
.auth-card.is-wide { max-width: 44rem; }
.auth-card h1 { font-size: clamp(1.6rem, 3.4vw, 2rem); margin-bottom: .35rem; }
.auth-card .sub { color: var(--lb-muted); margin-bottom: 1.5rem; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; }
.steps li { flex: 1; padding-top: .55rem; border-top: 3px solid var(--lb-rule); font-size: .85rem; font-weight: 600; color: var(--lb-muted); }
.steps li.is-done { border-color: var(--lb-ok); color: var(--lb-ok); }
.steps li.is-current { border-color: var(--lb-marigold); color: var(--lb-ink); }

/* ---------- Estructura del panel (estudiante y administrador) ---------- */
.app-shell { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 100vh; background: var(--lb-paper); }
.app-sidebar { background: var(--lb-ink); color: #c7dbd6; padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.app-sidebar .brand, .app-sidebar .brand:hover { color: #fff; padding: 0 .5rem; }
.app-sidebar .brand-sub { color: #8fb0a9; }
.app-nav { display: grid; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.app-nav a, .app-nav button { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .75rem; border: 0; background: transparent; border-radius: 8px; color: #c7dbd6; text-decoration: none; font-weight: 550; font-size: .95rem; text-align: left; }
.app-nav a:hover, .app-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.app-nav a.active { background: rgba(231, 165, 43, .16); color: #fff; box-shadow: inset 3px 0 0 var(--lb-marigold); }
.app-nav .icon { opacity: .85; }
.app-nav-group { font-size: .75rem; font-weight: 650; color: #7fa39b; padding: 0 .75rem; margin: .75rem 0 .15rem; }
.app-sidebar-foot { margin-top: auto; font-size: .85rem; color: #8fb0a9; padding: 0 .5rem; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 3vw, 2.25rem); background: rgba(246, 247, 244, .92); border-bottom: 1px solid var(--lb-rule); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.app-topbar .who { font-size: .9rem; color: var(--lb-muted); }
.app-content { padding: clamp(1.25rem, 3vw, 2.25rem); max-width: 78rem; width: 100%; }
.app-content > h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .35rem; }
.page-sub { color: var(--lb-muted); margin-bottom: 1.75rem; }
.app-toggle { display: none; }

.stat-tile { padding: 1.25rem 1.35rem; background: #fff; border: 1px solid var(--lb-rule); border-radius: var(--lb-radius); height: 100%; }
.stat-tile .stat-label { font-size: .85rem; color: var(--lb-muted); font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.stat-tile .stat-label .icon { color: var(--lb-teal); }
.stat-tile .stat-value { font-family: var(--lb-serif); font-size: 2.1rem; font-weight: 650; color: var(--lb-ink); line-height: 1.15; margin-top: .35rem; font-variant-numeric: tabular-nums lining-nums; }
.stat-tile .stat-note { font-size: .8rem; color: var(--lb-muted); }

.table-clean { --bs-table-bg: transparent; margin: 0; }
.table-clean th { font-size: .8rem; font-weight: 650; color: var(--lb-muted); border-bottom: 1px solid var(--lb-rule); padding: .75rem 1rem; white-space: nowrap; background: #fbfcfb; }
.table-clean td { padding: .85rem 1rem; vertical-align: middle; border-color: #eef1ef; }
.table-clean tbody tr:hover { background: #fafcfb; }
.table-responsive-lb { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; color: var(--lb-muted); }
.empty-state .icon { color: var(--lb-teal); margin-bottom: .75rem; }
.empty-state h3 { font-family: var(--lb-sans); font-size: 1.05rem; color: var(--lb-ink); margin-bottom: .35rem; }

/* ---------- Reproductor de lecciones ---------- */
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--lb-radius); overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.outline { position: sticky; top: 5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; }
.outline-module { padding: .85rem 1.1rem .4rem; font-weight: 650; font-size: .9rem; color: var(--lb-ink); border-top: 1px solid var(--lb-rule); background: #fbfcfb; }
.outline-module:first-child { border-top: 0; }
.outline-lesson { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem 1.1rem; text-decoration: none; color: var(--lb-text); font-size: .92rem; border-left: 3px solid transparent; }
.outline-lesson:hover { background: #f4f8f6; color: var(--lb-ink); }
.outline-lesson.is-current { background: var(--lb-teal-100); border-left-color: var(--lb-marigold); font-weight: 600; }
.outline-lesson .mark { flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 2px solid #b7c6c0; margin-top: .15rem; display: grid; place-items: center; color: #fff; background: transparent; padding: 0; }
.outline-lesson.is-done .mark { background: var(--lb-ok); border-color: var(--lb-ok); }
.material-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--lb-rule); border-radius: 10px; background: #fff; text-decoration: none; color: var(--lb-text); }
.material-row:hover { border-color: var(--lb-teal); color: var(--lb-ink); }

/* ---------- Mensajes y errores ---------- */
.alert { border-radius: 10px; border-width: 1px; }
.alert-success { --bs-alert-bg: #e3f4ea; --bs-alert-border-color: #b6dfc6; --bs-alert-color: #0f4f2c; }
.alert-danger { --bs-alert-bg: var(--lb-danger-100); --bs-alert-border-color: #f1b9b4; --bs-alert-color: #7b1710; }
.alert-warning { --bs-alert-bg: var(--lb-marigold-100); --bs-alert-border-color: #f1d79b; --bs-alert-color: #5e4000; }
.alert-info { --bs-alert-bg: var(--lb-teal-100); --bs-alert-border-color: #b6d9d3; --bs-alert-color: #0b4b46; }
.dev-banner { background: var(--lb-marigold); color: var(--lb-ink); text-align: center; font-size: .8rem; font-weight: 650; padding: .3rem 1rem; }

.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--lb-paper); font-family: var(--lb-sans); }
.error-box { text-align: center; padding: 2rem; max-width: 34rem; }
.error-box h1 { font-size: 1.6rem; margin: .25rem 0 1.25rem; }
.error-code { font-family: var(--lb-serif); font-size: 5.5rem; font-weight: 700; color: var(--lb-teal-700); margin: 0; line-height: 1; }

/* ---------- Aparición suave (solo hero; respetar preferencia de movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-2 { animation-delay: .12s; }
  .rise-3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .player-layout { grid-template-columns: minmax(0, 1fr); }
  .outline { position: static; max-height: none; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { position: fixed; z-index: 1040; inset: 0 auto 0 0; width: 17rem; transform: translateX(-100%); transition: transform .25s ease; }
  .app-shell.nav-open .app-sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
  .app-toggle { display: inline-flex; }
}
@media (max-width: 575.98px) {
  .code-input { font-size: 1.6rem; letter-spacing: .4em; }
  .stat-tile .stat-value { font-size: 1.8rem; }
  .panel-body { padding: 1.15rem; }
}
@media print {
  .site-nav, .site-footer, .app-sidebar, .app-topbar, .btn { display: none !important; }
}
