/* 写作输出 / 备考计划 / 错题本 样式 */

/* 写作输出训练 */
.wo-prompt { padding: 16px 18px; background: #fbfcfd; border: 1px solid #eef0f2; border-radius: 12px; margin-bottom: 14px; }
.wo-task { font-size: 12px; color: #2563eb; font-weight: 600; margin-bottom: 6px; }
.wo-title { font-size: 15px; color: #1f2937; line-height: 1.6; }
.wo-outline { margin: 12px 0 0; padding-left: 20px; }
.wo-outline li { font-size: 13px; color: #6b7280; line-height: 1.7; }
.wo-bar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-size: 13px; color: #6b7280; }
.wo-count { font-weight: 700; }
.wo-count.ok { color: #16a34a; }
.wo-count.low { color: #f59e0b; }
.wo-timer { font-weight: 700; color: #dc2626; font-variant-numeric: tabular-nums; }
.wo-input { width: 100%; min-height: 260px; padding: 14px; font-size: 15px; line-height: 1.7; color: #1f2937; border: 1px solid #d7dbe0; border-radius: 12px; resize: vertical; font-family: inherit; box-sizing: border-box; }
.wo-input:focus { outline: none; border-color: #4c8bf5; }
.wo-ops { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.wo-result { margin-top: 16px; padding: 16px 18px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; font-size: 14px; color: #166534; line-height: 1.8; }
.wo-result b { color: #15803d; }

/* 备考计划 */
.plan-datebar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.plan-datebar input[type=date] { padding: 8px 12px; font-size: 14px; border: 1px solid #d7dbe0; border-radius: 8px; }
.plan-count { font-size: 16px; color: #1f2937; margin-bottom: 12px; }
.plan-count b { color: #dc2626; font-size: 24px; }
.plan-track { height: 10px; background: #eef0f2; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.plan-track i { display: block; height: 100%; background: linear-gradient(90deg,#4c8bf5,#2563eb); transition: width .3s; }
.plan-today { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.plan-today b { color: #2563eb; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; margin: 8px 0; background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; transition: background .15s; }
.plan-item.done { background: #f0fdf4; border-color: #bbf7d0; }
.plan-item.today { border-color: #4c8bf5; box-shadow: 0 0 0 2px rgba(76,139,245,.15); }
.plan-check { flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid #d7dbe0; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; }
.plan-item.done .plan-check { background: #16a34a; border-color: #16a34a; }
.plan-check::after { content: "✓"; opacity: 0; }
.plan-item.done .plan-check::after { opacity: 1; }
.plan-body { flex: 1; }
.plan-day { font-size: 12px; color: #9ca3af; }
.plan-text { font-size: 14px; color: #374151; line-height: 1.5; }
.plan-item.done .plan-text { color: #86efac; text-decoration: line-through; }
.plan-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #eff6ff; color: #2563eb; margin-right: 6px; }

/* 错题本 */
.mb-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-size: 13px; color: #6b7280; }
.mb-list { list-style: none; margin: 0; padding: 0; }
.mb-item { padding: 14px 16px; margin: 8px 0; background: #fff; border: 1px solid #e6e8eb; border-left: 4px solid #dc2626; border-radius: 10px; }
.mb-q { font-size: 14px; color: #1f2937; line-height: 1.6; }
.mb-a { font-size: 13px; color: #16a34a; margin-top: 6px; cursor: pointer; }
.mb-meta { font-size: 12px; color: #9ca3af; margin-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.mb-remove { font-size: 12px; color: #dc2626; cursor: pointer; background: none; border: none; }
.mb-empty { padding: 30px; text-align: center; color: #9ca3af; font-size: 14px; }

/* ===== 错题本 v2：统计条 / 掌握度 / 重练 ===== */
.mb-toolbar { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.mb-stats { display:flex; gap:10px; flex-wrap:wrap; }
.mb-stat { font-size:12.5px; padding:3px 10px; border-radius:7px; background:#eef2f7; color:#475569; }
.mb-stat.new { background:#fee2e2; color:#991b1b; }
.mb-stat.learning { background:#fef3c7; color:#92400e; }
.mb-stat.mastered { background:#dcfce7; color:#166534; }
.mb-filters { display:flex; gap:6px; flex-wrap:wrap; }
.mb-chip { font-size:12.5px; padding:4px 12px; border:1.5px solid #d7dbe0; background:#fff; border-radius:8px; cursor:pointer; color:#475569; }
.mb-chip.on { background:#2563eb; border-color:#2563eb; color:#fff; font-weight:600; }
.mb-ops { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.mb-sort { padding:6px 12px; font-size:13px; border:1.5px solid #d7dbe0; border-radius:8px; background:#fff; outline:none; }
.mb-badge { font-size:11px; padding:2px 8px; border-radius:6px; }
.mb-badge.mastered { background:#dcfce7; color:#166534; }
.mb-badge.learning { background:#fef3c7; color:#92400e; }
.mb-badge.new { background:#fee2e2; color:#991b1b; }
.mb-wrongcount { font-size:11.5px; color:#dc2626; }
.mb-time { font-size:11.5px; color:#9ca3af; }
.mb-answers { margin:6px 0; }
.mb-wrong { font-size:13px; color:#b91c1c; }
.mb-item.mastery-2 { opacity:.62; }
.mb-review-head { font-size:14px; font-weight:700; color:#1f2937; flex:1; }
.mb-review-card { padding:24px; background:#fff; border:1px solid #e6e8eb; border-radius:14px; text-align:center; }
.mb-review-q { font-size:17px; color:#1f2937; margin-bottom:10px; line-height:1.6; }
.mb-review-src { font-size:12.5px; color:#9ca3af; margin-bottom:20px; }
.mb-review-ans { font-size:16px; color:#166534; margin:16px 0; }
.mb-review-ask { font-size:13.5px; color:#6b7280; margin:18px 0 12px; }
.mb-review-btns { display:flex; gap:12px; justify-content:center; }
[data-theme="dark"] .mb-review-card { background:#1e293b; border-color:#334155; }
[data-theme="dark"] .mb-review-q, [data-theme="dark"] .mb-review-head { color:#e2e8f0; }
[data-theme="dark"] .mb-chip { background:#1e293b; border-color:#334155; color:#cbd5e1; }
[data-theme="dark"] .mb-sort { background:#1e293b; border-color:#334155; color:#cbd5e1; }
/* ===== 错题本第二批：搜索 / 统计 / 导出 ===== */
.mb-search-row { width:100%; }
.mb-search { width:100%; box-sizing:border-box; padding:9px 14px; font-size:14px; border:1.5px solid #d7dbe0; border-radius:9px; outline:none; }
.mb-search:focus { border-color:#2563eb; }
.mb-stats-panel { display:flex; flex-direction:column; gap:14px; }
.mb-stat-card { padding:18px; background:#fff; border:1px solid #e6e8eb; border-radius:14px; }
.mb-stat-card h4 { margin:0 0 14px; font-size:14.5px; color:#1f2937; }
.mb-top-list { margin:0; padding-left:20px; }
.mb-top-list li { font-size:13.5px; color:#374151; line-height:2; }
[data-theme="dark"] .mb-search { background:#0f172a; border-color:#334155; color:#e2e8f0; }
[data-theme="dark"] .mb-stat-card { background:#1e293b; border-color:#334155; }
[data-theme="dark"] .mb-stat-card h4 { color:#e2e8f0; }
[data-theme="dark"] .mb-top-list li { color:#cbd5e1; }