/* Wah-Kit Study planner (also used on the parent's link). Shares panels and rows with meds.css and sheets.css. */
#study.md { max-width: 860px; }
.sp-count { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-count span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--c); font-size: 14px; color: #333; }
.sp-count b { color: var(--c); }
.sp-new { display: flex; flex-direction: column; gap: 10px; }
.sp-new input { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 16px var(--font-body); }
.sp-item { border-left-color: var(--c) !important; }
.sp-item.done { background: #F3FBF5; } .sp-item.done .ts-tx b { text-decoration: line-through; text-decoration-color: #15803D88; }
.sp-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sp-acts .md-tick.on { background: #15803D; color: #fff; }
.sp-focus { min-height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--c, #4F46E5); background: #fff; color: var(--c, #4F46E5); font: 800 14px var(--font-body); cursor: pointer; }
.sp-late { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #FEF2F2; border: 1px solid #FCA5A5; }
.sp-late p { margin: 0; font-size: 14.5px; color: #7F1D1D; }
.sp-make { min-height: 46px; }
.sp-planbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sp-planbar small { color: var(--ink-soft); font-size: 13px; flex: 1; min-width: 200px; } .sp-dirty { color: #B45309 !important; font-weight: 700; }
.sp-day { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.sp-day.tdy { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sp-dayh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .sp-dayh b { font: 800 15.5px var(--font-display); }
.sp-dayh small { color: var(--ink-soft); font-size: 12.5px; } .sp-dayh small.over { color: #B45309; font-weight: 700; }
.sp-exam { margin: 0; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-weight: 800; font-size: 14px; }
.sp-pi { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: #FAFAFC; box-shadow: inset 4px 0 0 var(--c); }
.sp-pi.done { opacity: .6; } .sp-pi.done b { text-decoration: line-through; }
.sp-pt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sp-pt b { font-size: 14.5px; } .sp-pt small { color: var(--ink-soft); font-size: 12.5px; }
.sp-mv { display: flex; gap: 4px; } .sp-mv button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: var(--ink); }
.sp-mv button[disabled] { opacity: .3; cursor: default; }
.sp-steps ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; color: var(--ink-soft); }
.sp-subj { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 5px 0 0 var(--c); }
.sp-sh { display: flex; align-items: center; gap: 10px; } .sp-sh > i { display: none; }
.sp-sh > div { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sp-sh b { font: 800 18px var(--font-display); color: var(--c); } .sp-sh small { color: var(--ink-soft); font-size: 13.5px; }
.sp-prog { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.sp-topics { display: flex; flex-direction: column; gap: 4px; }
.sp-topic { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #FAFAFC; }
.sp-topic.done .sp-tt { color: #15803D; }
.sp-tt { flex: 1; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.sp-lv { display: flex; gap: 3px; } .sp-lv button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 800 12px var(--font-body); color: var(--muted); cursor: pointer; }
.sp-lv button.on.easy { background: #DCFCE7; border-color: #16A34A; color: #15803D; } .sp-lv button.on.medium { background: #FEF3C7; border-color: #D97706; color: #92400E; } .sp-lv button.on.hard { background: #FEE2E2; border-color: #DC2626; color: #B91C1C; }
.sp-x { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.sp-addt { display: flex; flex-direction: column; gap: 6px; } .sp-addt textarea { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; font: 15px var(--font-body); resize: vertical; }
.sp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.sp-addt .sp-row { justify-content: flex-end; } .sp-addt select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font: 14px var(--font-body); }
.sp-adds { align-self: flex-start; }
.md-sheet-in textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 16px var(--font-body); }
.sp-num { width: 90px; min-height: 44px; }
.sp-hours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sp-hours label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink-soft); text-align: center; }
.sp-hours select { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; font: 12.5px var(--font-body); padding: 0 2px; width: 100%; }
.sp-parent { display: flex; flex-direction: column; gap: 8px; }
/* focus timer */
.sp-fov { position: fixed; inset: 0; z-index: 210; background: radial-gradient(circle at 50% 35%, #1E1B2E, #0B0A12); color: #E9E4F5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.sp-fov h2 { margin: 0; font: 800 24px var(--font-display); max-width: 560px; } .sp-fsub { margin: 0; color: #A79FBF; }
.sp-ring { --p: 0; width: min(68vw, 280px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(closest-side, #15131F 86%, transparent 87% 100%), conic-gradient(var(--c) calc(var(--p) * 100%), #2A2638 0); }
.sp-ft { font: 700 54px/1 var(--font-display); } .sp-ring small { color: #A79FBF; margin-top: 6px; }
.sp-fbtn { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #3B3650; background: #1A1826; color: #E9E4F5; font: 600 16px var(--font-body); cursor: pointer; }
.sp-after { display: flex; flex-direction: column; gap: 10px; align-items: center; } .sp-after p { margin: 0; font-size: 18px; }
.sp-fnote { margin: 0; color: #6E6788; font-size: 14px; }
@media (max-width: 640px) {
  .sp-item { flex-wrap: wrap; } .sp-item .sp-acts { width: 100%; justify-content: space-between; }
  .sp-hours select { font-size: 11px; }
}
