/* 我的, redesigned (me-v2.blade.php; preview accounts only). The site's
   minimal look — white page, warm greys, the peach accent, no borders or
   shadows. The home is a quiet list (清爽); the pages pushed from it
   (个人资料, 积分与套餐, 免费积分) group their rows in soft blocks, like a
   phone's own settings. */
.mv, .ms-sheet {
    --ink: #1f1d1a;
    --ink-2: #4a4640;
    --muted: #8a857d;
    --faint: #c2bdb5;
    --line: #efebe5;
    --fill: #f7f5f2;
    --peach: #f2a07b;
    --peach-w: #fff4ec;
    --peach-2: #ffe3d3;
    --peach-ink: #b4531c;
    --orange: #f26a1b;

}
.mv {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: calc((var(--dock-h, 0px) + 2.5rem) / 2);
    color: var(--ink);
}
.mv-page .chat-scroll { padding-top: 6px; }
.mv .icon { --icon-size: 20px; width: var(--icon-size); height: var(--icon-size); font-size: var(--icon-size); display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; }
.mv a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mv button { -webkit-tap-highlight-color: transparent; }

/* ---------- Bar ---------- */
.mv-header-title { margin: 0; overflow: hidden; color: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.mv-header-gap { margin-left: auto; }

/* ---------- Shared pieces ---------- */
.mv-avatar { display: grid; flex: none; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--fill); color: var(--ink-2); font-size: 21px; font-weight: 600; }
.mv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mv-avatar.is-paid { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--peach); }
.mv-plan { display: inline-flex; flex: none; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mv-plan.is-paid { background: var(--peach-2); color: var(--peach-ink); }
.mv .mv-bar { display: block; height: 6px; overflow: hidden; border-radius: 6px; background: rgba(242, 106, 27, 0.14); }
.mv .mv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--orange); transform-origin: left; transition: width 0.4s; animation: mv-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes mv-grow { from { transform: scaleX(0); } }
.mv .mv-chev { --icon-size: 20px; flex: none; margin-left: auto; color: var(--faint); }
.mv-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.mv-text small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.mv-value { flex: none; max-width: 45%; overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mv .mv-value + .mv-chev, .mv .mv-badge + .mv-chev { margin-left: 0; }
.mv-badge { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--peach-2); color: var(--peach-ink); font-size: 12px; font-weight: 600; }

