/* my_cards.css - the look of My Cards (my_cards.js; MY_CARDS 0001)
   ------------------------------------------------------------------------
   Every number here is the approved renders': Concept Art/my_cards.html for
   the phone (.search, .sicon, .sph, .filters, .chip, .ctext, .ccaret,
   .chip.set, .chip.off, .countrow, .cleft, .cshow, .cselnum, .hline,
   .mlist, .sbar, .sthumb, .mrow, .mrow.sel, .cbox, .cbox.on, .tick, .mtext,
   .meng, .mline, .mbur, .mtag, the 85% step's .meng.sm and .mline.sm,
   .chev, .fadebot, .fadetop, .emptymsg, .actions, .btn, .blabel, .btn.red,
   .band4 to .band7, .dwotd, .tag-ring), wide_my_cards.html for a computer
   and a tablet on its side (.mctl, .mfilters, .mcount, .mlist1, .mscroll,
   .mempty, .wact), overlays_and_end_states.html for the pop-ups (.scrim,
   .dlg, .dt, .db, .db.warn, .dbtns, .dbtn, .dbtn.blue, .dbtn.red,
   .dbtn.quiet) and its accent picker for the popovers (.apick, .arow,
   .atick), every pop-up flat as Study's (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; a place my_cards.js
   computes (a popover's, the bean's) 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. */

/* ══ THE PAGE: nav's body, a column. Upright the head is 123 px, pinned:
   search 40 · 8 · filters 34 · 8 · count 32 · hairline 1 (D569). ══ */
.mc-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.mc-head {
  flex: none;
}
.mc-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The search, ABOVE the filters (D569). */
.mc-search {
  height: 40px;
  margin: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #2C3850;
  border-radius: 12px;
  background: #161F30;
}
.mc-sicon {
  flex: none;
  font-size: 14px;
  color: #6E7E99;
}
/* The icon set's drawings (the_icon_set.html, ART_FIX 0002; D1308), each
   the size of the symbol it replaces as the icon set's .ic draws it: 1.18
   em of its line, sitting .2 em below the line's baseline; the tick in a
   check box 15 px and white (.cbox .ic), the row's arrow 1 em (.chev .ic). */
.mc-icon {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  vertical-align: -.2em;
  overflow: visible;
}
.mc-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  /* 16 px typed, so a phone never zooms the page to the field; the word
     Search at the drawing's 14.5 (my_cards.html .sph; ART_FIX 0001). */
  font-size: 16px;
  color: #EAF0FA;
  -webkit-user-select: text;
  user-select: text;
}
.mc-input::placeholder {
  font-size: 14.5px;
  color: #6E7E99;
  opacity: 1;
}
.mc-input::-webkit-search-cancel-button,
.mc-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* The three chips, each one job (D562); the caret DRAWN, a 2 px stroke,
   never a glyph (D579). */
.mc-filters {
  height: 34px;
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 0 14px;
}
.mc-chip {
  flex: 1;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #2C3850;
  border-radius: 10px;
  background: #1A2334;
}
.mc-ctext {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 500;
  color: #AEBBD0;
}
.mc-caret {
  flex: none;
  width: 7px;
  height: 7px;
  margin: -4px 1px 0 0;
  transform: rotate(45deg);
  border-right: 2px solid #6E7E99;
  border-bottom: 2px solid #6E7E99;
}
.mc-chip.mc-set {
  border-color: #3C5480;
  background: #1E2C44;
}
.mc-chip.mc-set .mc-ctext {
  font-weight: 600;
  color: #EAF0FA;
}
/* D563: a deck with no weeks dims the week chip; it keeps its shape. */
.mc-chip.mc-off {
  border-color: #212938;
  background: #141B29;
  cursor: default;
}
.mc-chip.mc-off .mc-ctext {
  color: #4A5670;
}
.mc-chip.mc-off .mc-caret {
  border-color: #3A445A;
}

/* The count row: the select-all box on the 32 px rail, n selected beside
   it, showing X of N on the right (D561: a zero, never a dash). */
