/* 云督伴学 · 学生端 Apple 化界面
 * 严格复用家长端 parent_portal.css 的 pp-* 设计体系，
 * 本文件只补充学生业务组件，不另造一套视觉语言。
 */
:root {
    --sp-primary: var(--pp-primary, #E53935);
    --sp-primary-soft: var(--pp-primary-light, #FDECEA);
    --sp-bg: var(--pp-bg, #F5F5F7);
    --sp-card: var(--pp-card, #FFFFFF);
    --sp-text: var(--pp-text, #1D1D1F);
    --sp-text-2: var(--pp-text-2, #6E6E73);
    --sp-text-3: var(--pp-text-3, #86868B);
    --sp-border: var(--pp-card-border, rgba(0,0,0,.04));
}

body.sp-shell { background:var(--sp-bg); }
.sp-page { max-width:640px; padding-top:calc(16px + env(safe-area-inset-top)); }
.sp-main { display:block; }
.sp-homework-page { padding-bottom:104px; }
.sp-homework-head { margin:12px 2px 14px; }
.sp-homework-head p { margin:5px 0 0; color:var(--sp-text-3); font-size:13px; line-height:1.6; }
.sp-homework-note { margin-top:14px; background:linear-gradient(145deg,#fff9f7,#fff); }
.sp-homework-note strong,.sp-homework-note span { display:block; }
.sp-homework-note strong { color:var(--sp-text); font-size:13px; }
.sp-homework-note span { margin-top:6px; color:var(--sp-text-3); font-size:11px; line-height:1.65; }
.sp-header-account { color:var(--sp-text-2); font-size:13px; }
.sp-header-account:hover { color:var(--sp-primary); }
.sp-eyebrow { color:var(--sp-primary); font-size:11px; font-weight:700; letter-spacing:.12em; }
.sp-page-title { margin:4px 0 2px; font-size:26px; font-weight:700; letter-spacing:-.03em; line-height:1.25; }
.sp-page-sub { color:var(--sp-text-3); font-size:13px; line-height:1.65; }
.sp-back { display:inline-flex; align-items:center; gap:5px; min-height:36px; margin-bottom:8px; color:var(--sp-text-2); font-size:13px; }
.sp-back:hover { color:var(--sp-primary); }
.sp-section { margin:20px 0 0; }
.sp-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:0 2px 10px; }
.sp-section-head h2 { margin:0; font-size:17px; font-weight:650; }
.sp-section-head p,.sp-section-head span { margin:3px 0 0; color:var(--sp-text-3); font-size:12px; }
.sp-section-link { flex:none; color:var(--sp-primary); font-size:12px; font-weight:600; text-decoration:none; }
.sp-home-first { margin-top:8px; }

.sp-subject-strips { display:grid; gap:9px; }
.sp-subject-strip { display:flex; min-height:82px; align-items:stretch; gap:8px; padding:8px; border:1px solid var(--sp-border); border-radius:16px; background:var(--sp-card); box-shadow:var(--pp-shadow); color:var(--sp-text); }
.sp-subject-strip:hover,.sp-subject-strip:active { color:var(--sp-text); border-color:rgba(229,57,53,.18); background:#fff; transform:scale(.995); }
.sp-subject-main { display:flex; min-width:0; flex:1; align-items:center; gap:13px; padding:5px 2px 5px 5px; color:inherit; text-decoration:none; }
.student-progress-square { width:68px; min-height:66px; flex:0 0 68px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0; border-radius:12px; background:var(--sp-primary-soft); color:var(--sp-primary); font:inherit; cursor:pointer; }
.student-progress-square span { font-size:12px; font-weight:700; }
.student-progress-square small { font-size:9px; }
.student-progress-square.is-submitted { background:#ECF8F0; color:#27824B; }
.student-progress-square:disabled { background:#F2F2F4; color:var(--sp-text-3); cursor:default; }
.sp-subject-badge { display:grid; width:42px; height:42px; flex:none; place-items:center; border-radius:13px; background:var(--sp-primary); color:#fff; font-size:13px; font-weight:700; box-shadow:0 5px 14px rgba(229,57,53,.14); }
.sp-subject-copy { min-width:0; flex:1; }
.sp-subject-line { display:flex; min-width:0; align-items:baseline; gap:7px; }
.sp-subject-line + .sp-subject-line { margin-top:6px; }
.sp-subject-line em { width:48px; flex:none; color:var(--sp-text-3); font-size:10px; font-style:normal; }
.sp-subject-copy strong { display:block; overflow:hidden; color:var(--sp-text); font-size:14px; font-weight:600; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }
.sp-subject-copy small { display:block; min-width:0; overflow:hidden; color:var(--sp-text-3); font-size:10px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.sp-subject-copy small b { color:var(--sp-primary); font-weight:600; }
.sp-empty-link { display:block; color:var(--sp-text-3); text-decoration:none; }

.sp-recitation-overview { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; gap:15px; padding:18px; }
.sp-progress-ring { display:grid; width:84px; height:84px; flex:none; place-items:center; border-radius:50%; background:conic-gradient(var(--sp-primary) calc(var(--sp-progress) * 1%),#EEEEF0 0); box-shadow:inset 0 0 0 1px rgba(0,0,0,.02); }
.sp-progress-ring:before { content:""; grid-area:1/1; width:68px; height:68px; border-radius:50%; background:#fff; }
.sp-progress-ring > div { z-index:1; grid-area:1/1; text-align:center; }
.sp-progress-ring strong,.sp-progress-ring small { display:block; }
.sp-progress-ring strong { color:var(--sp-text); font-size:17px; font-variant-numeric:tabular-nums; }
.sp-progress-ring small { margin-top:1px; color:var(--sp-text-3); font-size:9px; }
.sp-recitation-placeholder { display:grid; width:84px; height:84px; place-items:center; border-radius:50%; background:var(--sp-primary-soft); color:var(--sp-primary); }
.sp-recitation-copy { min-width:0; }
.sp-recitation-copy h2 { overflow:hidden; margin:6px 0 3px; font-size:17px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.sp-recitation-copy p { overflow:hidden; margin:0; color:var(--sp-text-3); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.sp-recitation-numbers { display:flex; flex-wrap:wrap; gap:10px; margin-top:9px; color:var(--sp-text-3); font-size:10px; }
.sp-recitation-numbers b { color:var(--sp-text); font-size:12px; }
.sp-recitation-actions { display:flex; grid-column:1/-1; gap:8px; margin-top:2px; }
.sp-recitation-actions > * { flex:1; }

.sp-hero-card { border-left:4px solid var(--sp-primary); }
.sp-hero-row { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.sp-hero-row h2 { margin:3px 0 4px; font-size:20px; }
.sp-hero-row p { margin:0; color:var(--sp-text-2); font-size:13px; }
.sp-state { flex:none; display:inline-flex; align-items:center; min-height:26px; padding:3px 9px; border-radius:999px; color:var(--sp-primary); background:var(--sp-primary-soft); font-size:11px; font-weight:600; }

.sp-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.sp-metric { min-width:0; padding:14px 12px; border:1px solid var(--sp-border); border-radius:16px; background:var(--sp-card); box-shadow:var(--pp-shadow); }
.sp-metric span,.sp-metric small { display:block; color:var(--sp-text-3); font-size:10px; }
.sp-metric strong { display:block; margin:5px 0 1px; color:var(--sp-text); font-size:22px; line-height:1.15; font-variant-numeric:tabular-nums; }

.sp-entry-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.sp-entry-card { display:flex; width:100%; min-height:118px; flex-direction:column; justify-content:space-between; padding:17px; border:1px solid var(--sp-border); border-radius:18px; background:var(--sp-card); color:var(--sp-text); box-shadow:var(--pp-shadow); font:inherit; text-align:left; text-decoration:none; cursor:pointer; transition:transform .15s,border-color .15s; }
.sp-entry-card:hover,.sp-entry-card:active { color:var(--sp-text); border-color:rgba(229,57,53,.22); transform:scale(.99); }
.sp-entry-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sp-entry-icon { display:grid; width:36px; height:36px; place-items:center; border-radius:11px; color:var(--sp-primary); background:var(--sp-primary-soft); }
.sp-entry-arrow { color:var(--sp-primary); font-size:20px; }
.sp-entry-card strong { display:block; margin-top:14px; font-size:16px; }
.sp-entry-card small { display:block; margin-top:3px; color:var(--sp-text-3); font-size:11px; line-height:1.5; }

.sp-weak-filter { display:grid; grid-template-columns:1.25fr .8fr 1fr; gap:10px; margin-top:16px; padding:16px; }
.sp-weak-filter label span { display:block; margin:0 0 6px; color:var(--sp-text-3); font-size:11px; }
.sp-weak-filter input,.sp-weak-filter select { width:100%; min-height:42px; padding:0 11px; border:1px solid rgba(17,24,39,.13); border-radius:11px; background:#fff; color:var(--sp-text); font:inherit; }
.sp-weak-filter-actions { grid-column:1/-1; display:flex; gap:8px; }
.sp-weak-filter-actions .student-secondary-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.sp-weak-table-wrap { overflow:auto; padding:0; }
.sp-weak-table { width:100%; min-width:720px; border-collapse:collapse; }
.sp-weak-table th,.sp-weak-table td { padding:13px 14px; border-bottom:1px solid var(--sp-border); color:var(--sp-text-2); font-size:12px; line-height:1.55; text-align:left; vertical-align:middle; }
.sp-weak-table th { color:var(--sp-text-3); font-size:10px; font-weight:650; background:#FAFAFB; }
.sp-weak-table tr:last-child td { border-bottom:0; }
.sp-weak-table td strong,.sp-weak-table td small { display:block; }
.sp-weak-table td strong { color:var(--sp-text); font-size:15px; }
.sp-weak-table td small { margin-top:2px; color:var(--sp-text-3); font-size:10px; }
.sp-weak-badge { display:inline-flex; min-height:24px; align-items:center; padding:2px 8px; border-radius:999px; font-size:10px; font-weight:650; }
.sp-weak-badge.m1 { color:#B42318; background:#FEF0EE; }.sp-weak-badge.m2 { color:#9A5B00; background:#FFF7E7; }
.sp-weak-empty { padding:28px!important; text-align:center!important; color:var(--sp-text-3)!important; }
.sp-pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:12px; }
.sp-pagination a,.sp-pagination span { min-height:34px; display:inline-flex; align-items:center; padding:0 12px; border-radius:10px; background:#fff; color:var(--sp-text-2); font-size:11px; text-decoration:none; }

.sp-list { overflow:hidden; padding:0; }
.sp-list-link,.sp-list-row { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:66px; padding:14px 18px; border-top:1px solid var(--sp-border); color:var(--sp-text); text-decoration:none; }
.sp-list-link:first-child,.sp-list-row:first-child { border-top:0; }
.sp-list-link:hover,.sp-list-link:active { color:var(--sp-text); background:rgba(120,120,128,.055); }
.sp-list-main { min-width:0; flex:1; }
.sp-list-main strong { display:block; font-size:15px; font-weight:600; }
.sp-list-main span { display:block; margin-top:3px; color:var(--sp-text-3); font-size:11px; line-height:1.5; }
.sp-list-value { flex:none; color:var(--sp-primary); font-size:13px; font-weight:600; text-align:right; }
.sp-list-value b { display:block; font-size:20px; line-height:1.15; }
.sp-chevron { flex:none; color:#C7C7CC; font-size:23px; font-weight:300; }

.sp-progress { height:6px; overflow:hidden; margin-top:10px; border-radius:999px; background:#EFEFF1; }
.sp-progress > i { display:block; height:100%; border-radius:inherit; background:var(--sp-primary); }
.sp-dimension-row { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
.sp-dimension { padding:12px 8px; border-radius:13px; background:#F7F7F8; text-align:center; }
.sp-dimension span { display:block; color:var(--sp-text-3); font-size:10px; }
.sp-dimension strong { display:block; margin-top:4px; font-size:17px; }

.sp-task { padding:17px 18px; }
.sp-task + .sp-task { margin-top:10px; }
.sp-task-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sp-chip { display:inline-flex; align-items:center; min-height:24px; padding:2px 8px; border-radius:999px; color:var(--sp-primary); background:var(--sp-primary-soft); font-size:11px; font-weight:600; }
.sp-date { margin-left:7px; color:var(--sp-text-3); font-size:11px; }
.sp-task-status { flex:none; color:var(--sp-text-2); font-size:11px; }
.sp-task-status.is-done { color:var(--sp-primary); font-weight:600; }
.student-task-label { display:inline-flex; margin-left:6px; padding:2px 7px; border-radius:999px; color:var(--sp-primary); background:var(--sp-primary-soft); font-size:10px; font-weight:600; }
.sp-task-body { margin-top:12px; font-size:14px; line-height:1.75; white-space:pre-wrap; }
.sp-feedback { margin-top:12px; padding:11px 12px; border-radius:12px; background:#F7F7F8; color:var(--sp-text-2); font-size:12px; line-height:1.65; }
.student-feedback-title { font-weight:600; }
.student-progress-reminder { width:100%; min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 10px; padding:12px 14px; border:1px solid rgba(229,57,53,.14); border-radius:15px; background:linear-gradient(135deg,#FFF1F0,#FFF9F8); color:var(--sp-primary); font:inherit; text-align:left; cursor:pointer; }
.student-progress-reminder span { min-width:0; }
.student-progress-reminder b,.student-progress-reminder small { display:block; }
.student-progress-reminder b { font-size:13px; }
.student-progress-reminder small { margin-top:3px; color:#9A6262; font-size:10px; }
.student-progress-reminder strong { flex:none; font-size:11px; }
.student-progress-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:13px; padding-top:11px; border-top:1px solid var(--sp-border); }
.student-progress-state { display:inline-flex; min-height:25px; align-items:center; padding:3px 8px; border-radius:999px; background:#FFF1F0; color:var(--sp-primary); font-size:10px; font-weight:650; }
.student-progress-state.is-submitted { background:#ECF8F0; color:#27824B; }
.student-progress-button { min-height:34px; padding:5px 11px; border:0; border-radius:10px; background:var(--sp-primary); color:#fff; font:inherit; font-size:11px; font-weight:650; cursor:pointer; }
.student-progress-wait { color:var(--sp-text-3); font-size:10px; }
.student-progress-copy { margin-top:9px; padding:10px 11px; border-radius:11px; background:#F7F7F8; color:var(--sp-text-2); font-size:11px; line-height:1.6; white-space:pre-wrap; }
.student-progress-copy b { color:var(--sp-text); }
.student-progress-copy small { display:block; margin-top:4px; color:var(--sp-text-3); font-size:9px; }
.student-progress-intro { margin:-4px 0 14px; color:var(--sp-text-3); font-size:11px; line-height:1.6; }
.student-form-message { min-height:22px; margin-top:10px; color:#27824B; font-size:11px; }
.student-form-message.is-error { color:var(--sp-primary); }
body.student-modal-open { overflow:hidden; }

.sp-cycle-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.sp-cycle-head h2 { margin:4px 0 2px; font-size:17px; }
.sp-cycle-head p { margin:0; color:var(--sp-text-3); font-size:11px; }
.sp-cycle-count { color:var(--sp-primary); font-size:18px; font-weight:700; }
.sp-cycle-card { min-width:0; overflow:hidden; }
.sp-timeline { display:flex; width:100%; max-width:100%; gap:9px; overflow-x:scroll; overflow-y:hidden; margin-top:16px; padding:3px 1px 10px; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; touch-action:pan-x; scroll-snap-type:x proximity; scrollbar-width:none; }
.sp-timeline::-webkit-scrollbar { display:none; }
.sp-node { position:relative; display:grid; grid-template-columns:36px minmax(0,1fr); grid-template-rows:auto auto auto; column-gap:10px; flex:0 0 min(78vw,240px); min-width:min(78vw,240px); padding:13px; border:1px solid var(--sp-border); border-radius:14px; color:var(--sp-text-3); background:#fff; box-shadow:var(--pp-shadow); text-align:left; cursor:pointer; scroll-snap-align:start; }
.sp-node i { position:relative; z-index:1; display:grid; grid-row:1/4; width:32px; height:32px; margin:1px 0 0; place-items:center; border:2px solid #D1D1D6; border-radius:50%; background:#fff; color:var(--sp-text-2); font-style:normal; font-size:11px; font-weight:700; }
.sp-node span,.sp-node small { display:block; min-width:0; }
.sp-node .sp-node-label { color:var(--sp-primary); font-size:9px; font-weight:650; }
.sp-node .sp-node-content { display:block; margin-top:4px; color:var(--sp-text); font-size:12px; font-weight:600; line-height:1.55; overflow-wrap:anywhere; white-space:pre-wrap; }
.sp-node small { margin-top:5px; color:var(--sp-text-3); font-size:9px; }
.sp-node.is-lit i { border-color:var(--sp-primary); background:var(--sp-primary); color:#fff; box-shadow:0 0 0 4px var(--sp-primary-soft); }
.sp-node.is-hold i { border-color:rgba(229,57,53,.35); background:var(--sp-primary-soft); color:var(--sp-primary); }

.sp-exam-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.sp-exam-head h2 { margin:4px 0 2px; font-size:17px; }
.sp-exam-head p { margin:0; color:var(--sp-text-3); font-size:11px; }
.sp-score-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:13px; }
.sp-score { padding:9px; border-radius:11px; background:#F7F7F8; text-align:center; }
.sp-score span { display:block; color:var(--sp-text-3); font-size:9px; }
.sp-score strong { display:block; margin-top:2px; font-size:13px; }
.sp-chart { min-height:80px; margin-top:12px; border-top:1px solid var(--sp-border); padding-top:9px; }
.sp-chart svg { display:block; width:100%; height:88px; }
.student-score-line { fill:none; stroke:var(--sp-primary); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.student-score-point { fill:#fff; stroke:var(--sp-primary); stroke-width:3; }
.student-score-chart-empty { display:grid; min-height:70px; place-items:center; color:var(--sp-text-3); font-size:10px; }

.sp-empty { padding:24px 18px; color:var(--sp-text-3); font-size:13px; text-align:center; }
.sp-inline-actions { display:flex; gap:8px; margin-top:14px; }
.sp-inline-actions > * { flex:1; margin-top:0; }
.sp-sync { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 2px 14px; color:var(--sp-text-3); font-size:11px; }
.sp-sync button { border:0; background:none; color:var(--sp-primary); font:inherit; font-weight:600; cursor:pointer; }

.student-modal { position:fixed; inset:0; z-index:120; display:none; align-items:flex-end; background:rgba(15,23,42,.32); backdrop-filter:blur(5px); }
.student-modal.open { display:flex; }
.student-modal-panel { width:min(640px,100%); max-height:90vh; overflow:auto; margin:0 auto; padding:12px 18px calc(20px + env(safe-area-inset-bottom)); border-radius:22px 22px 0 0; background:#fff; box-shadow:0 -12px 44px rgba(15,23,42,.12); }
.student-modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.student-modal-head:before { content:""; position:absolute; left:50%; width:36px; height:5px; transform:translateX(-50%); border-radius:99px; background:#D1D1D6; }
.student-modal-head h2 { margin:18px 0 0; font-size:18px; }
.student-modal-close { width:34px; height:34px; margin-top:14px; border:0; border-radius:50%; background:#F2F2F4; font-size:19px; cursor:pointer; }
.student-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.student-form-field.full { grid-column:1/-1; }
.student-form-field label { display:block; margin-bottom:6px; color:var(--sp-text-2); font-size:12px; }
.student-form-field select,.student-form-field input,.student-form-field textarea { width:100%; min-height:46px; padding:10px 12px; border:1px solid var(--pp-border); border-radius:12px; background:#fff; color:var(--sp-text); font:inherit; }
.student-form-help,.student-range-preview { margin-top:6px; color:var(--sp-text-3); font-size:11px; line-height:1.55; }
.student-range-preview { padding:11px 12px; border-radius:12px; background:#F7F7F8; }
.student-modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.student-primary-button,.student-secondary-button,.student-danger-button { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:0 14px; border-radius:12px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; }
.student-primary-button { border:0; background:var(--sp-primary); color:#fff; }
.student-secondary-button { border:0; background:var(--sp-primary-soft); color:var(--sp-primary); }
.student-danger-button { border:1px solid rgba(229,57,53,.16); background:#fff; color:var(--sp-primary); }
.student-toast { position:fixed; left:50%; bottom:calc(76px + env(safe-area-inset-bottom)); z-index:160; opacity:0; transform:translate(-50%,10px); padding:10px 14px; border:1px solid rgba(229,57,53,.18); border-radius:999px; background:#fff; color:var(--sp-primary); box-shadow:0 10px 30px rgba(91,28,28,.12); font-size:12px; font-weight:600; pointer-events:none; transition:.18s; }
.student-toast.show { opacity:1; transform:translate(-50%,0); }

.sp-plan-list { display:grid; gap:10px; }
.sp-plan-card { padding:17px 18px; }
.sp-plan-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.sp-plan-head h2 { margin:0; font-size:16px; }
.sp-plan-head p { margin:4px 0 0; color:var(--sp-text-3); font-size:11px; line-height:1.55; }
.sp-plan-stats { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; color:var(--sp-text-3); font-size:10px; }

.sp-form-card label { display:block; margin:12px 0 6px; color:var(--sp-text-2); font-size:12px; }
.sp-form-card input { width:100%; min-height:48px; padding:11px 13px; border:1px solid var(--pp-border); border-radius:12px; background:#fff; color:var(--sp-text); font:inherit; font-size:16px; outline:none; }
.sp-form-card input:focus { border-color:var(--sp-primary); box-shadow:0 0 0 3px rgba(229,57,53,.1); }
.sp-form-card input:disabled { background:#F5F5F7; color:var(--sp-text-3); }

@media (max-width:520px) {
    .sp-weak-filter { grid-template-columns:1fr; }.sp-weak-filter-actions { grid-column:auto; }
    .sp-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sp-entry-grid { grid-template-columns:1fr 1fr; }
    .sp-entry-card { min-height:108px; padding:15px; }
    .sp-entry-card strong { font-size:15px; }
    .sp-score-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .student-form-grid { grid-template-columns:1fr; }
    .student-form-field.full { grid-column:auto; }
}

@media (max-width:360px) {
    .sp-entry-grid { grid-template-columns:1fr; }
}

/* 每日任务与四类学习入口 */
.sp-daily-summary { margin:0 2px 10px; color:var(--sp-text-2); font-size:12px; }
.sp-daily-task-list { display:grid; gap:9px; }
.sp-daily-task { display:block; padding:15px 16px; border:1px solid var(--sp-border); border-radius:16px; background:var(--sp-card); box-shadow:var(--pp-shadow); color:var(--sp-text); text-decoration:none; }
.sp-daily-task:hover,.sp-daily-task:focus-visible { color:var(--sp-text); border-color:rgba(229,57,53,.28); }
.sp-daily-task-top,.sp-study-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sp-daily-task-status { color:var(--sp-primary); font-size:11px; font-weight:650; white-space:nowrap; }
.sp-daily-task-title { display:block; margin-top:10px; font-size:15px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.sp-daily-task-meta { display:block; margin-top:8px; color:var(--sp-text-3); font-size:11px; }
.sp-daily-task-arrow { display:block; margin-top:10px; color:var(--sp-primary); font-size:11px; font-weight:650; text-align:right; }
.sp-daily-card-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:10px; }
.sp-daily-task:is(article) { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto auto; column-gap:12px; }
.sp-daily-task:is(article) > .sp-daily-task-top,
.sp-daily-task:is(article) > .sp-daily-task-title,
.sp-daily-task:is(article) > .sp-daily-task-meta { grid-column:1; }
.sp-daily-task:is(article) > .sp-daily-card-actions { grid-column:2; grid-row:1 / 4; align-self:center; flex-direction:column; gap:5px; margin:0; min-width:96px; }
.sp-daily-card-detail { font-size:11px; color:var(--sp-text-3); text-decoration:none; }
.sp-daily-card-action { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 16px; border:0; border-radius:12px; background:var(--sp-primary); color:#fff; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.sp-daily-card-action:disabled { opacity:.55; cursor:wait; }
.sp-daily-card-detail { color:var(--sp-primary); font-size:12px; text-decoration:none; }
.sp-daily-card-camera { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.sp-dictation-mode-picker { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.sp-dictation-mode-picker[hidden] { display:none; }
.sp-dictation-mode-picker > span { width:100%; font-size:13px; font-weight:700; }
.sp-dictation-mode-picker button.is-selected { border-color:var(--sp-primary); color:var(--sp-primary); }
.sp-study-handwriting-panel { width:min(96vw,680px); }
#studyHandwritingCanvas { display:block; width:100%; height:auto; background:#fff; border:1px solid var(--sp-border); border-radius:12px; touch-action:none; margin:12px 0; }
.sp-daily-legacy { margin-top:16px; }
.sp-daily-legacy h3 { margin:0 2px 8px; color:var(--sp-text-2); font-size:13px; }
.sp-daily-legacy-link { display:block; overflow:hidden; margin-top:6px; padding:10px 12px; border:1px solid var(--sp-border); border-radius:11px; background:#fff; color:var(--sp-text-2); font-size:12px; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.sp-daily-legacy-link:hover { color:var(--sp-primary); }
.sp-kind-grid .sp-kind-card { position:relative; min-height:92px; justify-content:center; padding-right:28px; }
.sp-kind-card strong { margin:0; }
.sp-kind-card small { margin-top:8px; }
.sp-kind-card .sp-entry-arrow { position:absolute; top:12px; right:14px; }
.sp-kind-filter { display:flex; gap:7px; overflow-x:auto; margin:13px 0 4px; padding-bottom:3px; }
.sp-kind-filter a { flex:none; padding:6px 10px; border-radius:999px; background:#fff; color:var(--sp-text-2); font-size:11px; text-decoration:none; }
.sp-kind-filter a[aria-current="page"] { background:var(--sp-primary-soft); color:var(--sp-primary); font-weight:650; }
.sp-task-enter { display:inline-flex; margin-top:12px; color:var(--sp-primary); font-size:12px; font-weight:650; text-decoration:none; }

/* 单任务学习页 */
.sp-study-page { padding-bottom:calc(30px + env(safe-area-inset-bottom)); }
.sp-study-page [hidden] { display:none !important; }
.sp-study-page > .pp-card { margin-top:14px; }
.sp-study-task-card h2 { margin:13px 0 0; font-size:18px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.sp-study-meta { margin:10px 0 0; color:var(--sp-text-3); font-size:12px; line-height:1.6; }
.sp-study-clock-card { text-align:center; }
.sp-study-clock-label { color:var(--sp-text-3); font-size:12px; }
.sp-study-clock-card > strong { display:block; margin:9px 0 5px; font-size:34px; font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.sp-study-clock-card > p { margin:5px 0 0; color:var(--sp-text-3); font-size:12px; line-height:1.6; }
#studyClockDetail { max-width:100%; white-space:pre-line; overflow-wrap:anywhere; }
.sp-study-actions { display:flex; justify-content:center; margin-top:18px; }
.sp-study-actions button { min-width:150px; }
.sp-study-submit-card .sp-section-head { margin-bottom:12px; }
.sp-study-field span,.sp-study-media > strong { display:block; margin-bottom:7px; color:var(--sp-text-2); font-size:12px; font-weight:650; }
.sp-study-field textarea { width:100%; padding:12px; border:1px solid var(--sp-border); border-radius:12px; background:#fff; color:var(--sp-text); font:inherit; font-size:14px; resize:vertical; }
.sp-study-media { margin-top:16px; }
.sp-study-media-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.sp-study-media-actions > * { display:inline-flex; align-items:center; justify-content:center; min-height:42px; cursor:pointer; }
.sp-study-hidden-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.sp-study-media-list { margin-top:9px; color:var(--sp-text-2); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.sp-study-media-item { padding:5px 0; border-bottom:1px solid var(--sp-border); }
.sp-study-media-item.is-rejected { color:#b42318; }
.sp-study-submit-card audio { width:100%; margin-top:10px; }
.sp-study-submit-card > form > .student-primary-button { width:100%; margin-top:12px; }
.sp-study-done-card h2 { margin:0 0 8px; font-size:17px; }
.sp-study-done-card p { color:var(--sp-text-2); font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.sp-study-done-card .student-secondary-button { display:inline-flex; margin-top:10px; }
.sp-study-dialog[hidden],.sp-study-dialog [hidden] { display:none !important; }
.sp-study-dialog { position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(17,24,39,.48); }
.sp-study-dialog-panel { width:min(100%,430px); max-height:calc(100dvh - 40px); overflow:auto; padding:22px; border-radius:20px; background:#fff; box-shadow:0 20px 60px rgba(0,0,0,.2); }
.sp-study-dialog-panel h2 { margin:0 0 12px; font-size:20px; }
.sp-study-dialog-panel p { margin:10px 0; color:var(--sp-text-2); line-height:1.6; }
.sp-study-dialog-panel #studyGroupInstruction { color:var(--sp-text); font-size:17px; font-weight:650; }
.sp-study-dialog-panel button { width:100%; margin-top:14px; }
.sp-study-mini-timer[hidden] { display:none !important; }
.sp-study-mini-timer { position:fixed; top:calc(10px + env(safe-area-inset-top)); right:12px; z-index:800; display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:999px; background:#20242b; color:#fff; box-shadow:0 5px 16px rgba(0,0,0,.22); font-variant-numeric:tabular-nums; }
.sp-study-mini-timer strong { font-size:12px; }
.sp-study-mini-timer button { border:0; border-radius:999px; padding:6px 9px; background:#fff; color:#20242b; font-size:11px; font-weight:700; }
#studyEnglishEntry { margin:14px 0; }
#studyEnglishEntry p { color:var(--sp-text-2); line-height:1.6; }
#studyEnglishEntry a { display:inline-flex; align-items:center; justify-content:center; min-height:42px; }
.sp-study-dictation-item { display:block; margin:12px 0; }
.sp-study-dictation-item input[type="text"] { display:block; width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--sp-border); border-radius:10px; background:#fff; font:inherit; }
.sp-study-dictation-item .sp-study-handwrite-button { display:inline-flex; align-items:center; justify-content:center; min-height:36px; margin-top:7px; cursor:pointer; }
#studyDictationForm > button { width:100%; margin-top:14px; }
#studyRecitationResult { white-space:pre-wrap; padding:10px 0; line-height:1.7; }
#studyHomeworkArea { margin-top:16px; }
#studyHomeworkArea > p { color:var(--sp-text-2); line-height:1.6; }
#studyUnlockAnswers { width:100%; min-height:42px; }
.sp-study-answer-segment { padding:11px 0; border-bottom:1px solid var(--sp-border); }
.sp-study-answer-segment p { margin:6px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.sp-study-correction-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.sp-study-correction-fields label { font-size:12px; color:var(--sp-text-2); }
.sp-study-correction-fields input { display:block; width:100%; min-height:42px; margin-top:5px; padding:8px; border:1px solid var(--sp-border); border-radius:9px; font:inherit; }
.sp-map-progress-card{margin-top:14px}.sp-map-progress-card .sp-card-sub{line-height:1.7}.sp-map-subject-list{display:grid;gap:10px;margin-top:14px}.sp-map-subject-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:10px 0;border-top:1px solid var(--sp-border)}.sp-map-subject-row strong,.sp-map-subject-row small{display:block}.sp-map-subject-row small{margin-top:3px;color:var(--sp-text-2);font-size:11px}.sp-map-subject-row>b{color:#be343a;font-size:13px}.sp-map-subject-row .sp-progress{grid-column:1/-1;margin-top:2px}
.sp-study-stage-strip{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}.sp-study-stage{padding:5px 8px;border-radius:99px;background:#f2f1f2;color:#67636a;font-size:10px}.sp-study-stage.is-completed,.sp-study-stage.is-passed,.sp-study-stage.is-done{background:#ebf7ee;color:#267643}.sp-study-stage.is-returned,.sp-study-stage.is-failed{background:#fff0ed;color:#bc2c34}.sp-study-acceptance-hint{margin:9px 0 0;padding:9px 11px;border-radius:11px;background:#fff7f5;color:#8b3b3f;font-size:12px;line-height:1.6}.sp-study-upload-hint{margin:4px 0 9px;color:#7d777e;font-size:11px;line-height:1.6}.sp-study-media-item img{display:block;max-width:100%;max-height:270px;margin:9px auto 1px;border-radius:9px;object-fit:contain}.sp-study-media-item audio{display:block;width:100%;margin:8px 0 2px}
