/* The live model page: the card, and little else. */
.mpage{max-width:880px; margin:0 auto; padding-block:20px 48px;
  padding-left:max(16px, env(safe-area-inset-left, 0px)); padding-right:max(16px, env(safe-area-inset-right, 0px))}
.mtop{display:flex; justify-content:space-between; align-items:center; min-height:28px; margin-bottom:12px; font-size:14px}
.mback{font-weight:600; text-decoration:none}
.mwho{margin-left:auto; font:600 14px var(--mono)}
.mwho a{text-decoration:none}
.mload{color:var(--fg3)}
.mfoot{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:18px; font-size:13px; color:var(--fg3)}
.mfoot strong{color:var(--fg2)}

/* Whose view, against whose original: leads "Your view". */
.m-badge{display:flex; align-items:center; flex-wrap:wrap; gap:8px; font:600 15px var(--sans); margin:2px 0 10px}
.m-avatar{width:28px; height:28px; border-radius:50%}
.m-badge-hint{flex-basis:100%; font-weight:400; font-size:13px}
.mc-saveonly{margin-left:4px}

/* The bar at the foot of the screen once a lever has moved. */
.m-sticky{position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px max(16px, env(safe-area-inset-left, 0px)); padding-bottom:max(10px, env(safe-area-inset-bottom, 0px));
  background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -6px 20px rgba(20,22,27,.08)}
.m-sticky[hidden]{display:none}
.m-sticky-t{display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 8px; min-width:0; font-size:14px}
.m-sticky-n{color:var(--fg2); flex-basis:100%; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.m-sticky-v{font-family:var(--mono); color:var(--fg3)}
.m-sticky-mine{font:700 18px var(--mono)}
.m-sticky-b{flex:none}
body.m-has-sticky .mpage{padding-bottom:110px}
@media (max-width:560px){ .m-sticky-b{padding:9px 12px; font-size:13px} .m-sticky-mine{font-size:16px} }

/* After saving: the next model. */
.m-drawer-img{width:100%; border:1px solid var(--line); border-radius:8px; margin-bottom:10px}
.m-build{margin-top:22px}
.m-drawer .m-build{margin-top:18px; padding-top:14px; border-top:1px solid var(--line2)}
.m-build-f{display:flex; gap:8px}
.m-build-f .ui-input{flex:1; min-width:0}
/* Outside the card, so its tokens are not in scope here. */
.m-h{font:600 12px var(--mono); text-transform:uppercase; letter-spacing:.07em; color:var(--fg3); margin:0 0 10px}
.m-sticky .mc-pill{font:600 13px var(--mono); padding:1px 7px; border-radius:5px}
.m-sticky .mc-pill.up{background:rgba(26,154,108,.12); color:#1A9A6C} .m-sticky .mc-pill.down{background:rgba(210,69,61,.11); color:#D2453D}
.m-sticky-mine{color:#E08A1E}
.m-sticky-same{color:var(--fg3); font-size:13px}

/* The free model, offered under the headline: readers from a link never saw the landing page. */
.m-free{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding:10px 12px; border-radius:10px;
  background:color-mix(in srgb, var(--accent) 10%, transparent); font-size:14px; line-height:1.4}
.m-free-t{margin:0; min-width:0}
.m-free-b{flex:none; padding:7px 14px}
/* The next step, right after "Your view": sign up (signed out) or the builder. */
.m-build-card{margin:18px 0 0; padding:16px; border:1.5px solid var(--accent); border-radius:12px; background:var(--surface)}
.m-build-h{font:700 18px/1.25 var(--sans); margin:0 0 4px}
.m-build-p{margin:0 0 12px; color:var(--fg2); font-size:14px}
.m-signup-b{display:flex; flex-wrap:wrap; gap:8px}
.m-signup-b .ui-btn{flex:1 1 180px; text-align:center; padding:11px 14px}
@media (max-width:560px){ .m-build-f{flex-direction:column} .m-build-f .ui-btn{padding:11px} .m-signup-b{flex-direction:column} .m-signup-b .ui-btn{flex:none} }
