/* Dated planning, review buckets and activity summaries. */
.rs-plan-date-controls { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:0 0 18px; }
.rs-plan-date-controls label { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:12px; }
.rs-plan-date-controls input, .rs-card-filters input, .rs-card-filters select { min-height:42px; min-width:0; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); padding:9px 12px; }
.rs-timetable-tabs button span { display:block; font-size:13px; margin-top:4px; font-variant-numeric:tabular-nums; }
.rhythm-calendar-dots { display:flex; align-items:center; justify-content:center; gap:4px; height:6px; min-height:6px; }
.rhythm-calendar-dots b, .rhythm-legend i { display:block; flex:none; width:5px; height:5px; min-width:5px; min-height:5px; max-width:5px; max-height:5px; margin:0; padding:0; border:0; border-radius:50%; box-shadow:none; }
.rhythm-calendar-day.is-today { box-shadow:inset 0 0 0 1px var(--blue); }
.rhythm-calendar-day.is-selected { background:color-mix(in srgb,var(--blue) 24%,var(--paper)); border-color:var(--blue); }
.rs-card-filters { display:grid; grid-template-columns:minmax(190px,.65fr) minmax(0,1fr); gap:14px; }
.rs-card-filters label { display:grid; gap:7px; font-size:12px; color:var(--muted); }
.rs-learning-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding:5px; border-radius:15px; background:var(--paper); }
.rs-learning-groups button { display:flex; align-items:center; justify-content:center; gap:10px; min-height:44px; border:1px solid transparent; border-radius:10px; background:transparent; font-size:13px; color:var(--muted); }
.rs-learning-groups button span { display:grid; place-items:center; min-width:23px; height:23px; padding:0 5px; border-radius:7px; background:var(--bg); font-size:11px; }
.rs-learning-groups .unknown.is-active { color:#f2a39e; border-color:#cc756244; background:#cc75621a; }
.rs-learning-groups .partial.is-active { color:#e7b65a; border-color:#d5a24444; background:#d5a2441a; }
.rs-learning-groups .known.is-active { color:#73d7a2; border-color:#50b98144; background:#50b9811a; }
.rs-learning-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr); align-items:start; gap:22px; }
.rs-learning-stage { min-width:0; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--paper); }
.rs-card-stage-top { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; }
.rs-card-stage-top > span:first-child { flex:1; }
.rs-card-question { padding:42px 10px 30px; text-align:center; }
.rs-card-question small, .rs-card-answer small { color:var(--muted); font-size:11px; }
.rs-card-question h2 { margin:12px auto 0; max-width:32ch; font-size:clamp(20px,2.1vw,28px); font-weight:500; line-height:1.4; overflow-wrap:anywhere; }
.rs-card-answer { padding:20px; margin:0 0 22px; border-top:1px solid var(--line); border-radius:12px; background:var(--bg); }
.rs-card-answer p { margin:10px 0 0; font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.rs-reveal-answer { width:100%; margin:0 0 22px; min-height:48px; }
.rs-card-ratings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.rs-card-ratings button { min-height:52px; border:1px solid transparent; border-radius:12px; font-size:13px; font-weight:500; }
.rs-card-ratings .unknown { background:#bf6e642b; color:#f1a29a; border-color:#bf6e643c; }
.rs-card-ratings .partial { background:#c8963b2b; color:#edbf65; border-color:#c8963b3c; }
.rs-card-ratings .known { background:#3ca66d2b; color:#7adea9; border-color:#3ca66d3c; }
.rs-card-ratings button:disabled { opacity:.4; }
.rs-card-library { min-width:0; }
.rs-card-library > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0 16px; }
.rs-card-library h2 { font-size:18px; font-weight:600; margin:0; }
.rs-card-library header span { font-size:12px; color:var(--muted); }
.rs-library-row { display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); padding:12px 8px; border-radius:10px; }
.rs-library-row.is-active { background:var(--paper); }
.rs-library-open { display:block; flex:1; min-width:0; padding:0; text-align:left; border:0; background:transparent; }
.rs-library-open b { display:block; font-size:13px; font-weight:500; line-height:1.5; overflow-wrap:anywhere; }
.rs-library-open small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:4px; font-size:12px; color:var(--muted); line-height:1.5; overflow-wrap:anywhere; }
.rs-delete-cross { transform:rotate(45deg); }
.rs-learning-empty { padding:36px 14px; text-align:center; }
.rs-learning-empty > svg { width:32px; height:32px; color:var(--muted); }
.rs-learning-empty h2 { margin:15px 0 10px; font-size:20px; font-weight:500; }
.rs-learning-empty p { max-width:42ch; margin:0 auto 20px; color:var(--muted); font-size:13px; line-height:1.7; }
.rs-wellness-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.rs-weight-panel { grid-column:1/-1; }
.rs-weight-chart { display:block; width:100%; height:auto; max-height:330px; overflow:visible; }
.rs-weight-chart line { stroke:var(--line); stroke-width:1; }
.rs-weight-chart text { fill:var(--muted); stroke:none; font-family:inherit; font-size:11px; }
.rs-weight-chart .rs-weight-value { fill:var(--ink); font-size:12px; font-weight:500; }
.rs-weight-chart rect { fill:var(--blue); stroke:none; }
.rs-calorie-progress { position:relative; width:180px; max-width:100%; margin:20px auto 8px; }
.rs-calorie-progress svg { display:block; width:100%; height:auto; transform:rotate(-90deg); }
.rs-calorie-progress circle { fill:none; stroke-width:10; }
.rs-calorie-track { stroke:var(--line); }
.rs-calorie-fill { stroke:var(--coral); stroke-linecap:round; }
.rs-calorie-progress > div { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.rs-calorie-progress strong { font-size:30px; font-weight:600; font-variant-numeric:tabular-nums; }
.rs-calorie-progress small, .rs-calorie-caption { font-size:12px; color:var(--muted); text-align:center; }
.rs-training-actions { display:flex; gap:12px; margin-top:22px; }
.rs-training-actions button { flex:1; display:flex; justify-content:center; align-items:center; gap:8px; min-height:48px; border:1px solid var(--line); border-radius:12px; color:var(--muted); background:var(--bg); }
.rs-training-actions button.is-active { color:var(--ink); border-color:var(--blue); background:color-mix(in srgb,var(--blue) 20%,var(--paper)); }
.rs-workout-row { padding:12px 0; border-bottom:1px solid var(--line); }
.rs-workout-row:last-child { border:0; }
.rs-workout-row b, .rs-workout-row small { display:block; }
.rs-workout-row b { font-size:13px; font-weight:500; }
.rs-workout-row small { margin-top:5px; color:var(--muted); font-size:12px; }
.rs-account-actions { display:flex; flex-wrap:wrap; gap:10px; }
.rs-account-actions h2, .rs-account-actions p { width:100%; margin:0; }
[data-sync-status] { color:var(--muted); font-size:12px; min-height:18px; }
@media(min-width:981px) {
  .content { max-width:1320px; margin:0 auto; }
  .rhythm-main-grid { grid-template-columns:minmax(0,1fr); }
  .rhythm-rail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .rhythm-focus-face { padding:14px 0; }
  .rhythm-calendar-layout { grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); }
}
@media(max-width:980px) {
  .rs-learning-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:600px) {
  .rs-card-filters { grid-template-columns:minmax(0,1fr); gap:12px; }
  .rs-cards-page .rhythm-page-intro .actions { width:100%; }
  .rs-cards-page .rhythm-page-intro .actions button { width:100%; }
  .rs-learning-groups { gap:3px; padding:3px; }
  .rs-learning-groups button { gap:5px; padding:7px 3px; font-size:11px; }
  .rs-learning-groups button span { font-size:10px; min-width:18px; height:19px; }
  .rs-learning-stage { padding:18px 14px; }
  .rs-card-question { padding:28px 4px; }
  .rs-card-question h2 { font-size:23px; }
  .rs-card-ratings { gap:6px; }
  .rs-card-ratings button { min-height:52px; font-size:11px; padding:8px 3px; }
  .rs-wellness-grid { grid-template-columns:minmax(0,1fr); }
  .rs-weight-chart { min-width:560px; }
  .rs-weight-panel { overflow-x:auto; }
  .rs-plan-date-controls label { flex:1; flex-direction:column; align-items:stretch; font-size:10px; }
  .rs-plan-date-controls input { width:100%; padding:8px; font-size:12px; }
  .rs-plan-date-controls > button:last-child { width:100%; }
  .rhythm-month-controls { flex-wrap:wrap; justify-content:flex-end; }
}
