/* Mistake book (student/revision, revision-review) and Flashcards (student/flashcards, flashcards-study).
   Uses the student app tokens from el-app.css (--a-*). Prefix: st- is taken (steps) → sb- (study). */

/* ---- Hero: today's review ---- */
.sb-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; margin-bottom: 18px; border-radius: 20px;
  background: linear-gradient(135deg, #12264A 0%, #1d3a6b 100%); color: #fff; box-shadow: 0 12px 30px -18px rgba(18, 38, 74, .6); }
.sb-hero__n { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; align-content: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.sb-hero__n b { font: 800 32px/1 var(--el-font); color: #E3A81B; }
.sb-hero__n span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-top: 4px; text-align: center; line-height: 1.2; padding: 0 4px; }
.sb-hero h2 { margin: 0 0 4px !important; font: 800 19px var(--el-font) !important; color: #fff !important; }
.sb-hero p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.sb-hero__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.sb-hero__stats b { color: #fff; }
.sb-hero__go { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sb-hero__go form { margin: 0; }
.sb-hero__go .el-btn { width: 100%; justify-content: center; white-space: nowrap; }
.sb-hero .el-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .4); background: transparent; }
.sb-hero .el-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.sb-hero.is-clear .sb-hero__n b { color: #7fdcae; }

/* ---- Tabs and subject chips ---- */
.sb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-surface, #fff);
  color: var(--a-ink-2); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.sb-tabs a span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--a-bg); }
.sb-tabs a.is-on { background: #12264A; border-color: #12264A; color: #fff; }
.sb-tabs a.is-on span { background: rgba(255, 255, 255, .18); }
.sb-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.sb-chips::-webkit-scrollbar { display: none; }
.sb-chips a { flex: none; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--a-ink-2); background: var(--a-bg); border: 1px solid transparent; }
.sb-chips a.is-on { border-color: var(--a-blue); color: var(--a-blue); background: var(--a-blue-50); }

/* ---- Mistake cards ---- */
.sb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sb-q { background: var(--a-surface, #fff); border: 1px solid var(--a-line); border-radius: 18px; padding: 16px 18px; }
.sb-q__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12.5px; color: var(--a-muted); }
.sb-q__head .sb-q__sub { font-weight: 700; color: var(--a-ink-2); margin-right: auto; }
.sb-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--a-bg); color: var(--a-ink-2); }
.sb-tag--red { background: var(--a-red-50); color: var(--a-red); }
.sb-tag--due { background: #fff4d6; color: #8a5a00; }
.sb-tag--ok { background: var(--a-green-50, #e8f6ee); color: var(--a-green, #1f7a4d); }
.sb-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.sb-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-line); }
.sb-dots i.on { background: var(--a-green, #1f7a4d); }
.sb-q__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.sb-q__acts form { margin: 0; }
.sb-link { border: 0; background: none; padding: 6px 8px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--a-blue); cursor: pointer; }
.sb-link:hover { background: var(--a-blue-50); }
.sb-q .el-review__opts { margin: 10px 0 0; }
.sb-q .el-review__opts li.is-right { border-color: var(--a-green, #1f7a4d); background: var(--a-green-50, #e8f6ee); }
.sb-q .el-review__opts li.is-chosen-wrong { border-color: var(--a-red); background: var(--a-red-50); }
.sb-q img.sb-fig { max-width: 100%; max-height: 260px; border-radius: 10px; margin: 8px 0; }
.sb-ans { margin-top: 10px; }
.sb-ans summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--a-blue); list-style: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.sb-ans summary::-webkit-details-marker { display: none; }
.sb-ans__key { margin: 6px 0 0; font-size: 14px; }
.sb-empty { text-align: center; padding: 34px 20px; }
.sb-empty i { font-size: 30px; color: var(--a-green, #1f7a4d); margin-bottom: 10px; }

/* ---- Quick review (one question at a time) ---- */
.rv { max-width: 760px; margin: 0 auto; }
.rv-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rv-top a { color: var(--a-ink-2); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.rv-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--a-line); overflow: hidden; }
.rv-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #E3A81B, #f0c14b); transition: width .35s ease; }
.rv-count { font-weight: 800; font-size: 14px; color: var(--a-ink-2); min-width: 46px; text-align: right; }
.rv-card { background: var(--a-surface, #fff); border: 1px solid var(--a-line); border-radius: 22px; padding: 22px 24px; box-shadow: 0 14px 34px -26px rgba(18, 38, 74, .5); }
.rv-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 12.5px; color: var(--a-muted); font-weight: 700; }
.rv-q { font-size: 16.5px; line-height: 1.6; color: var(--a-ink, #14213d); }
.rv-q p { margin: 0 0 8px; }
.rv-opts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.rv-opts button { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--a-line);
  background: var(--a-surface, #fff); font: inherit; font-size: 15px; color: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.rv-opts button:hover:not(:disabled) { border-color: var(--a-blue); }
.rv-opts button:active:not(:disabled) { transform: scale(.99); }
.rv-opts button b { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--a-bg); font-size: 13px; }
.rv-opts button img { display: block; max-width: 100%; max-height: 160px; margin-top: 6px; border-radius: 8px; }
.rv-opts button.is-picked { border-color: var(--a-blue); background: var(--a-blue-50); }
.rv-opts button.is-picked b { background: var(--a-blue); color: #fff; }
.rv-opts button.is-right { border-color: var(--a-green, #1f7a4d); background: var(--a-green-50, #e8f6ee); }
.rv-opts button.is-right b { background: var(--a-green, #1f7a4d); color: #fff; }
.rv-opts button.is-wrong { border-color: var(--a-red); background: var(--a-red-50); }
.rv-opts button.is-wrong b { background: var(--a-red); color: #fff; }
.rv-opts button:disabled { cursor: default; }
.rv-type { display: grid; gap: 10px; margin-top: 16px; }
.rv-type input { font-size: 16px; }
.rv-check { margin-top: 14px; }
.rv-fb { margin-top: 16px; padding: 14px 16px; border-radius: 14px; display: none; }
.rv-fb.is-right { display: block; background: var(--a-green-50, #e8f6ee); color: #145c38; }
.rv-fb.is-wrong { display: block; background: var(--a-red-50); color: #8c1d18; }
.rv-fb strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.rv-fb .el-review__exp { margin-top: 10px; color: var(--a-ink, #14213d); background: rgba(255, 255, 255, .7); }
.rv-next { margin-top: 16px; display: flex; justify-content: flex-end; }
.rv-err { color: var(--a-red); font-size: 13.5px; margin-top: 8px; min-height: 1em; }
.rv-done { text-align: center; padding: 34px 24px; }
.rv-done__ring { width: 110px; height: 110px; margin: 0 auto 14px; }
.rv-done h2 { font: 800 22px var(--el-font) !important; margin: 0 0 6px !important; }
.rv-done__acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.rv-passage { margin-bottom: 12px; }

/* ---- Flashcard decks ---- */
.fc-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.fc-deck { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--a-surface, #fff); border: 1px solid var(--a-line); overflow: hidden; }
.fc-deck::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--deck, #12264A); }
.fc-deck__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--deck, #12264A); font-size: 18px; }
.fc-deck h3 { margin: 0 !important; font: 800 16.5px var(--el-font) !important; }
.fc-deck p { margin: 0; font-size: 13px; color: var(--a-muted); line-height: 1.45; }
.fc-deck__bar { height: 7px; border-radius: 999px; background: var(--a-line); overflow: hidden; display: flex; }
.fc-deck__bar i { display: block; height: 100%; }
.fc-deck__bar i.m { background: var(--a-green, #1f7a4d); }
.fc-deck__bar i.l { background: #E3A81B; }
.fc-deck__nums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--a-muted); }
.fc-deck__nums b { color: var(--a-ink-2); }
.fc-deck .el-btn { margin-top: auto; justify-content: center; }
.fc-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--a-muted); margin: 0 0 12px; }
.fc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---- Study session: flip card ---- */
.fc-study { max-width: 620px; margin: 0 auto; }
.fc-stage { perspective: 1400px; margin: 6px 0 18px; }
.fc-card { position: relative; width: 100%; min-height: 320px; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); font: inherit; color: inherit; text-align: center; display: block; }
.fc-card.is-flipped { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 30px 28px; border-radius: 24px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--a-surface, #fff); border: 1px solid var(--a-line); box-shadow: 0 20px 44px -30px rgba(18, 38, 74, .55); overflow: auto; }
.fc-face::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 24px 24px 0 0; background: var(--deck, #12264A); }
.fc-face--back { transform: rotateY(180deg); background: linear-gradient(180deg, #fffdf6 0%, #fff 60%); }
.fc-face__deck { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--a-muted); text-transform: uppercase; letter-spacing: .05em; }
.fc-face__deck em { font-style: normal; color: #8a5a00; background: #fff4d6; padding: 1px 8px; border-radius: 999px; text-transform: none; letter-spacing: 0; }
.fc-front { font: 800 clamp(21px, 4.4vw, 28px)/1.3 var(--el-font-display, var(--el-font)); color: var(--a-ink, #14213d); }
.fc-back { font-size: clamp(16px, 3.4vw, 19px); line-height: 1.55; color: var(--a-ink, #14213d); font-weight: 600; }
.fc-note { font-size: 14px; color: var(--a-muted); line-height: 1.5; padding: 8px 12px; border-radius: 10px; background: var(--a-bg); }
.fc-hint { font-size: 13px; color: var(--a-muted); display: inline-flex; gap: 6px; align-items: center; }
.fc-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.fc-grades.is-on { visibility: visible; opacity: 1; transform: none; }
.fc-grades button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--a-line); background: var(--a-surface, #fff);
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .1s, border-color .15s; }
.fc-grades button small { font-weight: 600; font-size: 12px; color: var(--a-muted); }
.fc-grades button:active { transform: scale(.97); }
.fc-grades [data-g="again"] { color: var(--a-red); }
.fc-grades [data-g="again"]:hover { border-color: var(--a-red); }
.fc-grades [data-g="good"] { color: var(--a-blue); }
.fc-grades [data-g="good"]:hover { border-color: var(--a-blue); }
.fc-grades [data-g="easy"] { color: var(--a-green, #1f7a4d); }
.fc-grades [data-g="easy"]:hover { border-color: var(--a-green, #1f7a4d); }
.fc-keys { text-align: center; font-size: 12px; color: var(--a-muted); margin-top: 12px; }
.fc-keys kbd { font: 700 11px var(--el-font); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--a-line); background: var(--a-bg); color: var(--a-ink-2); box-shadow: none; }
.fc-card.is-out { animation: fc-out .28s ease forwards; }
@keyframes fc-out { to { opacity: 0; transform: translateX(-30px) rotateY(180deg); } }
.fc-card.is-in { animation: fc-in .3s ease; }
@keyframes fc-in { from { opacity: 0; transform: translateX(30px); } }

@media (max-width: 720px) {
  .sb-hero { grid-template-columns: auto 1fr; padding: 18px; gap: 14px; }
  .sb-hero__n { width: 66px; height: 66px; border-radius: 18px; }
  .sb-hero__n b { font-size: 26px; }
  .sb-hero__n span { font-size: 9.5px; letter-spacing: .03em; }
  .sb-hero__go { grid-column: 1 / -1; }
  .sb-q { padding: 14px; }
  .rv-card { padding: 18px 16px; border-radius: 18px; }
  .fc-card { min-height: 360px; }
  .fc-face { padding: 44px 20px 24px; }
  .fc-keys { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-card { transition: none; }
  .fc-card.is-out, .fc-card.is-in { animation: none; }
  .rv-bar span, .fc-grades { transition: none; }
}

/* ---- My target (student/target) ---- */
.tg-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.tg-form__grid small { display: block; margin-top: 4px; font-size: 12.5px; }
.tg-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding: 24px; margin-bottom: 18px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #24457d 0%, #12264A 55%, #0b1a33 100%); box-shadow: 0 16px 40px -24px rgba(11, 26, 51, .7); }
.tg-hero__exam { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #E3A81B; }
.tg-hero h2 { margin: 4px 0 6px !important; font: 800 clamp(24px, 4vw, 32px)/1.15 var(--el-font-display, var(--el-font)) !important; color: #fff !important; }
.tg-hero p { margin: 0 0 12px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.tg-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .12); }
.tg-status.is-ok { background: rgba(74, 222, 128, .18); color: #9ff0bd; }
.tg-status.is-warn { background: rgba(227, 168, 27, .2); color: #ffd581; }
.tg-meter__track { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin: 26px 0 10px; }
.tg-meter__now { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #E3A81B, #ffd166); transition: width .6s ease; }
.tg-meter__goal { position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; font-style: normal; }
.tg-meter__goal b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; color: #fff; }
.tg-meter__nums { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.tg-meter__nums b { font: 800 22px var(--el-font); color: #fff; margin-right: 4px; }
.tg-meter small { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.tg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.tg-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--a-surface, #fff); border: 1px solid var(--a-line); }
.tg-card span { font-size: 12.5px; font-weight: 700; color: var(--a-muted); text-transform: uppercase; letter-spacing: .04em; }
.tg-card b { font: 800 22px/1.2 var(--el-font); color: var(--a-ink, #14213d); }
.tg-card b em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--a-muted); margin-left: 4px; }
.tg-card small { font-size: 12.5px; color: var(--a-muted); }
.tg-card.is-high { border-color: #9fd9b8; background: var(--a-green-50, #e8f6ee); }
.tg-card.is-fair { border-color: #f3dca6; background: #fff8e6; }
.tg-card.is-low { border-color: #f3c2bd; background: var(--a-red-50, #fdecea); }
.tg-goal-line { stroke: #E3A81B; stroke-width: 2; stroke-dasharray: 6 5; }
.tg-goal-t { font-size: 11px; font-weight: 800; fill: #b07300; }
.tg-week { display: flex; align-items: center; gap: 14px; }
.tg-week strong { display: block; font-size: 15px; }
.tg-habits { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tg-habits li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--a-bg); font-size: 14px; }
.tg-habits li i { color: #b07300; width: 18px; text-align: center; }
.tg-habits li span { flex: 1; }
.tg-habits li a { font-size: 13px; font-weight: 700; }

/* ---- Public rank predictor (front/rank-predictor) ---- */
.rp-wrap { max-width: 760px; display: grid; gap: 18px; }
.rp-card { background: #fff; border: 1px solid var(--el-line, #e3e8ef); border-radius: 20px; padding: 22px; box-shadow: 0 14px 34px -28px rgba(18, 38, 74, .45); }
.rp-form { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 14px; align-items: end; }
.rp-form .el-field { margin: 0; }
.rp-form .el-btn { height: 48px; white-space: nowrap; }
.rp-of { font-weight: 600; color: var(--el-muted, #6b7d93); font-size: 13px; }
.rp-rank { display: grid; gap: 2px; margin: 10px 0 16px; }
.rp-rank span { font-size: 13px; font-weight: 700; color: var(--el-muted, #6b7d93); text-transform: uppercase; letter-spacing: .05em; }
.rp-rank b { font: 800 clamp(34px, 7vw, 48px)/1.1 var(--el-font-display, var(--el-font)); color: #12264A; }
.rp-rank small { font-size: 13px; color: var(--el-muted, #6b7d93); }
.rp-chance { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #f3f6fa; }
.rp-chance i { font-size: 20px; margin-top: 2px; }
.rp-chance strong { display: block; font-size: 15.5px; }
.rp-chance span { font-size: 14px; color: #44546a; }
.rp-chance.is-high { background: #e8f6ee; } .rp-chance.is-high i { color: #1f7a4d; }
.rp-chance.is-fair { background: #fff6dd; } .rp-chance.is-fair i { color: #b07300; }
.rp-chance.is-low { background: #fdecea; } .rp-chance.is-low i { color: #b3261e; }
.rp-note { font-size: 13px; color: var(--el-muted, #6b7d93); margin: 14px 0; }
.rp-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-table { margin-top: 16px; font-size: 14px; }
.rp-table summary { cursor: pointer; font-weight: 700; color: #12264A; }
.rp-table table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.rp-table th, .rp-table td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; text-align: left; }
@media (max-width: 900px) { .tg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tg-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rp-form { grid-template-columns: 1fr; } .rp-acts .el-btn { width: 100%; justify-content: center; } .tg-card b { font-size: 19px; } .tg-hero { padding: 20px 18px; } }

/* ---- Lesson video study tools (js/el-vidtools.js) ---- */
.vt { margin: -4px 0 18px; display: grid; gap: 10px; }
.vt-strip { display: flex; gap: 3px; height: 10px; }
.vt-seg { position: relative; height: 100%; padding: 0; border: 0; border-radius: 3px; background: var(--a-line, #e3e8ef); cursor: pointer; overflow: hidden; min-width: 4px; }
.vt-seg i { position: absolute; inset: 0 auto 0 0; width: 0; background: #E3A81B; }
.vt-seg:hover, .vt-seg.is-on { background: #d4dbe5; }
.vt-seg:focus-visible { outline: 2px solid var(--a-blue, #2563eb); outline-offset: 2px; }
.vt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vt-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-line, #e3e8ef); background: var(--a-surface, #fff);
  font: 700 13.5px var(--el-font); color: var(--a-ink-2, #33415c); cursor: pointer; transition: border-color .15s, background .15s; }
.vt-btn:hover { border-color: #E3A81B; }
.vt-btn.is-done { border-color: var(--a-green, #1f7a4d); color: var(--a-green, #1f7a4d); background: var(--a-green-50, #e8f6ee); }
.vt-now { flex: 1; min-width: 120px; font-size: 13px; color: var(--a-muted, #6b7d93); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-now i { color: #b07300; margin-right: 4px; }
.vt-saver { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--a-ink-2, #33415c); cursor: pointer; margin: 0; }
.vt-saver input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vt-switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--a-line, #d9dee6); transition: background .2s; flex: none; }
.vt-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.vt-saver input:checked + .vt-switch { background: var(--a-green, #1f7a4d); }
.vt-saver input:checked + .vt-switch::after { transform: translateX(16px); }
.vt-saver input:focus-visible + .vt-switch { outline: 2px solid var(--a-blue, #2563eb); outline-offset: 2px; }
.vt-saver-msg { margin: 0; font-size: 12.5px; color: var(--a-muted, #6b7d93); }
.vt-compose { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #fffaf0; border: 1px solid #f3dca6; }
.vt-compose__at { font-size: 13px; font-weight: 700; color: #8a5a00; margin: 0; }
.vt-compose textarea, .vt-edit textarea { width: 100%; border: 1px solid var(--a-line, #e3e8ef); border-radius: 10px; padding: 10px 12px; font: 15px/1.5 var(--el-font); resize: vertical; background: #fff; }
.vt-compose__acts { display: flex; gap: 8px; justify-content: flex-end; }
.vt-err { color: var(--a-red, #b3261e); font-size: 13px; }
.vt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--a-line, #e3e8ef); }
.vt-tabs button { border: 0; background: none; padding: 8px 12px; font: 700 13.5px var(--el-font); color: var(--a-muted, #6b7d93); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.vt-tabs button[aria-selected="true"] { color: var(--a-ink, #14213d); border-color: #E3A81B; }
.vt-tabs span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--a-bg, #f3f5f8); margin-left: 4px; }
.vt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.vn-lesson .vt-list { max-height: none; }
.vt-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--a-bg, #f6f8fb); }
.vt-list li.is-on { background: #fff4d6; }
.vt-time { flex: none; min-width: 54px; height: 28px; padding: 0 8px; border-radius: 8px; border: 0; background: #12264A; color: #fff !important; font: 700 12.5px var(--el-font); font-variant-numeric: tabular-nums; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.vt-time:hover { background: #E3A81B; color: #12264A !important; }
.vt-body, .vt-ch { flex: 1; font-size: 14px; line-height: 1.5; padding-top: 3px; overflow-wrap: anywhere; }
.vt-body.is-bm { color: var(--a-muted, #6b7d93); }
.vt-body.is-bm i { color: #b07300; }
.vt-acts { display: flex; gap: 2px; }
.vt-acts button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--a-muted, #6b7d93); cursor: pointer; }
.vt-acts button:hover { background: #fff; color: var(--a-ink, #14213d); }
.vt-edit { flex: 1; display: grid; gap: 6px; }
.vt-edit div { display: flex; gap: 6px; justify-content: flex-end; }
.vt-empty { font-size: 13.5px; color: var(--a-muted, #6b7d93); background: none !important; padding: 10px 2px !important; }
.vn-course { margin-bottom: 16px; }
.vn-lesson + .vn-lesson { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--a-line, #e3e8ef); }
.vn-lesson__t { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; margin-bottom: 8px; color: var(--a-ink, #14213d); }
.vn-lesson__t i { color: #b07300; }
@media (max-width: 560px) { .vt-btn span { display: none; } .vt-btn { width: 42px; padding: 0; justify-content: center; } .vt-now { order: 5; flex-basis: 100%; } }
