/* Release 0.41.0 · floating "Join our Telegram" button. Left on phones (the back-to-top button is on the right),
   right on desktop (the student sidebar is on the left). Lifts above the bottom menu and the phone action bar. */
.vpr-tg-float { position: fixed; z-index: 25; display: inline-flex; align-items: center; gap: 8px; left: 14px; bottom: calc(84px + env(safe-area-inset-bottom));
  padding: 6px; border-radius: 999px; background: #fff; color: #0b5c86; font-size: 14px; font-weight: 700; text-decoration: none;
  border: 1px solid #bfe3f5; box-shadow: 0 10px 24px -10px rgba(15,23,42,.45); transition: transform .15s ease, box-shadow .15s ease; }
.vpr-tg-float:hover, .vpr-tg-float:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(15,23,42,.5); }
.vpr-tg-float:focus-visible { outline: 3px solid #229ED9; outline-offset: 2px; }
.vpr-tg-glyph { width: 34px; height: 34px; flex: none; }
.vpr-tg-text { display: none; padding-right: 8px; white-space: nowrap; }
body:has([data-sticky-cta]:not(.is-hidden)) .vpr-tg-float { bottom: calc(152px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .vpr-tg-float { left: auto; right: 22px; bottom: 22px; padding: 6px 8px 6px 6px; }
  .vpr-tg-text { display: inline; }
  body:has(#pwa-install-prompt:not([hidden])) .vpr-tg-float { bottom: 128px; }
}
/* inline links (footer) and the student-menu card; own classes because app.css only holds the utilities the templates used */
a.vpr-tg-link { display: inline-flex !important; align-items: center; gap: 8px; }
.vpr-tg-link > svg { width: 22px; height: 22px; flex: none; }
a.vpr-tg-card { display: flex !important; width: 100%; align-items: center; gap: 12px; text-align: left; text-decoration: none; }
.vpr-tg-card > svg { width: 36px; height: 36px; flex: none; }
@media print { .vpr-tg-float { display: none !important; } }

/* Release 0.42.0 · Admin: student activity timeline and report tables (own classes; app.css only holds the utilities the templates used) */
.vpr-tl { position: relative; margin-left: 4px; padding-left: 18px; border-left: 2px solid #e2e8f0; }
.vpr-tl > li { position: relative; padding: 8px 0; }
.vpr-tl-dot { position: absolute; left: -24px; top: 14px; width: 10px; height: 10px; border-radius: 999px; background: #4835df; box-shadow: 0 0 0 4px #fff; }
.vpr-tl-head { column-gap: 8px; }
.vpr-cell-path { max-width: 16rem; }
.vpr-fu-channel { width: auto; min-width: 8.5rem; padding-right: 2rem; }

/* Release 0.43.0 · "What you get": free account vs paid plan */
.vpr-fvp { border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; padding: 18px; }
.vpr-fvp-title { font-size: 1.1rem; font-weight: 800; color: #17213a; }
.vpr-fvp-grid { display: grid; gap: 14px; margin-top: 12px; }
@media (min-width: 640px) { .vpr-fvp-grid { grid-template-columns: 1fr 1fr; } }
.vpr-fvp-col { border-radius: 14px; padding: 14px; }
.vpr-fvp-col.is-free { background: #ecfdf5; border: 1px solid #a7f3d0; }
.vpr-fvp-col.is-paid { background: #f4f2ff; border: 1px solid #dcd7fd; }
.vpr-fvp-head { display: flex; justify-content: space-between; font-weight: 800; color: #17213a; }
.vpr-fvp-head span { color: #047857; }
.vpr-fvp-col ul { margin-top: 8px; display: grid; gap: 6px; font-size: 14px; color: #334155; }
.vpr-fvp-col li { position: relative; padding-left: 22px; line-height: 1.4; }
.vpr-fvp-col li::before { content: "✓"; position: absolute; left: 2px; top: 0; font-weight: 800; }
.vpr-fvp-col.is-free li::before { color: #059669; }
.vpr-fvp-col.is-paid li::before { color: #4835df; }
.vpr-fvp-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: #4835df; }
.vpr-fvp-link:hover { text-decoration: underline; }
.vpr-fvp-cta { margin-top: 14px; width: 100%; }
.vpr-auth-alt { margin-top: 14px; display: block; width: 100%; text-align: center; padding: 11px 14px; border-radius: 12px; border: 1px dashed #c7ccfb; color: #4835df; font-weight: 700; font-size: 14px; background: #f8f7ff; }
.vpr-auth-alt:hover { background: #f1efff; }

/* Release 0.45.0 · calendar download buttons, latest exam alerts, printable calendar */
.vpr-cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vpr-cal-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid #dcd7fd; background: #fff; color: #3b2bd1; font-size: 14px; font-weight: 700; }
.vpr-cal-actions a:hover { background: #f4f2ff; }
.vpr-alerts { max-width: 48rem; border: 1px solid #fde68a; background: #fffbeb; border-radius: 16px; padding: 16px; }
.vpr-alerts h2 { font-weight: 800; color: #17213a; font-size: 1.05rem; }
.vpr-alerts ul { margin-top: 8px; display: grid; gap: 10px; }
.vpr-alerts li { border-top: 1px solid #fde68a; padding-top: 10px; }
.vpr-alerts li:first-child { border-top: 0; padding-top: 0; }
.vpr-alerts-kind { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.vpr-alerts strong { color: #17213a; }
.vpr-alerts small { display: block; margin-top: 2px; color: #64748b; font-size: 13px; }
.vpr-alerts small a, .vpr-alerts-cta a { color: #3b2bd1; font-weight: 700; }
.vpr-alerts p { margin-top: 4px; font-size: 14px; color: #334155; }
.vpr-alerts-cta { margin-top: 10px; font-size: 14px; }
.vpr-print { max-width: 60rem; margin: 0 auto; padding: 24px 16px; color: #0f172a; background: #fff; }
.vpr-print-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.vpr-print-bar a { color: #3b2bd1; font-weight: 700; }
.vpr-print-brand { font-weight: 800; color: #3b2bd1; }
.vpr-print h1 { font-size: 1.6rem; font-weight: 800; margin-top: 4px; }
.vpr-print h2 { font-size: 1.1rem; font-weight: 800; margin-top: 22px; }
.vpr-print-meta { margin-top: 6px; font-size: 12px; color: #475569; }
.vpr-print table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.vpr-print th, .vpr-print td { border: 1px solid #cbd5e1; padding: 6px 8px; text-align: left; vertical-align: top; }
.vpr-print th { background: #f1f5f9; }
@media print { body { background: #fff !important; } .vpr-print { padding: 0; } .vpr-print tr { break-inside: avoid; } #pwa-install-prompt, .vpr-to-top { display: none !important; } }

/* Release 0.46.0 · daily quiz, streak, answer key */
.vpr-streak { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: 14px; white-space: nowrap; }
.vpr-streak strong { font-size: 18px; }
.vpr-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.vpr-week li { display: grid; place-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: #f1f5f9; color: #64748b; font-size: 12px; }
.vpr-week li b { font-size: 13px; color: #334155; }
.vpr-week li.is-done { background: #dcfce7; color: #166534; }
.vpr-week li.is-done b { color: #14532d; }
.vpr-week li.is-today { outline: 2px solid #4835df; outline-offset: -2px; }
a.vpr-daily-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(100deg, #fff7ed, #fff); border: 1px solid #fed7aa; text-decoration: none; }
.vpr-daily-card strong { display: block; color: #17213a; }
.vpr-daily-card small { display: block; color: #5b6478; font-size: 13px; }
.vpr-akey ol { margin-top: 14px; display: grid; gap: 14px; }
.vpr-akey-q { border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; break-inside: avoid; font-size: 14px; }
.vpr-akey-head { font-size: 13px; color: #334155; margin-bottom: 6px; }
.vpr-akey-head .ok { color: #047857; font-weight: 700; }
.vpr-akey-head .bad { color: #be123c; font-weight: 700; }
.vpr-akey-opts { margin-top: 6px; display: grid; gap: 3px; }
.vpr-akey-opts li { padding: 2px 6px; border-radius: 6px; }
.vpr-akey-opts li.is-key { background: #dcfce7; }
.vpr-akey-opts li.is-mine { background: #ffe4e6; }
.vpr-akey-exp { margin-top: 6px; font-size: 13px; color: #334155; }

/* 0.47.0 · doubt box and current affairs */
.vpr-doubt-answer { border-left: 2px solid #34d399; padding-left: .75rem; }
.vpr-doubt + .vpr-doubt { margin-top: .5rem; }
a.vpr-ca-card { transition: box-shadow .15s ease, transform .15s ease; }
a.vpr-ca-card:hover { box-shadow: 0 0 0 2px #c7ccfb; }

/* 0.49.0 · question factory */
.vpr-fx-langs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.vpr-fx-lang { min-width: 0; }
.vpr-fx-card:focus { outline: 2px solid #3b2bd1; outline-offset: 2px; }
