/* stats.css - the look of Stats (stats.js; STATS 0001)
   ------------------------------------------------------------------------
   Every number here is the approved renders': Concept Art/stats.html round
   3 for the phone (.slist, .sgroup, .shead, .spanel, .srow, .slabel,
   .sval, .sval.dash, .sfrow, .sfcell, .sfname, .sfval, .snote, the
   calendar's .ls-cal, .ls-calhead, .ls-calm, .ls-caln, .ls-calgrid,
   .ls-wd, .ls-d and its on, miss, rest, future, today and blank, .ls-key,
   and the bean's .sbar and .sthumb), wide_list_pages.html L1 to L4 for a
   computer and a tablet on its side (.wcols, .wcol and every .wcols rule),
   and every panel flat as stats.html draws it (D1699). Loaded from this
   origin, which is what the
   page's Content Security Policy allows: style-src 'self', so there is no
   inline style anywhere; the bean's place, which stats.js computes, is set
   through the style object. Every number is before nav.js's scale s (the
   page's frame is scaled as a whole); .nv-wide on the page's screen is
   nav.js's wide layout.

   ⛔ NOTHING ON THIS PAGE IS COLORED (D559): white and the app's navy
      grays only; the streak-saved message's one blue Continue is the
      overlay family's (STATS_PAGE 0002, at the end). ⛔ No row looks
      tappable: no chevron, no per-row card (A8). */

/* ══ THE PAGE: nav's body (614 px on the phone drawn: 844 less 96 above,
   80 below, the 10 px last gap and the 44 px top bar). The list scrolls
   in it, 14 px in from each side, the groups 12 px apart and flush with
   its top and, scrolled to the end, its bottom: 1102 px on frame 1. ══ */
