/* The morphing card story (TASK-3399, 2026-11-11), for the web. Lifted from
   docs/design/home-first-time-3394/board.html § 2b (the .m-prefixed block and the .story, .exm, .shl, .chipc, .sfoot,
   .dots, .minid, .lf and .thumb rules it reads), scoped under .cstory so it cannot collide with a page, and with
   .phone.light rewritten as .light. Needs story/tokens.css. Moves by transform and opacity only, except G, which
   animates its plates' size (the board's own note against it). Every number's source is in that board's § 2b header. */
.cstory { position: relative; width: 100%; }
.cstory .mst { width: 314px; border-radius: 20px; background: var(--ground); position: absolute; left: 0; top: 0; transform-origin: 0 0; -webkit-user-select: none; user-select: none; }
.cstory.tap .mst { cursor: pointer; }
.cstory .me { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.cstory .me.flip { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cstory .mln { opacity: 0; }
.cstory .exm { position: absolute; left: 14px; top: 14px; z-index: 20; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--surface2); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cstory .exm::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: var(--amber); }
.cstory .shl { position: absolute; left: 18px; right: 18px; bottom: 46px; z-index: 21; font-size: 26px; font-weight: 600; letter-spacing: -0.52px; line-height: 31px; color: var(--ink); }
.cstory .chipc { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 6px; border-radius: 16px; background: var(--surface2); font-size: 19px; font-weight: 600; vertical-align: 2px; letter-spacing: -0.1px; }
.cstory .thumb { display: block; width: 30px; height: 20px; border-radius: 5px; flex: none; position: relative; overflow: hidden; box-shadow: 0 3px 8px rgba(0,0,0,0.3); }
.cstory .sfoot { position: absolute; left: 18px; right: 14px; bottom: 12px; height: 26px; z-index: 22; display: flex; align-items: center; justify-content: space-between; }
.cstory .dots { display: flex; gap: 6px; align-items: center; }
.cstory .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink); opacity: .25; }
.cstory .dots i.on { width: 18px; opacity: 1; }
.cstory .minid { width: 32px; height: 32px; border-radius: 16px; background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: var(--castPlate); }
.cstory svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cstory .minid svg { width: 14px; height: 14px; stroke-width: 2.6; }
.cstory .lf { width: 36px; height: 44px; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: var(--castPlate); color: var(--ink); }
.cstory .lf .dw { font-size: 12px; font-weight: 600; color: var(--ink3); }
.cstory .lf .dd { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.cstory .mgl { border-radius: 50%; pointer-events: none; }
.cstory .mgl.p { background: radial-gradient(closest-side, rgba(184,205,246,0.20), rgba(184,205,246,0)); }
.cstory .mgl.m { background: radial-gradient(closest-side, rgba(139,217,172,0.20), rgba(139,217,172,0)); }
.cstory .mgl.a { background: radial-gradient(closest-side, rgba(233,196,142,0.18), rgba(233,196,142,0)); }
.light .cstory .mgl.p { background: radial-gradient(closest-side, rgba(120,150,220,0.20), rgba(120,150,220,0)); }
.light .cstory .mgl.m { background: radial-gradient(closest-side, rgba(40,109,72,0.16), rgba(40,109,72,0)); }
.light .cstory .mgl.a { background: radial-gradient(closest-side, rgba(128,88,28,0.16), rgba(128,88,28,0)); }
.cstory .mpl { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 12px rgba(0,0,0,0.38); }
.light .cstory .mpl { box-shadow: 0 5px 12px rgba(30,22,20,0.22); }
.cstory .mpl::after { content: ''; position: absolute; inset: 0; background: var(--satin); pointer-events: none; }
.cstory .chipd { position: absolute; left: 11px; top: 19px; width: 15px; height: 11px; border-radius: 3px; background: rgba(255,226,170,.78); z-index: 2; }
.cstory .thumb .chipd { display: none; }
.cstory .mpl .lb { position: absolute; z-index: 3; color: #fff; font-weight: 600; white-space: nowrap; opacity: 0; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.cstory .mpl .nm { left: 14px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 15px; }
.cstory .mpl .dy { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 19px; letter-spacing: -0.3px; line-height: 20px; }
.cstory .mpl .dy small { font-size: 12px; font-weight: 600; opacity: .85; line-height: 13px; }
.cstory .mpl .py { inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.cstory .mpl .py small { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
.cstory .mpl .py b { font-size: 24px; font-weight: 600; letter-spacing: -0.4px; }
.cstory .mpk { border-radius: 14px 14px 24px 24px; background: var(--charcoal); box-shadow: var(--castTile); }
.cstory .mpk::before { content: ''; position: absolute; left: 14px; right: 14px; top: 11px; border-top: 1.5px dashed var(--ghost); }
.cstory .mpk::after { content: ''; position: absolute; left: 50%; top: 26px; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; background: var(--peri); }
.light .cstory .mpk::after { background: #7F9CDD; }
.cstory .mpill { height: 32px; border-radius: 16px; background: var(--ink); color: var(--onInk); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: var(--castR); letter-spacing: -0.2px; }
.cstory .mpill.am { background: var(--amber); color: #2A1D08; height: 28px; border-radius: 14px; font-size: 15px; }
.light .cstory .mpill.am { color: #FFF; }
.cstory .mpill.q { background: var(--surface2); color: var(--ink2); height: 24px; border-radius: 12px; font-size: 12px; box-shadow: none; letter-spacing: 0; }
.cstory .mslip { border-radius: 12px; background: var(--paperBlush); color: #1F1714; box-shadow: 0 8px 18px rgba(0,0,0,0.38); padding: 12px 12px 0; }
.light .cstory .mslip { background: #FFFFFF; box-shadow: 0 8px 18px rgba(30,22,20,0.16); }
.cstory .mslip .ck { width: 24px; height: 24px; border-radius: 12px; background: #286D48; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.cstory .mslip .ck svg { width: 14px; height: 14px; stroke-width: 3; }
.cstory .mslip .k { display: block; font-size: 12px; font-weight: 600; color: rgba(31,23,20,0.62); margin-top: 9px; line-height: 14px; }
.cstory .mslip .fg { display: flex; align-items: baseline; gap: 7px; margin-top: 1px; }
.cstory .mslip .fg b { font-size: 30px; font-weight: 600; letter-spacing: -0.8px; line-height: 34px; }
.cstory .mslip .fg s { font-size: 15px; font-weight: 600; color: rgba(31,23,20,0.45); }
.cstory .mslip .tr { display: block; height: 7px; border-radius: 4px; background: rgba(31,23,20,0.13); margin-top: 6px; position: relative; }
.cstory .mslip .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 9%; min-width: 9px; border-radius: 4px; background: #286D48; }
.cstory .mslip.row { padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.cstory .mslip.row b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cstory .mslip.row .tr { flex: 1; margin-top: 0; }
.cstory .mck { background: var(--mint); color: #0F2A1B; width: 30px; height: 30px; border-radius: 15px; box-shadow: var(--castPlate); display: flex; align-items: center; justify-content: center; }
.light .cstory .mck { color: #fff; }
.cstory .mck svg { width: 16px; height: 16px; stroke-width: 3; }
.cstory .mbar { height: 14px; border-radius: 7px; background: rgba(255,255,255,0.20); }
.light .cstory .mbar { background: #D8D0C9; }
.cstory .mbar.am { background: linear-gradient(90deg, #C9A061, var(--amber)); }
.light .cstory .mbar.am { background: linear-gradient(90deg, #B98D4A, #80581C); }
.cstory .mkick { font-size: 13px; font-weight: 600; color: var(--ink2); text-align: right; line-height: 18px; white-space: nowrap; }
.cstory .mend { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--mint); }
.cstory .mring { border-radius: 24px; box-shadow: 0 0 0 2px var(--mint); }
.cstory .mbk { border-radius: 16px; background: var(--charcoal); box-shadow: var(--castTile); color: var(--ink); padding: 12px 14px; }
.light .cstory .mbk { background: #FFFFFF; }
.cstory .mbk small { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); line-height: 15px; white-space: nowrap; }
.cstory .mbk b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.4px; line-height: 28px; margin-top: 2px; white-space: nowrap; }
.cstory .mbk .stp { position: absolute; right: 12px; top: 12px; opacity: 0; }
.cstory .mbk.sm { border-radius: 10px; padding: 0; overflow: hidden; }
.cstory .mbk.sm small { position: absolute; left: 8px; bottom: 6px; }
.cstory .mbk.sm svg { position: absolute; inset: 0; }
.cstory .mbdg { width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: var(--onInk); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--castPlate); }
.cstory .mgh { border: 1.5px dashed var(--ghost); border-radius: 12px; background: var(--ghostFill); }
.cstory .mwk { display: flex; font-size: 12px; font-weight: 600; color: var(--ink3); }
.cstory .mwk span { width: 41px; text-align: center; }
.cstory .mtrk { height: 16px; border-radius: 8px; background: var(--surface2); }
.light .cstory .mtrk { background: #D8D0C9; }
.cstory .mtx { white-space: nowrap; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.cstory .mtx b { font-size: 30px; font-weight: 600; letter-spacing: -0.8px; }
.cstory .mtx small { font-size: 13px; font-weight: 600; color: var(--ink2); }
.cstory .mtx s { font-size: 15px; font-weight: 600; color: var(--ink3); }

/* M · one idea a page (TASK-3404 merge board): the parts its four new beats and its calmer pages read. */
.cstory .mpill.mi { background: var(--mint); color: #0E2A1A; height: 28px; border-radius: 14px; font-size: 14px; letter-spacing: 0; }
.light .cstory .mpill.mi { color: #fff; }
.cstory .mbub { border-radius: 50%; background: var(--surface2); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; line-height: 15px; text-align: center; box-shadow: var(--castTile); }
.cstory .mbub.p { background: var(--peri); color: #0F1830; }
.cstory .mbub b { font-size: 15px; font-weight: 600; }
.cstory .mbub small { font-size: 14px; font-weight: 600; opacity: .7; margin-top: 2px; }
.cstory .mrow { color: var(--ink); }
.cstory .mrow small { position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 600; color: var(--ink2); line-height: 18px; white-space: nowrap; }
.cstory .mrow b { position: absolute; right: 0; top: 0; font-size: 16px; font-weight: 600; line-height: 18px; letter-spacing: -0.2px; }
.cstory .mrow i { position: absolute; left: 0; bottom: 0; height: 14px; border-radius: 7px; background: var(--ink); }
.cstory .mrow.gh i { background: var(--ghostFill); border: 1.5px dashed var(--ghost); box-sizing: border-box; }
.cstory .mrep { border-radius: 14px; background: var(--surface); box-shadow: var(--castPlate); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.cstory .mrep i { width: 26px; height: 26px; border-radius: 13px; background: var(--peri); display: flex; align-items: center; justify-content: center; }
.cstory .mrep i::before { content: ''; border-left: 8px solid #0F1830; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.cstory .mrep.gh { background: var(--ghostFill); border: 1.5px dashed var(--ghost); box-shadow: none; color: var(--ink3); box-sizing: border-box; }
.cstory .mrep.gh i { background: none; box-shadow: inset 0 0 0 1.5px var(--ghost); }
.cstory .mrep.gh i::before { border-left-color: var(--ink3); }
.cstory .mlab { font-size: 12px; font-weight: 600; color: var(--ink3); white-space: nowrap; text-align: center; line-height: 16px; }
