/* ============================================================
   BLACKLENS — MY CARD (round 500, js/mycard.js): the owner's card, card first, PREVIOUS / NEXT always at the bottom.
   Written for 35–60 year olds on a phone: body 17 px and up, every button 56 px tall or more, light text on dark, one bar to move on.
   ============================================================ */
.mc { position: fixed; inset: 0; z-index: 3500; display: flex; flex-direction: column; background: #121212; color: #f2f2f2;
  font-family: Bahnschrift, 'Segoe UI', sans-serif; font-stretch: 87.5%; font-size: 18px; line-height: 1.3; }
.mc[hidden] { display: none; }
body.mc-on { overflow: hidden; }
.mc svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.mc-top { flex: 0 0 72px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #0c0c0c; border-bottom: 1px solid #454545; }
.mc-back { flex: 0 0 auto; height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 16px 0 8px; border: 1px solid #454545; border-radius: 14px; background: #262626; color: #f2f2f2; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
.mc-title { flex: 1 1 auto; text-align: center; font-size: 21px; font-weight: 700; }
.mc-sp { flex: 0 0 110px; }
.mc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.mc-wait { margin: 20px 0; font-size: 18px; color: #dcdcdc; display: flex; flex-direction: column; gap: 14px; }
.mc-card { display: flex; gap: 14px; }
.mc-pic { flex: 0 0 142px; width: 142px; aspect-ratio: 63 / 88; border-radius: 8px; background: #1c1c1c; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.mc-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mc-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mc-name { font-size: 25px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.mc-line { font-size: 17px; color: #dcdcdc; }
.mc-job { font-size: 15px; color: #bdbdbd; letter-spacing: .5px; }
.mc-grade { align-self: flex-start; display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 6px 12px; border: 2px solid #ab9b6f; border-radius: 10px; background: #17150f; }
.mc-grade b { font-size: 54px; font-weight: 700; line-height: 1; }
.mc-grade span { font-size: 16px; font-weight: 700; letter-spacing: 1px; color: #d8c89a; }
.mc-grade.vd { align-items: flex-start; border-color: #DC4F4C; background: #221413; }
.mc-grade.vd b { font-size: 26px; color: #ff8a86; }
.mc-grade.vd span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: #f2f2f2; }
/* round 520: the grade as BLACKVAULT's picture (assets/PG); a verdict keeps its words beside it */
.mc-grade.pg { flex-direction: row; align-items: center; gap: 14px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.mc-grade.pg img { display: block; flex: 0 0 auto; width: 112px; height: 112px; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .55)); }
.mc-grade.pg.vd span { max-width: 300px; }
.mc-score { font-size: 17px; color: #dcdcdc; } .mc-score b { color: #f2f2f2; }
.mc-cks { display: flex; flex-direction: column; gap: 12px; }
.mc-ck { display: flex; flex-direction: column; gap: 5px; }
.mc-ck .h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 19px; }
.mc-ck .h .v { font-size: 21px; }
.mc-ck .bar { display: block; height: 10px; border-radius: 5px; background: #333; overflow: hidden; }
.mc-ck .bar i { display: block; height: 100%; background: linear-gradient(90deg, #8c7c50, #d8c89a); }
.mc-ck .s { font-size: 17px; color: #dcdcdc; }
.mc-btn { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid #454545; border-radius: 15px; background: #262626; color: #f2f2f2; font: inherit; font-size: 19px; font-weight: 700; letter-spacing: .4px; cursor: pointer; }
.mc-tip { margin: 0; font-size: 16px; color: #bdbdbd; text-align: center; }
/* the bar: always there, three parts */
.mc-bar { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #0f0f0f; border-top: 1px solid #454545; }
.mc-nav { min-height: 62px; display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 0 12px; border: 1px solid #5a5a5a; border-radius: 15px; background: #262626; color: #f2f2f2; font: inherit; cursor: pointer; min-width: 0; }
.mc-nav.nx { justify-content: flex-end; text-align: right; }
.mc-nav > span { display: flex; flex-direction: column; min-width: 0; }
.mc-nav b { font-size: 19px; font-weight: 700; letter-spacing: .4px; }
.mc-nav i { font-style: normal; font-size: 14px; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18vw; }
.mc-nav:disabled { opacity: .35; cursor: default; }
.mc-n { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mc-n b { font-size: 21px; } .mc-n span { font-size: 15px; color: #dcdcdc; }
/* a computer: the picture beside the words, the same bar under them, a column 1000 wide */
@media (min-width: 900px) {
  /* the picture on the left, everything else in one column beside it */
  .mc-body { width: min(1000px, 100%); margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-auto-rows: min-content; gap: 14px 32px; align-content: start; }
  .mc-body > .mc-wait { grid-column: 1 / -1; }
  .mc-card { display: contents; }
  .mc-pic { grid-column: 1; grid-row: 1 / span 5; width: 280px; align-self: start; }
  .mc-id, .mc-cks, .mc-btn, .mc-tip { grid-column: 2; }
  .mc-sp { flex-basis: 160px; }
  .mc-name { font-size: 32px; }
  .mc-id { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; }
  .mc-id .mc-name { flex: 1 0 100%; }
  .mc-id .mc-line, .mc-id .mc-job { flex: 1 0 100%; }
  .mc-cks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
  .mc-grade.pg img { width: 132px; height: 132px; }
  .mc-btn { justify-self: start; padding: 0 28px; }
  .mc-tip { text-align: left; }
  .mc-bar { width: min(1000px, 100%); margin: 0 auto; border: 1px solid #454545; border-bottom: 0; border-radius: 16px 16px 0 0; }
  .mc-nav i { max-width: 260px; }
  .mc-body { width: min(1176px, 100%); }
  .mc-bar { width: min(1176px, 100%); }
}
/* round 522 (operator 2026-12-03: 'Make the Reporting font size smaller (15% smaller) - make sure no scrolling is needed. (but readable)'):
   every part 15 % smaller (zoom on the three parts, never on the fixed .mc itself); on a phone the grade sits beside its BLACKSCORE, the four
   checks are tighter, the PREVIOUS / NEXT tip goes when the screen is short, and under 650 px the checks go two by two — no scrolling from
   390 x 664 (an iPhone with Safari's bars) down to 375 x 548 */
.mc-top, .mc-body, .mc-bar { zoom: .85; }
@media (max-width: 899px) {
  .mc-top { flex-basis: 64px; }
  .mc-body { gap: 12px; padding: 14px 16px; }
  .mc-id { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; }
  .mc-id .mc-name, .mc-id .mc-line, .mc-id .mc-job { flex: 1 0 100%; }
  .mc-grade.pg img { width: 92px; height: 92px; }
  .mc-score { display: flex; flex-direction: column; } .mc-score b { font-size: 26px; line-height: 1.1; }
  .mc-cks { gap: 8px; }
  .mc-ck { gap: 3px; }
  .mc-ck .bar { height: 8px; }
  .mc-bar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 899px) and (max-height: 690px) { .mc-tip { display: none; } }
@media (max-width: 899px) and (max-height: 650px) {
  .mc-cks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .mc-grade.pg img { width: 76px; height: 76px; }
  .mc-top { flex-basis: 58px; }
}
