/* HSK Passport · app.css — built from tokens.css + components.md + the two UI spec docs */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--hsk-bg);
  color: var(--hsk-text);
  font-family: var(--hsk-font-ui);
  font-size: var(--hsk-fs-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
.content-font { font-family: var(--hsk-font-content); }
a { color: var(--hsk-primary); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------------- Button ---------------- */
.btn {
  appearance: none; border: none; cursor: pointer; font-weight: var(--hsk-fw-semibold);
  border-radius: var(--hsk-radius-button); display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; transition: transform 120ms, background 120ms, opacity 120ms;
}
.btn:focus-visible { outline: 3px solid var(--hsk-focus); outline-offset: 2px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--hsk-primary); color: #fff; height: var(--hsk-cta-h); padding: 0 24px; width: 100%; font-size: 16px; }
.btn-primary:hover { background: #32359080; background: #33368f; }
.btn-outline { background: transparent; border: 1.5px solid var(--hsk-primary); color: var(--hsk-primary); height: 44px; padding: 0 20px; }
.btn-outline:hover { background: var(--hsk-primary-light); }
.btn-ghost { background: transparent; border: none; color: var(--hsk-text-2); font-weight: var(--hsk-fw-medium); height: 44px; padding: 0 12px; }
.btn-ghost:hover { color: var(--hsk-text); }
.btn-inline { height: 44px; }

/* ---------------- ProgressBar ---------------- */
.pbar { background: var(--hsk-line); border-radius: 99px; overflow: hidden; width: 100%; }
.pbar-fill { height: 100%; background: var(--hsk-primary); border-radius: 99px; transition: width var(--hsk-dur-progress) var(--hsk-ease); }
.pbar-hero { height: 8px; }
.pbar-task { height: 6px; }
.pbar-weak { height: 4px; }
.pbar-fill.ok { background: var(--hsk-ok); }
.pbar-fill.warn { background: var(--hsk-warn); }
.pbar-fill.err { background: var(--hsk-err); }

/* ---------------- Skeleton ---------------- */
.skel { background: var(--hsk-line); border-radius: var(--hsk-radius-card); animation: skel-breathe var(--hsk-dur-skeleton) ease-in-out infinite; }
@keyframes skel-breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; opacity: .75; } }

/* ---------------- Chip ---------------- */
.chip {
  display: inline-flex; align-items: center; background: var(--hsk-card); border: 1px solid var(--hsk-line);
  border-radius: var(--hsk-radius-chip); padding: 6px 12px; font-family: var(--hsk-font-content);
  font-size: var(--hsk-fs-word-chip); color: var(--hsk-text);
}

/* ---------------- kbd ---------------- */
.kbd {
  width: 22px; height: 22px; border-radius: var(--hsk-radius-kbd); background: var(--hsk-card);
  border: 1px solid var(--hsk-line); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: var(--hsk-fw-semibold); color: var(--hsk-text-2); flex: none;
}

/* ---------------- App shell ---------------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* mobile topbar */
.topbar {
  height: var(--hsk-topbar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--hsk-page-pad); background: var(--hsk-card); border-bottom: 1px solid var(--hsk-line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .brand { font-size: 15px; font-weight: var(--hsk-fw-semibold); }
.topbar .right { display: flex; align-items: center; gap: 10px; }
.topbar .lang { font-size: 13px; font-weight: var(--hsk-fw-medium); color: var(--hsk-text-2); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--hsk-sound-light); color: var(--hsk-sound);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: var(--hsk-fw-semibold);
  flex: none;
}
.topbar.quiz-bar { gap: 12px; }
.topbar .back-btn { background: none; border: none; color: var(--hsk-text); font-size: 18px; cursor: pointer; padding: 4px; line-height: 1; }
.topbar .quiz-progress-text { font-size: 14px; font-weight: var(--hsk-fw-semibold); white-space: nowrap; }
.topbar .pbar { flex: 1; }

/* main content area */
.screen { padding: var(--hsk-page-pad); padding-bottom: calc(var(--hsk-tabbar-h) + var(--hsk-space-2)); max-width: 720px; margin: 0 auto; width: 100%; }
.screen > * + * { margin-top: var(--hsk-space-2); }
.noTab .screen { padding-bottom: var(--hsk-space-3); }

/* tab bar (mobile) */
.tabbar {
  height: var(--hsk-tabbar-h); padding-bottom: var(--hsk-tab-safe); display: flex; background: var(--hsk-card);
  border-top: 1px solid var(--hsk-line); position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
}
.tabbar button {
  flex: 1; background: none; border: none; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-size: 13px; color: var(--hsk-text-2); position: relative; cursor: pointer;
}
.tabbar button.active { color: var(--hsk-primary); font-weight: var(--hsk-fw-semibold); }
.tabbar button.active::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px; background: var(--hsk-primary); }
.tabbar .badge { position: absolute; top: 2px; right: 26%; background: var(--hsk-err); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; min-width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

/* ---------------- Desktop shell ---------------- */
.desktop-shell { display: none; }
@media (min-width: 768px) {
  .mobile-shell { display: none; }
  .desktop-shell { display: flex; min-height: 100vh; }
  .d-sidebar {
    width: var(--hsk-sidebar-w); flex: none; background: var(--hsk-card); border-right: 1px solid var(--hsk-line);
    display: flex; flex-direction: column; padding: 24px 16px; position: sticky; top: 0; height: 100vh;
  }
  .d-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
  .d-brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--hsk-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--hsk-font-content); font-weight: 700; font-size: 17px; flex: none; }
  .d-brand .name { font-size: 15px; font-weight: var(--hsk-fw-semibold); }
  .d-level-card { background: var(--hsk-bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
  .d-level-card .label { font-size: 12px; color: var(--hsk-text-2); }
  .d-level-card .row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 2px; }
  .d-level-card .val { font-weight: var(--hsk-fw-semibold); font-size: 15px; }
  .d-level-card .change { font-size: 13px; color: var(--hsk-primary); font-weight: var(--hsk-fw-medium); background: none; border: none; cursor: pointer; padding: 0; }
  .d-nav { display: flex; flex-direction: column; gap: 2px; }
  .d-nav-item {
    height: 40px; border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
    font-size: 14px; font-weight: var(--hsk-fw-medium); color: var(--hsk-text); background: none; border: none;
    cursor: pointer; text-align: left; position: relative;
  }
  .d-nav-item .dot { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--hsk-text-2); flex: none; }
  .d-nav-item.active { background: var(--hsk-primary-light); color: var(--hsk-primary); }
  .d-nav-item.active .dot { background: var(--hsk-primary); border-color: var(--hsk-primary); }
  .d-nav-item .badge { margin-left: auto; background: var(--hsk-err); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
  .d-tools-label { font-size: 11px; font-weight: var(--hsk-fw-semibold); letter-spacing: .06em; color: var(--hsk-text-2); margin: 20px 0 6px 12px; text-transform: uppercase; }
  .d-tools-item { height: 34px; display: flex; align-items: center; padding-left: 30px; font-size: 13px; color: var(--hsk-text-2); background: none; border: none; cursor: pointer; text-align: left; width: 100%; border-radius: 8px; }
  .d-tools-item:hover { background: var(--hsk-bg); }
  .d-sidebar-footer { margin-top: auto; border-top: 1px solid var(--hsk-line); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
  .d-sidebar-footer .meta { min-width: 0; }
  .d-sidebar-footer .email { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .d-sidebar-footer .plan, .d-sidebar-footer .lang { font-size: 12px; color: var(--hsk-text-2); }

  .d-center { flex: 1; min-width: 0; background: var(--hsk-panel); padding: var(--hsk-page-pad); display: flex; flex-direction: column; }
  .d-center-inner { max-width: var(--hsk-content-max); margin: 0 auto; width: 100%; flex: 1; display: flex; flex-direction: column; gap: var(--hsk-space-3); }
  .d-footer { margin-top: auto; padding-top: 24px; display: flex; gap: 16px; font-size: 12px; color: var(--hsk-text-2); }

  .d-right { width: var(--hsk-right-panel-w); flex: none; background: var(--hsk-panel); border-left: 1px solid var(--hsk-line); padding: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .d-right { position: fixed; top: 0; right: 0; height: 100vh; transform: translateX(100%); transition: transform 200ms ease-out; box-shadow: -4px 0 20px rgba(0,0,0,.15); z-index: 30; }
  .d-right.open { transform: translateX(0); }
  .d-right-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 29; opacity: 0; pointer-events: none; transition: opacity 200ms; }
  .d-right-scrim.open { opacity: 1; pointer-events: auto; }
  .d-upnext-bar { display: flex; align-items: center; justify-content: space-between; background: var(--hsk-card); border: 1px solid var(--hsk-line); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 13px; }
}
@media (min-width: 1024px) { .d-upnext-bar { display: none; } }

/* ---------------- Onboarding ---------------- */
.ob-progress { display: flex; gap: 6px; }
.ob-progress span { width: 28px; height: 4px; border-radius: 2px; background: var(--hsk-line); }
.ob-progress span.done { background: var(--hsk-primary); }
h1.h1 { font-size: var(--hsk-fs-h1); font-weight: var(--hsk-fw-semibold); text-wrap: balance; }
.ob-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ob-level-btn {
  height: 92px; border-radius: 14px; border: 1.5px solid var(--hsk-line); background: var(--hsk-card);
  cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-family: var(--hsk-font-ui);
}
.ob-level-btn .num { font-size: 20px; font-weight: var(--hsk-fw-semibold); }
.ob-level-btn.selected { background: var(--hsk-primary-light); border-color: var(--hsk-primary); color: var(--hsk-primary); }
.ob-level-btn.locked { opacity: .55; }
.ob-free-badge { position: absolute; top: 8px; right: 8px; background: var(--hsk-ok-light); color: var(--hsk-ok); font-size: 11px; font-weight: var(--hsk-fw-semibold); border-radius: 6px; padding: 2px 6px; }
.ob-link { font-size: 14px; font-weight: var(--hsk-fw-medium); color: var(--hsk-primary); text-align: center; background: none; border: none; cursor: pointer; width: 100%; }
.ob-note { font-size: 13px; color: var(--hsk-text-2); text-align: center; }
.date-input { width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid var(--hsk-line); background: var(--hsk-card); padding: 0 16px; font-size: 16px; color: var(--hsk-text); }
.ob-summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--hsk-line); font-size: 15px; }
.ob-summary-row:last-child { border-bottom: none; }
.ob-summary-row .k { color: var(--hsk-text-2); }
.ob-summary-row .v { font-weight: var(--hsk-fw-semibold); }

/* ---------------- Login ---------------- */
.login-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--hsk-space-2); padding-top: 12vh; }
.login-mark { font-family: var(--hsk-font-content); font-size: 96px; font-weight: 700; color: var(--hsk-primary); line-height: 1; }
.login-form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.email-input { width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid var(--hsk-line); background: var(--hsk-card); padding: 0 16px; font-size: 16px; color: var(--hsk-text); }
.email-input:focus { outline: 3px solid var(--hsk-focus); outline-offset: 1px; border-color: var(--hsk-primary); }
.login-sent { background: var(--hsk-ok-light); border: 1px solid var(--hsk-ok); color: var(--hsk-ok); border-radius: 12px; padding: 14px 16px; font-size: 14px; }

