/* You page charts (docs/chart-designs/: personality, blind-spots, depth-of-knowledge, when-you-learn, highlights). */
/* Colours that have no shared token yet. */
:root { --ring-open: #a99d90; --pole-line: #ece7e0; --pole-mid: #c9c2b8; }
@media (prefers-color-scheme: dark) { :root { --ring-open: #8a8278; --pole-line: #36332f; --pole-mid: #5a554e; } }

/* Every You chart sits in a size container, so it lays out by the card's width (chat open or folded, phone). */
.mc-you-c { container-type: inline-size; min-width: 0; }
.mc-you-c > .mc-card2 { margin-top: 0; }
section.mc-you-c, .v2 .mc-you-c { margin-top: 26px; }
.mc-you .mc-note2 { white-space: normal; }
.mc-you .mc-head-row .v-info.mc-on { color: var(--accent); }
.mc-you .mc-note2 .mc-label { margin-top: 2px; }
.mc-you-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mc-you-steps li { position: relative; padding: 0 0 10px 20px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.mc-you-steps li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lv2); }
.mc-you-steps li::after { content: ""; position: absolute; left: 6.5px; top: 16px; bottom: 0; width: 1px; background: var(--tick); }
.mc-you-steps li:last-child { padding-bottom: 0; } .mc-you-steps li:last-child::after { display: none; }
.mc-you .mc-note2 .mc-act { margin-top: 2px; }

/* two-pole: Your personality */
.mc-tp-rows { gap: 2px; }
.mc-tp-item { display: flex; flex-direction: column; }
.mc-tp-row { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 0; padding: 6px 10px; }
.mc-tp-top { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.mc-tp-badge { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.mc-tp-name { flex: 1 1 auto; font-size: 14.5px; font-weight: 600; }
.mc-tp-v { font-size: 16px; font-weight: 700; min-width: 24px; text-align: right; }
.mc-tp-band { font-size: 13px; color: var(--muted); min-width: 44px; }
.mc-tp-poles { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-size: 12.5px; color: var(--muted); }
.mc-tp-poles span:last-child { text-align: right; }
.mc-tp-poles .lean { font-weight: 650; color: var(--ink); }
.mc-tp-track { position: relative; display: block; width: 100%; height: 18px; }
.mc-tp-line { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--pole-line); }
.mc-tp-mid { position: absolute; left: 50%; top: 2px; width: 1px; height: 14px; background: var(--pole-mid); }
.mc-tp-dot { position: absolute; top: 0; width: 18px; height: 18px; margin-left: -9px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--lime-ink); background: var(--lime); }
.mc-tp-below { margin: 4px 0 10px; padding: 12px 14px; gap: 10px; background: var(--soft); border: 1px solid var(--line); }
.mc-tp-ind { display: grid; grid-template-columns: minmax(0, 1fr) 120px 32px; gap: 4px 12px; align-items: center; }
.mc-tp-ind b { font-size: 14px; font-weight: 600; }
.mc-tp-ind .mc-tp-ival { font-size: 14px; font-weight: 650; text-align: right; }
.mc-tp-ind .mc-tp-ival.none { color: var(--muted); font-weight: 500; }
.mc-tp-ibar { position: relative; height: 6px; border-radius: 3px; background: var(--pole-line); overflow: hidden; }
.mc-tp-ibar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--lv2); }
.mc-tp-ind p { grid-column: 1 / -1; margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* stacked-levels: Depth of knowledge */
.mc-sl { gap: 14px; }
.mc-sl-key { padding-left: 0; gap: 4px 14px; }
.mc-sl-key > span { min-height: 28px; gap: 6px; border-radius: 6px; padding: 0 2px; }
.mc-sl-key > span.mc-on { color: var(--ink); font-weight: 600; }
.mc-sl-rows { gap: 0; }
.mc-sl-row { grid-template-columns: 120px minmax(0, 1fr) 96px; min-height: 44px; padding: 4px 8px; border-radius: 8px; }
.mc-sl-name { font-size: 14px; }
.mc-sl-track { display: flex; height: 14px; min-width: 0; }
.mc-sl-bar { display: flex; gap: 2px; height: 14px; }
.mc-sl-seg { height: 14px; min-width: 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--lv-edge); }
.mc-sl-seg.lv0 { background: var(--lv0); } .mc-sl-seg.lv1 { background: var(--lv1); } .mc-sl-seg.lv2 { background: var(--lv2); } .mc-sl-seg.lv3 { background: var(--lv3); } .mc-sl-seg.lv4 { background: var(--lv4); }
.mc-sl-num { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.mc-sl-num b { font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.mc-sl-num span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* heat-grid: When you learn. Wide: days down, hours across. */
.mc-hg-grid { display: grid; grid-template-columns: 34px repeat(24, minmax(24px, 1fr)); grid-template-rows: repeat(7, 28px) auto; gap: 2px 1px; }
.mc-hg-c { grid-row: calc(var(--d) + 1); grid-column: calc(var(--h) + 2); border-radius: 4px; cursor: pointer; min-width: 0; }
.mc-hg-c.mc-on { box-shadow: 0 0 0 2px var(--ink); position: relative; z-index: 1; }
.mc-hg-c:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mc-hg-day { grid-row: calc(var(--d) + 1); grid-column: 1; align-self: center; font-size: 12.5px; color: var(--muted); }
.mc-hg-hr { grid-row: 8; grid-column: calc(var(--h) + 2); margin-top: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; visibility: hidden; }
.mc-hg-hr.six { visibility: visible; }
.mc-hg .l0 { --hg: var(--hover); } .mc-hg .l1 { --hg: var(--lv0); } .mc-hg .l2 { --hg: var(--lv1); } .mc-hg .l3 { --hg: var(--lv2); } .mc-hg .l4 { --hg: var(--lv4); }
.mc-hg-c, .mc-hg-k { background: var(--hg); }
.mc-hg-ramp { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.mc-hg-ramp > span:first-child { margin-right: 4px; } .mc-hg-ramp > span:last-child { margin-left: 4px; }
.mc-hg-k { width: 16px; height: 16px; border-radius: 4px; }

/* list: Blind spots, Highlights */
.mc-ls { gap: 12px; }
.mc-ls-rows { display: flex; flex-direction: column; }
.mc-ls-row { grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; min-height: 0; padding: 12px 6px; border-radius: 8px; border-top: 1px solid var(--line); }
.mc-ls-row.wk { grid-template-columns: 34px minmax(0, 1fr) 96px minmax(90px, auto); align-items: center; gap: 14px; }
.mc-ls-side { display: contents; }
.mc-ls-ring { width: 14px; height: 14px; margin-top: 3px; box-sizing: border-box; border-radius: 50%; border: 2px dashed var(--ring-open); }
.mc-ls-n { font-size: 18px; font-weight: 700; color: var(--accent); }
.mc-ls-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-ls-t b { font-size: 14.5px; font-weight: 650; }
.mc-ls-t > span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mc-ls-wk .mc-ls-t > span { font-size: 13px; line-height: 1.45; }
.mc-ls-bars { display: flex; align-items: flex-end; gap: 3px; height: 32px; border-bottom: 1px solid var(--tick); }
.mc-ls-bars span { flex: 1 1 0; border-radius: 2px 2px 0 0; background: var(--lv1); }
.mc-ls-bars span.now { background: var(--accent); }
.mc-ls-tot { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.mc-ls-tot b { font-size: 15px; font-weight: 650; white-space: nowrap; }
.mc-ls-tot span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* Narrow column (a laptop with the chat open is ~700px; it still fits the wide heat grid). */
@container (max-width: 683px) {
  /* The heat grid turns: hours down, days across, so every hour stays big enough to tap. */
  .mc-hg-grid { grid-template-columns: 44px repeat(7, minmax(24px, 1fr)); grid-template-rows: auto repeat(24, 24px); gap: 2px; }
  .mc-hg-c { grid-row: calc(var(--h) + 2); grid-column: calc(var(--d) + 2); }
  .mc-hg-day { grid-row: 1; grid-column: calc(var(--d) + 2); text-align: center; padding-bottom: 4px; }
  .mc-hg-hr { grid-row: calc(var(--h) + 2); grid-column: 1; align-self: center; margin: 0; visibility: hidden; }
  .mc-hg-hr.three { visibility: visible; }
}
@container (max-width: 600px) {
  .mc-sl-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 8px; }
  .mc-sl-track { grid-column: 1 / -1; grid-row: 2; }
  .mc-sl-num { flex-direction: row; gap: 8px; align-items: baseline; }
  .mc-ls-row.wk { grid-template-columns: 30px minmax(0, 1fr); row-gap: 10px; }
  .mc-ls-row.wk .mc-ls-side { display: flex; align-items: flex-end; gap: 14px; grid-column: 2; }
  .mc-ls-row.wk .mc-ls-bars { flex: 1 1 auto; max-width: 160px; }
  .mc-ls-row.wk .mc-ls-tot { flex-direction: row; gap: 6px; align-items: baseline; }
  .mc-tp-ind { grid-template-columns: minmax(0, 1fr) 32px; }
  .mc-tp-ibar { grid-column: 1 / -1; grid-row: 2; }
  .mc-tp-ind p { grid-row: 3; }
}