.mc-count {
  height: 32px;
  margin-top: 8px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-cleft {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mc-show,
.mc-selnum {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.mc-show {
  font-weight: 500;
  color: #6E7E99;
}
.mc-selnum {
  font-weight: 700;
  color: #EAF0FA;
}
.mc-selnum[hidden] {
  display: none;
}
.mc-hline {
  height: 1px;
  background: #1C2740;
}

/* A check box, 22 px, and a tap area 11 px larger each way around it. */
.mc-check {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}
.mc-check::before {
  content: "";
  position: absolute;
  inset: -11px;
}
.mc-box {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #46536E;
  border-radius: 6px;
}
.mc-tick {
  visibility: hidden;
  color: #FFFFFF;
}
.mc-tick .mc-icon {
  display: block;
  width: 15px;
  height: 15px;
}
.mc-box.mc-on {
  border-color: #4E9BF0;
  background: #4E9BF0;
}
.mc-box.mc-on .mc-tick {
  visibility: visible;
}

/* ══ THE LIST: P1-shaped rows (D559), 14 px inset, 10 px apart, 10 px from
   the hairline; it scrolls under the pinned head, with §1e's bean. ══ */
.mc-list {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.mc-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mc-scroll::-webkit-scrollbar {
  display: none;
}

/* ⛔ EVERY ROW IS EXACTLY TWO LINES AND 68 px (D566, D567): 1 + 6.4 + 23
   + 30.2 + 6.4 + 1. The line boxes are pixels, so the 85% step shrinks the
   letters and never the line. */
.mc-row {
  position: relative;
  flex: none;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  /* A list bubble: the light, shell.css's tokens (D1699). */
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}
.mc-row.mc-sel {
  border-color: #3C5480;
  background-color: #20304A;
}
/* D570: 14 px kept for the chevron, not 22. */
.mc-text {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}
.mc-eng {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
  font-weight: 500;
  line-height: 23px;
  color: #EAF0FA;
}
/* The tag follows the Burmese, 7 px after it, and never wraps or gives:
   the Burmese is what gives (an ellipsis), never the tag. */
.mc-line {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 7px;
}
.mc-bur {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 30.2px;
  color: #8FA0B8;
}
.mc-tag {
  flex: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: .3px;
}
/* The 85% step (my_cards.js's FIT): the whole of line 2 together, the tag
   included (D567). */
.mc-eng.mc-sm {
  font-size: 14.45px;
}
.mc-line.mc-sm .mc-bur {
  font-size: 13.2px;
}
.mc-line.mc-sm .mc-tag {
  font-size: 10.2px;
}
/* D1577: a free word wears a ring in its own color, no brackets. */
.mc-ring {
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 9px;
  line-height: 16px;
}
.mc-chev {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #5C6B85;
}
.mc-chev .mc-icon {
  width: 1em;
  height: 1em;
  vertical-align: -.15em;
}

/* §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. */
.mc-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 4;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}
.mc-bean-track.mc-scrolls {
  visibility: visible;
}
.mc-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}
.mc-fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
}
.mc-fade.mc-on {
  visibility: visible;
}
.mc-fade-top {
  top: 0;
  height: 40px;
  background: linear-gradient(to bottom, #0E1526, rgba(14, 21, 38, 0));
}
.mc-fade-bottom {
  bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(14, 21, 38, 0), #0E1526);
}

/* D568: the empty result says so, 24% down the region's own height (the
   list less its 10 px top gap): 118 px of 493 on the phone drawn. ⛔ Never
   a padding in %, which reads the width. */
.mc-empty {
  position: absolute;
  left: 30px;
  right: 30px;
  top: calc((100% - 10px) * .24);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #8FA0B8;
}
.mc-empty[hidden] {
  display: none;
}

/* The Founder's ruling 2: m1.class_running above the bar's slot. */
.mc-notice {
  flex: none;
  margin-top: 10px;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #AEBBD0;
}
.mc-notice[hidden] {
  display: none;
}
.mc-notice .tt-piece {
  display: block;
}
.mc-notice [lang="my"] .tt-text p,
.mc-notice translate-text[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

/* ══ THE BULK BAR (D565): in the column, in the slot of Study's answer
   buttons, 84 px with 10 px above (and the page's 10 below); never over the
   list, never drawn when nothing is checked. Delete the one red. ══ */
.mc-bar {
  flex: none;
  height: 84px;
  display: flex;
  gap: 9px;
  margin-top: 10px;
  padding: 0 14px;
}
.mc-bar[hidden] {
  display: none;
}
.mc-act {
  flex: 1;
  min-width: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: #C8D3E4;
}
.mc-alabel {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.mc-act.mc-red {
  border-color: #ED6A76;
  background: rgba(237, 106, 118, .07);
  color: #ED6A76;
}

/* ══ THE POPOVERS (§1c, the accent picker's family): 198 px, 50 px rows, ✓
   on the choice, no scrim; under its chip, or over the Move to button. ══ */
.mc-pop {
  position: absolute;
  z-index: 7;
  min-width: 198px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #37476B;
  border-radius: 16px;
  background: #22304A;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  scrollbar-width: none;
}
.mc-pop::-webkit-scrollbar {
  display: none;
}
.mc-opt {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #35456A;
  text-align: left;
  white-space: nowrap;
  font-size: 16px;
  color: #E1E8F4;
}
.mc-opt:last-child {
  border-bottom: 0;
}
.mc-otick {
  flex: none;
  margin-left: auto;
  font-size: 15px;
  color: #6FAEFF;
}

/* ══ THE POP-UPS (§1c, D607): the scrim over the whole frame, the tab bar
   and the tiles included, the dialog in its middle, 330 px, 54 px buttons,
   stacked when three and side by side when two; flat (D1699). ══ */
.mc-scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}
.mc-dialog {
  position: fixed;
  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-color: #22304A;
  text-align: center;
}
.mc-dialog .tt-piece {
  display: block;
}
.mc-dialog .tt-text p:first-child {
  /* The headlines' font (ART_FIX 0001, the Founder's ruling 3;
     surface_numbers_and_type.html .ty-head :is(.dtitle)). */
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}
.mc-dialog .tt-text p + p,
.mc-dialog .mc-free .tt-text p,
.mc-dialog .mc-warn .tt-text p {
  margin-top: 9px;
  /* O6's second line is its own piece, so its first paragraph is no title:
     the body's font, never the headlines' (ART_FIX 0001). */
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.5;
  color: #AEBBD0;
}
.mc-dialog .mc-warn .tt-text p {
  color: #EC9BA3;
}
.mc-dialog [lang="my"] .tt-text p,
.mc-dialog translate-text[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}
.mc-dbtns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.mc-dbtns.mc-two {
  flex-direction: row;
}
.mc-dbtn {
  flex: none;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
}
.mc-two .mc-dbtn {
  flex: 1;
}
.mc-dbtn.mc-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}
.mc-dbtn.mc-dred {
  border-color: #ED6A76;
  background: rgba(237, 106, 118, .08);
  color: #ED6A76;
}
.mc-dbtn.mc-quiet {
  background: transparent;
  color: #9BA7BC;
}

/* O8, Move to (overlays_and_end_states.html .dlg, .dt, .dlist, .dlrow;
   ART_FIX 0001): the title, then a list 16 px under it, each row 15 px
   above and below its 16 px word, a 1 px rule over the first and under
   every row. */
.mc-dialog .mc-dt {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}
.mc-dlist {
  margin-top: 16px;
  border-top: 1px solid #35456A;
}
.mc-dlrow {
  display: block;
  width: 100%;
  padding: 15px 2px;
  line-height: normal;
  border-bottom: 1px solid #35456A;
  text-align: left;
  font-size: 16px;
  color: #E1E8F4;
}

/* ══ WIDE (CONCEPT_ART §1g; M1 to M5): one row of controls, 44 px, 24 px
   from each side, the search on the left half and the three chips sharing
   the right; the count 42 px in; the list's rows the full width less 24 px
   each side; the four actions in the middle of the tiles' row. ══ */
.nv-wide .mc-controls {
  height: 44px;
  margin: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.nv-wide .mc-search {
  height: 44px;
  margin: 0;
  border-radius: 13px;
}
.nv-wide .mc-sicon,
.nv-wide .mc-input {
  font-size: 16px;
}
.nv-wide .mc-filters {
  height: 44px;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.nv-wide .mc-chip {
  height: 44px;
  gap: 7px;
  padding: 0 10px;
  border-radius: 12px;
}
.nv-wide .mc-ctext {
  font-size: 14.5px;
}
.nv-wide .mc-count {
  padding: 0 42px;
}
.nv-wide .mc-show,
.nv-wide .mc-selnum {
  font-size: 14px;
}
.nv-wide .mc-scroll {
  padding: 10px 24px 0;
}
.nv-wide .mc-bean-track {
  top: 20px;
  right: 9px;
}
.nv-wide .mc-empty {
  top: 24%;
  font-size: 22px;
}
/* Wide, the four actions sit in the bottom row's middle, which nav draws
   (ART_FIX 0001): the column's own bar is not drawn. */
.nv-wide .mc-bar {
  display: none;
}
.nv-wide .mc-alabel {
  font-size: 20px;
}
.nv-wide .mc-notice {
  font-size: 16px;
}

/* ══ THE TAG COLORS, declared last so a tag's color wins (CONCEPT_ART §1's
   band palette and deck palette; D550, D564, D620): a course by its band, a
   starter pack by its level, the Word of the day baby blue. ⛔ No gray tag:
   a tag the list does not know takes the line's own. ══ */
.mc-earth {
  color: #35E07E;
}
.mc-water {
  color: #4E9BF0;
}
.mc-fire {
  color: #ED6A76;
}
.mc-air {
  color: #F2C14E;
}
.mc-daily {
  color: #8FD3F4;
}
.mc-other {
  color: #8FA0B8;
}