/* ---------------- Today ---------------- */
.today-level { font-size: 13px; font-weight: var(--hsk-fw-semibold); color: var(--hsk-primary); }
.countdown-row { display: flex; align-items: baseline; gap: 10px; }
.countdown-num { font-size: var(--hsk-fs-countdown); font-weight: var(--hsk-fw-semibold); line-height: 1; }
.countdown-label { font-size: 15px; color: var(--hsk-text-2); }
.mastery-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 6px; }
.mastery-row .v { font-weight: var(--hsk-fw-semibold); }
.mastery-row .l { color: var(--hsk-text-2); }

.status-card { border-radius: var(--hsk-radius-card); padding: 18px; }
.status-card.done { background: var(--hsk-ok-light); border: 1px solid var(--hsk-ok); }
.status-card.done .title { color: var(--hsk-ok); font-size: 16px; font-weight: var(--hsk-fw-semibold); }
.status-card .body { font-size: 13px; margin-top: 4px; color: var(--hsk-text-2); }
.status-card .more { color: var(--hsk-primary); font-size: 14px; font-weight: var(--hsk-fw-semibold); background: none; border: none; cursor: pointer; padding: 8px 0 0; }
.status-card.error { background: var(--hsk-err-light); border: 1.5px solid var(--hsk-err); }
.status-card.error .body { color: var(--hsk-err); font-size: 14px; margin-top: 0; }
.status-card.error .retry { margin-top: 10px; background: #fff; color: var(--hsk-err); border: 1px solid var(--hsk-err); border-radius: 10px; height: 38px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.status-card.login-needed { background: var(--hsk-panel); border: 1px solid var(--hsk-line); text-align: center; }

.hero-cards { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .hero-cards { flex-direction: row; } .hero-cards > * { flex: 1; } }
.card { background: var(--hsk-card); border-radius: var(--hsk-radius-card); padding: var(--hsk-card-pad); border: 1px solid var(--hsk-line); }

.task-card { background: var(--hsk-card); border-radius: 14px; padding: 16px; }
.task-card .title { font-size: 14px; font-weight: var(--hsk-fw-semibold); }
.task-card .count { font-size: 24px; font-weight: var(--hsk-fw-semibold); }
.task-card .unit { font-size: 13px; color: var(--hsk-text-2); font-weight: 400; }
.task-card .frac { font-size: 13px; color: var(--hsk-text-2); margin-top: 6px; }
.task-cards { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .task-cards { flex-direction: row; } .task-cards > * { flex: 1; } }

.section-title { font-size: 16px; font-weight: var(--hsk-fw-semibold); }
.weak-cards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.weak-card { flex: 1 0 45%; background: var(--hsk-card); border: 1px solid var(--hsk-line); border-radius: 12px; padding: 12px; min-width: 140px; }
.weak-card .topic { font-size: 12px; color: var(--hsk-text-2); }
.weak-card .word { font-family: var(--hsk-font-content); font-size: 17px; font-weight: 500; margin: 4px 0 8px; }
.weak-card .pct { font-size: 13px; font-weight: 600; margin-top: 6px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- Practice / quiz ---------------- */
.quiz-word-wrap { text-align: center; padding: var(--hsk-space-4) 0 var(--hsk-space-2); }
.quiz-word { font-family: var(--hsk-font-content); font-size: var(--hsk-fs-word-large); font-weight: 700; line-height: 1.15; }
.quiz-pinyin { font-size: var(--hsk-fs-pinyin); color: var(--hsk-text-2); margin-top: 6px; }
.quiz-prompt { font-size: 15px; color: var(--hsk-text-2); margin-top: 4px; }
.audio-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--hsk-card); border: 1px solid var(--hsk-line); border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; margin-top: 14px; cursor: pointer; }
.options { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
.option {
  min-height: var(--hsk-option-min); border-radius: var(--hsk-radius-option); background: #FFFDF9; border: 1.5px solid var(--hsk-line);
  color: var(--hsk-text); font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  cursor: pointer; text-align: left; transition: transform 200ms, background 150ms, border-color 150ms, color 150ms;
}
.option:disabled { cursor: default; }
.option.correct { background: var(--hsk-ok-light); border-color: var(--hsk-ok); color: var(--hsk-ok); transform: scale(var(--hsk-scale-correct)); }
.option.wrong { background: var(--hsk-err-light); border-color: var(--hsk-err); color: var(--hsk-err); }
.notsure-btn { display: block; margin: 12px auto 0; background: none; border: none; color: var(--hsk-text-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.quiz-bottom-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.quiz-keyboard-hint { font-size: 13px; color: var(--hsk-text-2); }
.next-btn-wrap { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* ---------------- CharacterCard / Venn ---------------- */
.char-card { border-radius: var(--hsk-radius-card); overflow: hidden; background: var(--hsk-card); border: 1px solid var(--hsk-line); }
.char-card .head { padding: 12px 14px; font-weight: 600; color: #fff; font-size: 14px; }
.char-card .head.wrong { background: var(--hsk-err); }
.char-card .head.unsure { background: var(--hsk-warn); }
.char-card .head.neutral { background: var(--hsk-card); color: var(--hsk-text); border-bottom: 1px solid var(--hsk-line); font-weight: 600; }
.char-card .head.correct-head .ok-label { color: var(--hsk-ok); font-weight: 700; }
.char-card .body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.char-card .placeholder-box { border: 1.5px dashed var(--hsk-line); border-radius: 10px; height: 130px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--hsk-text-2); font-size: 13px; padding: 12px; }
.cc-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hsk-text-2); margin-bottom: 4px; }
.cc-meaning-word { font-family: var(--hsk-font-content); font-size: 20px; font-weight: 500; }
.venn-figure { display: flex; flex-direction: column; align-items: center; }
.venn-formula { font-family: var(--hsk-font-content); font-size: 16px; font-weight: 500; margin-top: 6px; }
.venn-formula .m { color: var(--hsk-primary); }
.venn-formula .s { color: var(--hsk-sound); }
.venn-legend { display: flex; gap: 14px; font-size: 12px; color: var(--hsk-text-2); margin-top: 4px; }
.venn-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.venn-legend .m .dot { background: var(--hsk-primary); }
.venn-legend .s .dot { background: var(--hsk-sound); }
.cc-example .zh { font-family: var(--hsk-font-content); font-size: 17px; }
.cc-example .en { font-size: 13px; color: var(--hsk-text-2); margin-top: 2px; }
.cc-disclaimer { font-size: 11px; color: var(--hsk-text-2); border-top: 1px solid var(--hsk-line); padding-top: 10px; }
.cc-ask-btn { background: var(--hsk-card); border: 1px solid var(--hsk-line); border-radius: 12px; height: 46px; width: 100%; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: auto; }

/* ---------------- Mistakes ---------------- */
.mistakes-summary { font-size: 14px; color: var(--hsk-text-2); }
.mgroup { background: var(--hsk-card); border: 1px solid var(--hsk-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mgroup-head { display: flex; align-items: center; justify-content: space-between; }
.mgroup-head .name { font-size: 16px; font-weight: 600; }
.mgroup-tag { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 8px; }
.mgroup-tag.err { background: var(--hsk-err-light); color: var(--hsk-err); }
.mgroup-tag.warn { background: var(--hsk-warn-light); color: var(--hsk-warn); }
.mgroup-tag.ok { background: var(--hsk-ok-light); color: var(--hsk-ok); }

/* ---------------- Me ---------------- */
.me-header { display: flex; align-items: center; gap: 12px; }
.me-header .avatar { width: 44px; height: 44px; font-size: 16px; }
.me-header .email { font-size: 15px; font-weight: 600; word-break: break-all; }
.me-list { background: var(--hsk-card); border: 1px solid var(--hsk-line); border-radius: 14px; overflow: hidden; }
.me-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--hsk-line); font-size: 15px; }
.me-row:last-child { border-bottom: none; }
.me-row .k { color: var(--hsk-text-2); }
.me-row .v { font-weight: 600; }
.me-row .link-btn { background: none; border: none; color: var(--hsk-primary); font-weight: 600; font-size: 14px; cursor: pointer; }
.me-plan-card { background: var(--hsk-warn-light); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.me-plan-card .txt { color: var(--hsk-warn); font-weight: 600; font-size: 14px; }
.tools-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hsk-text-2); }
.signout-btn { color: var(--hsk-err); background: none; border: none; font-weight: 600; font-size: 15px; cursor: pointer; padding: 10px 0; }

/* ---------------- Plans ---------------- */
.plans-free-line { background: var(--hsk-ok-light); color: var(--hsk-ok); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 500; }
.plan-cards { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .plan-cards { flex-direction: row; align-items: stretch; } .plan-cards > * { flex: 1; } }
.plan-card { position: relative; background: var(--hsk-card); border: 1.5px solid var(--hsk-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.best { border: 2px solid var(--hsk-primary); }
.plan-badge { position: absolute; top: -12px; left: 20px; background: var(--hsk-primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 4px 10px; }
.plan-card .ptitle { font-size: 16px; font-weight: 700; }
.plan-card .pbody { font-size: 13px; color: var(--hsk-text-2); flex: 1; }
.plan-card .pprice { font-size: 24px; font-weight: 700; text-align: right; }
.plans-footnote { font-size: 12px; color: var(--hsk-text-2); text-align: center; }

/* ---------------- Utility ---------------- */
.center-text { text-align: center; }
.mt-auto { margin-top: auto; }
.skel-block { height: 16px; margin: 6px 0; }