.sv-page {
  position: absolute;
  inset: 0;
}
.sv-scroll {
  position: absolute;
  inset: 0;
  padding: 0 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sv-scroll::-webkit-scrollbar {
  display: none;
}
.sv-cols,
.sv-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sv-group {
  flex: none;
}

/* A group's name: 16 px, 8 px above its panel. Not a headline. */
.sv-head {
  height: 16px;
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E7E99;
}

/* The group is the card; its rows are hairline-separated data. */
.sv-panel {
  border: 1px solid #2C3850;
  border-radius: 18px;
  overflow: hidden;
  background-color: #1D2739;
}
.sv-row {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.sv-row + .sv-row {
  border-top: 1px solid #253045;
}
.sv-label {
  font-size: 15.5px;
  font-weight: 400;
  color: #AEBBD0;
  white-space: nowrap;
}
.sv-value {
  font-size: 15.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #EAF0FA;
  white-space: nowrap;
}
/* ⛔ The one dash on the page, Pulses answered (D561, D1663). */
.sv-value.sv-dash {
  font-weight: 600;
  color: #5C6B85;
}

/* ══ THE STREAK FREEZE BOX (D1661 (7)): one 64 px row split down the
   middle, the note 8 px under the box, centered. ══ */
.sv-frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sv-fcell {
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.sv-fcell + .sv-fcell {
  border-left: 1px solid #253045;
}
.sv-fname {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #AEBBD0;
}
.sv-fvalue {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 20px;
  color: #EAF0FA;
}
.sv-note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 16px;
  text-align: center;
  color: #7D8CA5;
}

/* ══ THIS MONTH (A7; D1306 (4)): 240 px on a five-week month. White and
   gray only; a day a freeze covered is still outlined (D1661 (5)). ══ */
.sv-cal {
  padding: 14px 18px;
}
.sv-calhead {
  height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sv-calm {
  font-size: 15.5px;
  font-weight: 700;
  color: #EAF0FA;
}
.sv-caln {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #96A5BD;
}
.sv-caln b {
  font-weight: 700;
  color: #EAF0FA;
}
.sv-calgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.sv-wd {
  height: 14px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: .6px;
  text-align: center;
  color: #6E7E99;
}
.sv-d {
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #4A5874;
}
.sv-d.sv-on {
  background: #DCE5F2;
  color: #0E1526;
  box-shadow: 0 0 10px rgba(220, 229, 242, .22);
}
.sv-d.sv-miss {
  box-shadow: inset 0 0 0 1px #4E5C78;
  color: #7D8CA5;
}
.sv-d.sv-rest {
  background: rgba(255, 255, 255, .035);
}
.sv-d.sv-future {
  color: #33405A;
}
.sv-d.sv-today {
  outline: 2px solid #DCE5F2;
  outline-offset: 2px;
}
.sv-d.sv-blank {
  visibility: hidden;
}
.sv-key {
  display: flex;
  gap: 16px;
  height: 14px;
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 14px;
  color: #7D8CA5;
}
.sv-kitem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sv-kitem i {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 3px;
}
.sv-k-on {
  background: #DCE5F2;
}
.sv-k-miss {
  box-shadow: inset 0 0 0 1px #4E5C78;
}
.sv-k-rest {
  background: rgba(255, 255, 255, .06);
}

/* §1e: the bean, 6 px, #8FA3C4, round, NO track; 6 px in from the list's
   right edge, 10 px clear of its top and bottom; only where it scrolls
   (331 px of its 594 px track on frame 1). */
.sv-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 4;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}
.sv-bean-track.sv-scrolls {
  visibility: visible;
}
.sv-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* ══ WIDE (CONCEPT_ART §1g; wide_list_pages.html L1 to L4): two columns,
   24 px apart, 24 px in from each side and 6 px under the top row;
   Streaks, Streak freeze and This month on the left, Practice, Progress
   and All your cards on the right, the phone's order down each; every
   cell 20% larger; the bean beside the panels. ══ */
.nv-wide .sv-scroll {
  padding: 6px 24px 0;
}
.nv-wide .sv-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.nv-wide .sv-col {
  gap: 14px;
}
.nv-wide .sv-head {
  height: 19px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 19px;
}
.nv-wide .sv-panel {
  border-radius: 21px;
}
.nv-wide .sv-row {
  height: 48px;
  padding: 0 22px;
}
.nv-wide .sv-label,
.nv-wide .sv-value {
  font-size: 18.5px;
}
.nv-wide .sv-fcell {
  height: 77px;
  gap: 5px;
}
.nv-wide .sv-fname {
  font-size: 17px;
  line-height: 22px;
}
.nv-wide .sv-fvalue {
  font-size: 18.5px;
  line-height: 24px;
}
.nv-wide .sv-note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 19px;
}
.nv-wide .sv-cal {
  padding: 17px 22px;
}
.nv-wide .sv-calhead {
  height: 24px;
}
.nv-wide .sv-calm {
  font-size: 18.5px;
}
.nv-wide .sv-caln {
  font-size: 15.5px;
}
.nv-wide .sv-calgrid {
  gap: 7px;
  margin-top: 12px;
}
.nv-wide .sv-wd {
  height: 17px;
  font-size: 12.5px;
  line-height: 17px;
  letter-spacing: .7px;
}
.nv-wide .sv-d {
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
}
.nv-wide .sv-d.sv-on {
  box-shadow: 0 0 12px rgba(220, 229, 242, .22);
}
.nv-wide .sv-key {
  gap: 19px;
  height: 17px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 17px;
}
.nv-wide .sv-kitem {
  gap: 7px;
}
.nv-wide .sv-kitem i {
  width: 17px;
  height: 12px;
  border-radius: 4px;
}

/* ══ THE STREAK-SAVED MESSAGE (STATS_PAGE 0002; D1661 (8), D1682, D1993,
   D2068): one of the overlay family (§1c), stats.html M1 to M3's .dlg,
   .dt, .db, .dbtns, .dbtn and .dbtn.blue, over the family's scrim
   (overlays_and_end_states.html .scrim), drawn in the frame of the screen
   it opens over, at its scale, in the middle on every layout. Flat as
   drawn (D1699): no gradient, edge line or shadow of its own. ══ */
.sv-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}
.sv-dlg {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background: #22304A;
  text-align: center;
}
.sv-dlg,
.sv-dlg * {
  box-sizing: border-box;
}
.sv-dt {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}
.sv-dlg .sv-db {
  display: block;
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}
.sv-dlg [lang="my"] .tt-text p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}
.sv-dbtns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.sv-dbtn {
  height: 54px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
}
.sv-dbtn.sv-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}