/* ---------- Lists ---------- */
.mv-label { margin: 26px 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; }
.mv-group { display: flex; flex-direction: column; margin: 0; }
.mv-group > a, .mv-group > button, .mv-group > .ms-row {
    position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 0;
    border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: opacity 0.15s;
}
.mv-group > div.ms-row, .mv-group > label.ms-row { cursor: default; }
.mv-group > [hidden] { display: none; }
.mv-group > a:active, .mv-group > button:active { opacity: 0.5; }
.mv-group > * + *::before { content: ""; position: absolute; top: 0; left: 38px; right: 0; border-top: 1px solid var(--line); }
.mv-ic { display: grid; flex: none; place-items: center; width: 24px; height: 24px; color: var(--ink-2); }
.mv-ic svg { width: 18px; height: 18px; }
.mv-logout { margin-top: 28px; }
.mv-logout > *::before { content: none; }
.mv-group.mv-logout > button { justify-content: center; min-height: 50px; border-radius: 14px; background: #fde8ea; color: #d23f4c; font-weight: 600; }
.mv-group.mv-logout > button:hover { opacity: 1; background: #fbdde1; }
.mv-logout > button .mv-text { flex: none; }
.mv-foot { margin: 28px 0 8px; color: var(--faint); font-size: 11.5px; line-height: 1.7; text-align: center; }

/* Pushed pages: plain lists on white, like the home (no grey blocks) */
.ms-card { padding: 0; }
.ms-note { margin: 10px 4px 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* Gentle fade-up on load */
.mvh-side > *, .mvh-main, .ms > * { animation: mv-up 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ms > :nth-child(2), .mvh-side > :nth-child(2) { animation-delay: 0.04s; }
.ms > :nth-child(3), .mvh-side > :nth-child(3), .mvh-main { animation-delay: 0.08s; }
.ms > :nth-child(n+4) { animation-delay: 0.12s; }
.ms > .ms-sheet { animation: none; }
@keyframes mv-up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Home (清爽) ---------- */
.mvc-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 18px; text-align: center; }
.mvc-head .mv-avatar { width: 84px; height: 84px; margin-bottom: 8px; font-size: 30px; }
.mvc-head h2 { max-width: 100%; margin: 0; overflow: hidden; font-size: 21px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mvc-head p { max-width: 100%; margin: 0 0 8px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mvc-credit { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--fill); font-size: 15px; transition: opacity 0.15s; }
.mvc-credit:active { opacity: 0.6; }
.mvc-credit-ic { --icon-size: 20px; color: var(--orange); font-size: 20px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.mvc-credit strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mvc-credit .mv-chev { margin-left: 0; }
.mvc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.mvc-stats a { display: flex; flex-direction: column; align-items: center; gap: 2px; transition: opacity 0.15s; }
.mvc-stats a:active { opacity: 0.5; }
.mvc-stats strong { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mvc-stats small { color: var(--muted); font-size: 12px; }
.mvh-main > .mv-label:first-child { margin-top: 28px; }

/* Guests: a sign-in card where the account would be */
.mvg-avatar { display: grid; place-items: center; color: var(--faint); }
.mvg-avatar .material-symbols-outlined { --icon-size: 40px; font-size: 40px; }
.mvc-head .mvg-text { max-width: 20rem; margin: 2px 0 14px; white-space: normal; line-height: 1.6; }
.mvg-btn { min-width: 200px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 14px; background: #1f1d1a; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, transform 0.12s; }
.mvg-btn:hover { background: #000; }
.mvg-btn:active { transform: scale(0.98); }

/* ---------- 个人资料 ---------- */
.ms { display: flex; flex-direction: column; }
.ms-id { display: flex; align-items: center; gap: 14px; padding: 6px 0 4px; }
.ms-id .mv-avatar { width: 60px; height: 60px; }
.ms-id-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-id-text strong { overflow: hidden; font-size: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ms-id-text small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mv-group > .ms-row-input { flex-wrap: wrap; row-gap: 6px; padding-bottom: 14px; }
.ms-row-input input {
    flex: 0 0 calc(100% - 38px); width: calc(100% - 38px); min-width: 0; margin: 0 0 0 38px; padding: 9px 12px; border: 1px solid #ebe6df; border-radius: 10px;
    background: #fff; color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color 0.15s;
}
.ms-row-input input::placeholder { color: var(--faint); }
.ms-row-input input:focus { border-color: var(--peach); }
.ms-switch { position: relative; flex: none; width: 48px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: #e2ddd6; cursor: pointer; transition: background-color 0.2s; }
.ms-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.22s cubic-bezier(0.3, 1.3, 0.5, 1); }
.ms-switch.is-on { background: #1f1d1a; }
.ms-switch.is-on i { transform: translateX(20px); }
.ms-switch:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.ms-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.ms-label-row small { color: var(--faint); font-size: 12px; font-weight: 500; }
/* Electives: the same cards as onboarding and 历年试卷's search (.pl-pick) — the subject's
   tint, a white icon tile, a deeper tint and a tick when picked; two to a row. */
.ms-group-label { margin: 14px 2px 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ms-group-label:first-child { margin-top: 0; }
.ms-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ms-picks[data-odd="1"] .ms-pick:last-child { grid-column: span 2; }
.ms-pick { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border: 1.5px solid transparent; border-radius: 18px; background: color-mix(in srgb, var(--c) 40%, #fff); color: #1f1d1a; font-family: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 0.15s, transform 0.15s, background-color 0.15s; }
.ms-pick:active { transform: scale(0.97); }
.ms-pick-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, 0.75); color: rgba(31, 29, 26, 0.72); --icon-size: 20px; font-size: 20px; }
.ms-pick-name { flex: 1; min-width: 0; overflow-wrap: break-word; }
.ms-pick-check { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1f1d1a; color: #fff; --icon-size: 14px; font-size: 14px; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ms-pick.is-on { border-color: color-mix(in srgb, var(--c) 60%, #1f1d1a 35%); background: color-mix(in srgb, var(--c) 75%, #fff); }
.ms-pick.is-on .ms-pick-check { opacity: 1; transform: none; }
.ms-pick:focus-visible { outline: none; border-color: color-mix(in srgb, var(--c) 60%, #1f1d1a 35%); }

/* Sheet: a small dialog on desktop, a bottom sheet on phones */
.ms-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.ms-sheet[hidden] { display: none; }
.ms-sheet-dim { position: absolute; inset: 0; background: rgba(20, 18, 15, 0.38); opacity: 0; transition: opacity 0.25s; }
.ms-sheet-panel { position: relative; width: min(380px, calc(100% - 32px)); max-height: 80vh; overflow: auto; padding: 8px 8px 12px; border-radius: 20px; background: #fff; opacity: 0; transform: scale(0.96); transition: opacity 0.22s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ms-sheet.is-open .ms-sheet-dim { opacity: 1; }
.ms-sheet.is-open .ms-sheet-panel { opacity: 1; transform: none; }
.ms-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px; }
.ms-sheet-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
/* 我的 › 外观 (partials/me/theme-sheet, dark-mode testers only). */
.mt-options { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 0; }
.mt-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #ebe8e3; border-radius: 14px; background: #fff; color: #1f1d1a; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.mt-option .material-symbols-outlined { --icon-size: 22px; font-size: 22px; }
.mt-option-text { flex: 1; }
.mt-option-check { opacity: 0; color: #f26a1b; transition: opacity 0.15s; }
.mt-option[aria-checked="true"] { border-color: #1f1d1a; background: #faf8f5; }
.mt-option[aria-checked="true"] .mt-option-check { opacity: 1; }
.mt-note { margin: 14px 8px 4px; color: #8a847c; font-size: 13px; line-height: 1.5; }
.ms-sheet-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.ms-sheet-x .material-symbols-outlined { --icon-size: 20px; font-size: 20px; }
.ms-sheet-list { display: flex; flex-direction: column; }
/* 州属: the chip groups need more room than a list. */
.ms-sheet-panel.ms-sheet-wide { width: min(460px, calc(100% - 32px)); }
.ms-state-body { padding: 4px 12px 8px; }
.ms-option { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; text-align: left; cursor: pointer; }
.ms-option:hover { background: var(--fill); }
.ms-option .material-symbols-outlined { --icon-size: 22px; font-size: 22px; color: var(--orange); visibility: hidden; }
.ms-option.is-on { color: var(--peach-ink); font-weight: 600; }
.ms-option.is-on .material-symbols-outlined { visibility: visible; }
.ms-option:focus { outline: none; }
.ms-option:focus-visible { background: var(--fill); }

/* ---------- 学习提醒 (partials/me/push-sheet; web-push.js picks the view) ---------- */
.mp-icon { position: relative; width: 72px; height: 72px; margin: 0 auto 6px; }
.mp-icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-icon-live:not([src]) { display: none; }
.mp-icon-live[src] + .mp-icon-still { visibility: hidden; }
.mp-view { display: flex; flex-direction: column; align-items: center; padding: 0 12px 2px; text-align: center; }
.mp-view[hidden] { display: none; }
.mp-lead { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.mp-text { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.mp-points, .mp-steps { align-self: stretch; margin: 8px 0 4px; padding: 0; list-style: none; text-align: left; }
.mp-points li, .mp-steps li { position: relative; padding: 7px 0 7px 26px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.mp-points li::before { content: ""; position: absolute; top: 14px; left: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }
.mp-steps { counter-reset: mp-step; }
.mp-steps[hidden] { display: none; }
.mp-steps li::before { counter-increment: mp-step; content: counter(mp-step); position: absolute; top: 8px; left: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--peach-2); color: var(--peach-ink); font-size: 11.5px; font-weight: 700; }
.mp-btn { width: 100%; min-height: 48px; margin-top: 14px; padding: 0 20px; border: 0; border-radius: 14px; background: #1f1d1a; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, transform 0.12s, opacity 0.15s; }
.mp-btn:hover { background: #000; }
.mp-btn:active { transform: scale(0.98); }
.mp-btn-soft, .mp-btn-soft:hover { background: var(--fill); color: var(--ink); }
.mp-link { width: 100%; min-height: 44px; margin-top: 4px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.mp-link:hover { color: var(--ink-2); }
.mp-hint { margin: 12px 4px 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.mp-sheet .is-busy { opacity: 0.6; pointer-events: none; }
.mp-btn.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: mp-spin 0.8s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-note { margin: 10px 16px 2px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; text-align: center; }
.mp-note[hidden] { display: none; }
.mp-note.is-error { color: #d23f4c; }
/* Just allowed: the bell gives way to onboarding's green tick, with a little burst. */
.mp-done-mark { position: relative; display: none; width: 72px; height: 72px; margin: 0 auto 6px; }
.mp-done-mark svg { position: relative; z-index: 1; display: block; overflow: visible; }
.mp-done-mark circle { fill: #3faf72; transform-origin: 48px 48px; transform: scale(0); }
.mp-done-mark path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.mp-done-mark i { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #a6dfbf; opacity: 0; }
.mp-done-mark i:nth-of-type(even) { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #3faf72; }
.mp-sheet.is-fresh .mp-icon { display: none; }
.mp-sheet.is-fresh .mp-done-mark { display: block; }
.mp-sheet.is-fresh .mp-done-mark circle { animation: mp-circle 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
.mp-sheet.is-fresh .mp-done-mark path { animation: mp-tick 0.4s cubic-bezier(0.6, 0, 0.3, 1) 0.35s forwards; }
.mp-sheet.is-fresh .mp-done-mark i { animation: mp-burst 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) 0.45s forwards; }
.mp-sheet.is-fresh [data-push-view="on"] { animation: mp-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both; }
@keyframes mp-circle { to { transform: scale(1); } }
@keyframes mp-tick { to { stroke-dashoffset: 0; } }
@keyframes mp-burst {
    0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(-56px) scale(0.4); }
}
@keyframes mp-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
    .mp-sheet.is-fresh .mp-done-mark circle, .mp-sheet.is-fresh .mp-done-mark path, .mp-sheet.is-fresh [data-push-view="on"] { animation: none; transform: none; stroke-dashoffset: 0; }
    .mp-btn.is-busy::before { animation: none; }
    .mp-icon-live { display: none !important; }
    .mp-icon-live[src] + .mp-icon-still { visibility: visible; }
}

/* ---------- 积分与套餐 ---------- */
.ms-plan { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--peach-w); }
.ms-plan-ic { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--ink-2); --icon-size: 26px; font-size: 26px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.ms-plan.is-paid .ms-plan-ic { color: var(--orange); }
.ms-plan-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.ms-plan-text small { color: var(--muted); font-size: 12px; }
.ms-plan-text strong { font-size: 20px; font-weight: 700; }
.ms-plan-text span { color: var(--muted); font-size: 12.5px; }
.ms-plan.is-paid .ms-plan-text span { color: var(--peach-ink); }
.mv .ms-plan-btn { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--peach-ink); font-size: 13.5px; font-weight: 600; transition: opacity 0.15s; }
.ms-plan-btn:active { opacity: 0.6; }
.ms-meter { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 2px; }
.ms-meter-top { display: flex; align-items: baseline; gap: 6px; }
.ms-meter-top strong { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ms-meter-top span { color: var(--muted); font-size: 14px; }
.ms-meter small { color: var(--muted); font-size: 12.5px; }
.mv-group > .ms-row-static { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.ms-row-num { flex: none; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 免费积分 ---------- */
.ms-earn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 16px 18px 18px; border-radius: 20px; background: var(--peach-w); }
.ms-earn .mv-bar { grid-column: 1 / -1; margin-top: 8px; }
.ms-earn-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ms-earn-text > small { color: #9a6a4f; font-size: 12.5px; font-weight: 500; }
.ms-gift { position: relative; display: block; width: 76px; height: 76px; margin: -6px -4px -4px 0; animation: ms-gift-in 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.15s both; }
.ms-gift img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-gift-still { display: none; }
.ms-gift.is-hop { animation: ms-gift-hop 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes ms-gift-in { from { opacity: 0; transform: scale(0.3) rotate(-14deg); } }
@keyframes ms-gift-hop { 0% { transform: none; } 30% { transform: translateY(-14px) scale(1.12) rotate(-6deg); } 60% { transform: translateY(0) scale(0.94, 1.06); } 100% { transform: none; } }
.ms-earn-figure { display: flex; align-items: baseline; gap: 6px; }
.ms-earn-figure strong { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ms-earn-figure span { color: #9a6a4f; font-size: 13.5px; }
.ms-task .mv-text small { color: var(--peach-ink); font-weight: 500; }
.ms-task-link .mv-text small { color: var(--peach-ink); font-weight: 500; }
.mv .ms-task-btn { flex: none; padding: 7px 16px; border-radius: 999px; background: var(--peach-2); color: var(--peach-ink); font-size: 13.5px; font-weight: 600; transition: opacity 0.15s, transform 0.12s; }
.ms-task-btn:active { transform: scale(0.95); }
.ms-task-done { display: none; flex: none; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.ms-task-done .material-symbols-outlined { --icon-size: 18px; font-size: 18px; color: var(--faint); }
.ms-task.is-claimed .ms-task-btn { display: none; }
.ms-task.is-claimed .ms-task-done { display: inline-flex; }
.ms-task.is-claimed .mv-text small { color: var(--muted); font-weight: 400; }

/* ---------- 邀请同学 status chips (partials/me/invite) ---------- */
.ms-invite-chip { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--muted); font-size: 12px; font-weight: 600; }
.ms-invite-chip.is-rewarded { background: var(--peach-2); color: var(--peach-ink); }

/* ---------- 邀请同学 page (partials/me/invite; designs a–d) ---------- */
.mv-invite { max-width: 560px; }
.iv2 .mv-label { margin-top: 24px; }
.iv2-avatar { display: grid; flex: none; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: var(--fill); color: var(--faint); }
.iv2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.iv2-avatar .material-symbols-outlined { --icon-size: 20px; font-size: 20px; }
.iv2 .mv-group > * + *::before { left: 46px; }
/* B 三步说明 */
.iv2-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; text-align: center; }
.iv2-rules { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px 6px 8px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.iv2-rules .material-symbols-outlined { --icon-size: 17px; font-size: 17px; }
.iv2-rules:active { transform: scale(0.96); }
.iv2-hero .iv-hand { margin-bottom: 10px; }
.iv2-title { margin: 0; font-size: 22px; font-weight: 700; }
.iv2-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.iv2-steps { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 0; padding: 10px 16px; border-radius: 18px; background: var(--fill); list-style: none; }
.iv2-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; }
.iv2-steps li span { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--peach-2); color: var(--peach-ink); font-size: 13px; font-weight: 700; }
.mv .iv2-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; color: #fff; text-decoration: none; }
.iv2-cta svg { width: 18px; height: 18px; }
.iv2-links { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.iv2-links [hidden] { display: none; }
.iv2-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.iv2-link-btn:hover { background: var(--fill); }
.iv2-link-btn .material-symbols-outlined { --icon-size: 18px; font-size: 18px; }
.iv2-code { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--fill); }
.iv2-code-label { color: var(--muted); font-size: 13.5px; }
.iv2-code strong { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: 0.12em; }
.iv2-code-copy { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.iv2-code-copy:active { transform: scale(0.96); }
.iv2-progress { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--peach-w); }
.iv2-progress-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; }
.iv2-progress-top strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.iv2-progress small { color: #9a6a4f; font-size: 12.5px; }
/* 活动规则 sheet: the head stays put, the rules scroll under it. */
.ivr .ms-sheet-panel { display: flex; flex-direction: column; width: min(440px, calc(100% - 32px)); max-height: min(660px, 86vh); overflow: hidden; padding-bottom: 0; }
.ivr-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 12px 20px; }
.ivr-body section + section { margin-top: 18px; }
.ivr-body h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.ivr-body ul { margin: 0; padding: 0; list-style: none; }
.ivr-body li { position: relative; padding: 3px 0 3px 14px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.ivr-body li::before { content: ""; position: absolute; top: 12px; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.ivr-body p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.ivr-contacts { display: flex; flex-direction: column; gap: 6px; }
.ivr-contacts a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--fill); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.ivr-contacts a:active { background: var(--line); }
.ivr-contacts svg { flex: none; width: 20px; height: 20px; }
.ivr-contacts a > span:not(.material-symbols-outlined) { flex: 1; }
.ivr-contacts .material-symbols-outlined { --icon-size: 18px; font-size: 18px; color: var(--faint); }
/* ---------- 邀请落地页 (invite.blade.php) ---------- */
.iv { display: flex; justify-content: center; padding-top: 12px; }
.iv-card { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; padding: 8px 4px 24px; text-align: center; }
.iv-avatar { width: 72px; height: 72px; margin-bottom: 10px; }
.iv-from { margin: 0; color: var(--muted); font-size: 14px; }
.iv-title { margin: 6px 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.iv-text { margin: 4px 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.iv-split { margin: 2px 0 0; padding: 4px 12px; border-radius: 12px; line-height: 1.5; background: var(--peach-2); color: var(--peach-ink); font-size: 13px; font-weight: 600; }
/* The Fluent 3D handshake (landing page and 邀请同学): pops in, then a small shake every few seconds. */
.iv-hand { display: block; width: 88px; height: 88px; margin: 0 0 8px; animation: iv-pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.iv-hand img { display: block; width: 100%; height: 100%; transform-origin: 50% 70%; animation: iv-shake 3.2s ease-in-out 0.9s infinite; }
@keyframes iv-pop { from { opacity: 0; transform: scale(0.5) rotate(-10deg); } }
@keyframes iv-shake {
    0%, 42%, 100% { transform: none; }
    8% { transform: translateY(-4px) rotate(-7deg); }
    16% { transform: translateY(2px) rotate(6deg); }
    24% { transform: translateY(-3px) rotate(-4deg); }
    32% { transform: translateY(1px) rotate(2deg); }
}
.iv-points { align-self: stretch; margin: 10px 0 18px; padding: 14px 16px; border-radius: 18px; background: var(--fill); list-style: none; text-align: left; }
.iv-points li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink-2); font-size: 14.5px; }
.iv-points .material-symbols-outlined { --icon-size: 20px; font-size: 20px; color: var(--ink); }
.mv .iv-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
/* A link styled as the button (signed-in visitors): .mv a would make its text inherit the page's black. */
.mv a.iv-btn, .mv a.iv-btn:hover, .mv a.iv-btn:visited { color: #fff; }
.iv-code { margin: 14px 4px 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.iv-code strong { color: var(--ink); font-size: 13.5px; letter-spacing: 0.1em; }
.iv-fine { margin: 14px 4px 0; color: var(--faint); font-size: 12px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
    .iv-hand, .iv-hand img { animation: none; }
}

/* ---------- Phones: pushed pages look like a native app ---------- */
@media (max-width: 720px) {
    .mv-is-sub .dock { display: none !important; }
    body.mv-is-sub .chat-scroll { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important; }
    .mv-is-sub .mv { padding-bottom: 12px; }

    .ms-sheet { align-items: flex-end; }
    .ms-sheet-panel.ms-sheet-wide { width: 100%; }
    .ms-sheet-panel { width: 100%; max-height: 75vh; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; opacity: 1; transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
    .ms-sheet-panel::before { content: ""; display: block; width: 38px; height: 5px; margin: 2px auto 4px; border-radius: 5px; background: #e2ddd6; }
    .ms-sheet-panel.is-dragging { transition: none; }
    .ivr .ms-sheet-panel { width: 100%; max-height: 88vh; padding-bottom: 0; }
    .ivr-body { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Desktop: home in two columns; pages in one tidy column ---------- */
@media (min-width: 900px) {
    .mv { padding-top: 20px; padding-bottom: 48px; }
    .mv-home { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 56px; align-items: start; max-width: 920px; }
    .mvh-side { position: sticky; top: 0; }
    .mv-home .mv-foot { grid-column: 1 / -1; margin-top: 40px; }
    .mvh-main > .mv-label:first-child { margin-top: 0; }
    .mv-home .mvc-head { padding-top: 0; }
    .mv-home .mvc-head .mv-avatar { width: 96px; height: 96px; font-size: 34px; }
    .mv-profile, .mv-account, .mv-credits, .mv-invite { max-width: 620px; }
}
@media (hover: hover) {
    .mv-group > a:hover, .mv-group > button:hover, .mvc-stats a:hover, .mvc-credit:hover { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
    .mv *, .mv > * { animation: none !important; transition: none !important; }
    .ms-gift-live { display: none; }
    .ms-gift-still { display: block; }
}

/* 个人资料 › 删除账号 (/me/delete-account): the one red row. Its dark colour is here, not in the generated dark.css. */
.ms-row.ms-danger, .ms-row.ms-danger .mv-ic { color: #d23f4c; }
:root[data-theme="dark"] .ms-row.ms-danger, :root[data-theme="dark"] .ms-row.ms-danger .mv-ic { color: #fc676e; }
