/* Personal Resolutions (Story 5727, 2026-11-09) -- what the Vehicles / Houses styles do not cover:
   the board's two views, the resolution cards with their face, strip and verdict, the quick
   check-in buttons, the scoreboard, the day calendar, the check-in list and the track record. */

/* ---- the board's views ---- */
.vh-board .rs-tabs, .vh-board .rs-filters { flex: 0 0 auto; }
.rs-tabs { display: flex; gap: 0; background: #fff; border-bottom: 1px solid #E2E2E6; padding: 0 16px; }
.rs-tab { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #555; padding: 10px 14px;
          border-bottom: 3px solid transparent; cursor: pointer; }
.rs-tab.is-on { color: #1B1B1F; border-bottom-color: #4F46E5; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #E2E2E6; }
.rs-filters[hidden], .vh-filters[hidden], #rsListView[hidden], #rsRecordView[hidden] { display: none; }
.rs-filter { min-width: 160px; }
.rs-list { display: flex; flex-direction: column; gap: 10px; }

/* ---- a resolution card ---- */
.rs-card { border-left-color: #4F46E5; }
.rs-card.rs-timeup   { border-left-color: #C77700; }
.rs-card.rs-upcoming { border-left-color: #9AA0A6; }
.rs-card.rs-won      { border-left-color: #2E7D32; }
.rs-card.rs-lost     { border-left-color: #C62828; }
.rs-card.rs-other    { border-left-color: #8a8170; }
.rs-card-top { display: flex; align-items: center; gap: 4px; }
.rs-card-top .rs-card-link { flex: 1 1 auto; min-width: 0; }
.rs-fold { flex: 0 0 auto; border: 0; background: none; padding: 8px 6px; cursor: pointer; line-height: 0; }
.rs-chev { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
           border-top: 7px solid #666; transition: transform .15s; }
.collapsed .rs-chev { transform: rotate(-90deg); }
.collapsed > .rs-card-body { display: none; }
.rs-foldall { min-width: 0; padding: 4px 10px; }
.rs-card-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.rs-card-face { flex: 0 0 auto; line-height: 0; }
.rs-card-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rs-card-main .vh-title { overflow-wrap: anywhere; }
.rs-chip { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.rs-status { font-weight: 600; color: #333; }
.rs-card-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 6px; font-size: 13px; }
.rs-figures { color: #555; }
.rs-verdict { color: #4d463b; font-style: italic; }
.rs-try.is-self { background: #F5F4FF; }

/* ---- the strip: kept, not checked in, still to come; once broken, the day it broke and the voided rest ---- */
.rs-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #EFEDE7; margin-top: 10px; }
.rs-bar-tall { height: 16px; }
.rs-bar span { display: block; height: 100%; }
.rs-seg-kept   { background: #43A047; }
.rs-seg-lost   { background: #E53935; }
.rs-seg-broke  { background: #C62828; }
.rs-seg-void   { background: repeating-linear-gradient(-45deg, #F3C9C7 0 4px, #FBE7E6 4px 8px); }
.rs-seg-missed { background: repeating-linear-gradient(45deg, #BDB7AA 0 4px, #D9D4C7 4px 8px); }
.rs-seg-rest   { background: #EFEDE7; }
.rs-seg-going  { background: #5C6BC0; }
.rs-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #666; margin: 8px 0 4px; }
.rs-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px;
               border: 1px solid rgba(0, 0, 0, .12); }

/* ---- check in today ---- */
.rs-today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.rs-today-lbl { font-size: 13px; color: #555; font-weight: 600; }
.rs-today .ed-btn.rs-kept.is-on { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.rs-today .ed-btn.rs-broke, .ed-pane-actions .ed-btn.rs-broke { color: #B71C1C; border-color: #E0A3A0; }
.rs-today-done { font-weight: 700; color: #2E7D32; padding: 6px 4px; }
.rs-today-big { background: #FFFDF6; border: 1px solid #EDE3C8; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.rs-today-big .ed-btn { min-width: 140px; }
@media (max-width: 480px) { .rs-today-big .ed-btn { flex: 1 1 0; min-width: 0; } }

/* ---- the scoreboard ---- */
.rs-score { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #E2E2E6; border-left: 5px solid #4F46E5;
            border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.rs-score.rs-timeup { border-left-color: #C77700; }
.rs-score.rs-won    { border-left-color: #2E7D32; }
.rs-score.rs-lost   { border-left-color: #C62828; }
.rs-score.rs-upcoming, .rs-score.rs-other { border-left-color: #9AA0A6; }
.rs-score-face { flex: 0 0 auto; line-height: 0; }
.rs-score-main { flex: 1 1 auto; min-width: 0; }
.rs-score-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.rs-score-verdict { font-size: 17px; font-weight: 600; color: #2b2620; margin-top: 6px; }
@media (max-width: 480px) { .rs-score { flex-direction: column; align-items: flex-start; } .rs-score-main { width: 100%; } }

/* ---- the day calendar ---- */
.rs-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 520px; margin: 4px 0 6px; }
.rs-dow { font-size: 11px; color: #888; text-align: center; padding-bottom: 2px; }
.rs-day { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; border: 1px solid transparent; font: inherit; padding: 0;
          display: flex; align-items: center; justify-content: center; font-size: 12px; color: #333; background: #F4F2EC; }
button.rs-day { cursor: pointer; }
button.rs-day:hover { filter: brightness(.95); }
.rs-day-out    { background: transparent; }
.rs-day-kept   { background: #43A047; color: #fff; }
.rs-day-broke  { background: #C62828; color: #fff; }
.rs-day-void   { background: repeating-linear-gradient(-45deg, #F3C9C7 0 4px, #FBE7E6 4px 8px); color: #b98a87; }
.rs-day-missed { background: repeating-linear-gradient(45deg, #CFC9BC 0 4px, #E4E0D6 4px 8px); color: #4d463b; }
.rs-day-future { background: #F7F6F2; color: #aaa; border-color: #ECE9E1; }
.rs-day-today  { outline: 3px solid #4F46E5; outline-offset: 1px; }
.rs-day-note::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.rs-mon { position: absolute; left: 3px; top: 1px; font-size: 9px; font-weight: 700; opacity: .85; }
.rs-dnum { font-weight: 600; }

/* ---- the check-in list ---- */
.rs-checkins { display: flex; flex-direction: column; gap: 6px; }
.rs-checkin { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #fff;
              border: 1px solid #E7E7EC; border-left: 4px solid #43A047; }
.rs-ci-mark { font-weight: 700; font-size: 16px; color: #2E7D32; width: 18px; text-align: center; }
.rs-ci-main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.rs-ci-date { font-weight: 600; }
.rs-ci-what { color: #555; font-size: 13px; }
.rs-ci-note { flex-basis: 100%; color: #4d463b; font-size: 13px; overflow-wrap: anywhere; }
.rs-ci-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.rs-section + .rs-section { margin-top: 10px; }
.rs-section > .hs-card-body { padding-left: 12px; }

/* ---- the track record ---- */
.rs-group { border-left-color: #8a8170; }
.rs-group-total { border-left-color: #4F46E5; background: #FBFAFF; }
.rs-group-head { display: flex; align-items: center; gap: 6px; }
.rs-group-head .vh-title { flex: 1 1 auto; }
.rs-pct { font-weight: 700; color: #2E7D32; white-space: nowrap; }
#rsRecordView .vh-card + .vh-card { margin-top: 10px; }
