/* The personal page /me/ (GeojoLu 2026-11-18), after me-ref-806848089538218540: a cream block with the time left, the
   credit rows and thin-line bars; a full-width dark block to the bottom of the screen with the heatmap. Display digits
   (Chakra Petch). Fixed sizes (CLS 0). Layouts, widths in CSS px:
   - phone      < 640: one column.
   - large      640-1023: the same, wider margins.
   - computer   >= 1024: time left and credit side by side in the cream block; the heatmap full width below. */
body:has(.mp){background:#F5E9DD}   /* the cream behind the page before the skin loads; same value as --st-cream */
.mp{--pad:clamp(1.25rem,6vw,3rem);min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
.me-up{display:grid;align-content:start;padding:0 max(var(--pad),env(safe-area-inset-right)) 1.6rem max(var(--pad),env(safe-area-inset-left))}
.mp-tag{justify-self:stretch;height:20px;display:grid;justify-items:center;align-items:start;overflow:visible;min-width:0}   /* webchat's <clw-capsule edge="top"> (webchat #1859): 20px tall (--clw-edge-h), width follows its words, the tab's curved ends reach 20px past each side; it hangs from the top edge. Fixed row, centred, so nothing moves (CLS 0). Empty until the release is vendored */
.mp-top{display:flex;justify-content:space-between;align-items:center;height:calc(3.5rem + 12px)}
.mp-avatar{display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;background:var(--st-ink);color:var(--st-cream);font-size:.9rem;object-fit:cover}
.mp-home{font-size:.8rem;font-weight:600;color:var(--st-ink);text-decoration:none}
.me-name{margin:1rem 0 1.4rem;font-size:.85rem;font-weight:600;height:1.5em;line-height:1.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.lbl{margin:0;font-size:.72rem;letter-spacing:.06em;height:1.5em;line-height:1.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* fixed line box: a CJK fallback font is taller than the mono, and must not push what follows (CLS 0) */
.num{font-family:var(--st-display);font-weight:500;letter-spacing:-.01em;white-space:nowrap;line-height:1}
.num-dec{opacity:.4}
.num-unit{margin-left:.12em;font-size:.32em;letter-spacing:.04em;opacity:.4;text-transform:uppercase}   /* DAYS after the big number, faint like the decimals, on its baseline */
.num-xl{display:block;font-size:clamp(4rem,20vw,7rem);height:1em;margin:.6rem 0 0}
.num-m{font-size:clamp(1.5rem,6vw,2.2rem)}

.me-figs{display:grid;gap:2.2rem}
.tm{display:grid;grid-template-columns:1fr auto;align-items:start}
.tm .num-xl{grid-column:1/-1}
.tm-head{display:grid;min-width:0}
.tm-until{font-size:.62rem;opacity:.55}   /* the member's end date, line two: same fixed line box as .lbl (CLS 0) */
.tm-go{width:3.2rem;height:3.2rem;border-radius:50%;display:grid;place-items:center;color:var(--st-ink);
  background:color-mix(in srgb,var(--st-ink) 9%,transparent);transition:transform var(--st-dur) var(--st-ease)}
.tm-go svg{width:1.2rem;height:1.2rem}
.tm-go[aria-disabled=true]{opacity:.45;cursor:default}

/* credit: BUDGET (the limit, full height) and USED (height = used / budget), side by side as in the reference */
.cr{display:grid;gap:.6rem}
.cr-chart{position:relative;height:15rem;--rule:1px solid color-mix(in srgb,var(--st-ink) 45%,transparent);--row:2.6rem;--room:calc(15rem - var(--row) - var(--row))}
.kv{position:absolute;left:0;display:flex;justify-content:space-between;align-items:flex-end;height:var(--row);padding-bottom:.35rem;border-bottom:var(--rule);font-size:.78rem}
.kv-budget{top:0;right:0}
.kv-used{right:40%;top:calc(var(--row) + var(--room) * (1 - var(--used)))}
.lines{position:absolute;bottom:0;background:repeating-linear-gradient(90deg,var(--st-ink) 0 1px,transparent 1px 9px);opacity:.55}
.lines-budget{right:0;width:38%;top:var(--row)}
.cr-chart[data-empty] .lines{visibility:hidden}   /* a real account with no budget yet: empty, sizes kept (CLS 0) */
.lines-used{right:41%;width:24%;top:calc(var(--row) + var(--row) + var(--room) * (1 - var(--used)))}

/* the dark block: the heatmap */
.me-down{background:var(--st-seam);color:var(--st-cream);min-height:14rem;display:grid;align-content:start;gap:1rem;
  padding:1.6rem max(var(--pad),env(safe-area-inset-right)) calc(1.4rem + env(safe-area-inset-bottom)) max(var(--pad),env(safe-area-inset-left))}
.hm{display:grid;gap:.6rem}
.hm-tip{margin:0;height:1.5em;line-height:1.5em;font-size:.72rem;opacity:.8}
.hm-scroll{overflow-x:auto;scrollbar-width:thin;padding-bottom:.4rem}
.hm-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,auto);grid-auto-columns:minmax(11px,1fr);gap:3px;min-width:calc(53 * 14px)}
.hm-grid i{display:block;aspect-ratio:1;border-radius:2px}
.hm-c{cursor:pointer}
.hm-c.l0{background:color-mix(in srgb,var(--st-cream) 12%,transparent)}
.hm-c.l1{background:var(--st-deep)}
.hm-c.l2{background:var(--st-emerald)}
.hm-c.l3{background:var(--st-cream)}   /* on the dark block more use = more light: dim, deep green, emerald, cream */
.me-demo{margin:0;font-size:.6rem;opacity:.55}

@media (min-width:1024px){
  .me-figs{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);column-gap:4rem;align-items:start}
}
/* webchat's capsule colours, set through its own two variables (lobe, via cooper 11-18; webchat's files untouched):
   this page's top is cream, so the tab is ink with cream words (13.4:1); a cream tab would not show here */
.mp-tag clw-capsule{--clw-tab-fill:var(--st-ink);--clw-tab-ink:var(--st-cream)}
/* the scrollbar keeps its room from the start: a page that becomes taller than the screen after data arrives (or with a
   taller language) must not narrow by a classic scrollbar later (CLS 0; overlay scrollbars take no room anyway) */
html:has(.mp){scrollbar-gutter:stable}
