/* Model page with her own look (js/model-look.js). Everything here reads the --mp-* values the page sets;
   without them it falls back to the site's own look. The site header/footer sit outside .mp. */
.mp { background: var(--mp-bg, var(--bg)); color: var(--text); padding-bottom: var(--s-8); min-height: 60vh; }
.mp-banner { position: relative; width: 100%; aspect-ratio: 3 / 1; max-height: 360px; overflow: hidden; background: var(--surface-2); }
.mp-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-wrap { display: flex; flex-direction: column; gap: var(--s-5); padding-top: var(--s-5); }
.mp-box { background: var(--mp-card, var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); min-width: 0; color: var(--text); }
.mp-head { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.mp-photo { position: relative; overflow: hidden; display: grid; place-items: center; font-size: 40px; flex: none; }
.mp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-head__info { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; flex: 1 1 260px; }
.mp-name { font-family: var(--mp-font, var(--font-display)); font-size: calc(var(--fs-3xl) * var(--mp-fscale, 1)); line-height: 1.15; margin: 0;
  color: var(--mp-accent, var(--text)); font-weight: 600; overflow-wrap: anywhere; word-spacing: 0.12em; }
.mp-mood { margin: 0; color: var(--text-2); font-style: italic; overflow-wrap: anywhere; }
.mp-h { font-family: var(--mp-font, var(--font-display)); font-size: calc(var(--fs-xl) * var(--mp-fscale, 1)); line-height: 1.2; margin: 0 0 var(--s-4);
  color: var(--mp-accent, var(--text)); font-weight: 600; overflow-wrap: anywhere; word-spacing: 0.12em; }
.mp-block .section-head { margin-bottom: var(--s-4); flex-wrap: wrap; gap: var(--s-3); }
.mp-block .section-head .mp-h { margin: 0; }
.mp-bio { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.mp-actions { gap: var(--s-2); flex-wrap: wrap; }
.mp-actions--preview { pointer-events: none; }
.mp-like.is-on { background: var(--mp-accent, var(--accent)); color: var(--mp-accent-ink, var(--accent-ink)); border-color: transparent; }

/* columns: classic + centred = one column; sidebar = narrow column of info beside the clips */
.mp-cols { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
.mp-side, .mp-main { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.mp[data-layout="sidebar"] .mp-cols:has(.mp-side) { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
.mp[data-layout="centered"] .mp-wrap { max-width: 820px; }
.mp[data-layout="centered"] .mp-head { flex-direction: column; text-align: center; }
.mp[data-layout="centered"] .mp-head .row { justify-content: center; }
.mp[data-layout="centered"] .mp-h { text-align: center; }
.mp[data-layout="centered"] .mp-block .section-head { justify-content: center; }
@media (max-width: 900px) { .mp[data-layout="sidebar"] .mp-cols:has(.mp-side) { grid-template-columns: minmax(0, 1fr); } }

/* the visitor counter: an old-school odometer */
.mp-counter { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; }
.mp-counter__label { color: var(--text-2); font-size: var(--fs-sm); }
.mp-odo { display: inline-flex; gap: 3px; }
.mp-odo span { font-family: var(--mono); font-size: var(--fs-xl); line-height: 1; padding: 6px 7px; border-radius: 4px; background: #0b0b0b; color: var(--mp-accent, var(--accent));
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

.mp-gallery { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 480px) { .mp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mp-gallery__tile { aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.mp-gallery__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-lightbox { max-width: min(1100px, 96vw); width: 100%; }
.mp-lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }

.mp-top8 { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.mp-side .mp-top8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) { .mp-side .mp-top8, .mp-top8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); } }
.mp-friend { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); text-align: center; color: var(--text); min-width: 0; }
.mp-friend__pic { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 28px; }
.mp-friend__pic img { width: 100%; height: 100%; object-fit: cover; }
.mp-friend__name { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mp-stores { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mp-store { display: inline-flex; align-items: center; gap: var(--s-2); }
.mp-store img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.mp-foot { padding-block: var(--s-5); }

/* ── the editor (model-look.html) ─────────────────────────────────────── */
.ml-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); align-items: start; }
.ml-controls { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.ml-preview { position: sticky; top: var(--s-4); height: calc(100vh - 120px); overflow: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg); }
.ml-preview .mp-wrap { padding-inline: var(--s-4); }
.ml-tabs { display: none; }
@media (max-width: 960px) {
  .ml-grid { grid-template-columns: minmax(0, 1fr); }
  .ml-preview { position: static; height: auto; max-height: none; }
  .ml-tabs { display: flex; }
  .ml-grid[data-tab="edit"] .ml-preview, .ml-grid[data-tab="preview"] .ml-controls { display: none; }
}
.ml-swatches { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.ml-swatch { display: flex; flex-direction: column; gap: 6px; padding: var(--s-2); border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font-size: var(--fs-sm); text-align: left; cursor: pointer; min-height: 44px; }
.ml-swatch.is-on { border-color: var(--accent); }
.ml-swatch__dots { display: flex; gap: 3px; }
.ml-swatch__dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.ml-colors { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ml-color { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; }
.ml-color input[type="color"] { width: 44px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: none; cursor: pointer; }
.ml-fonts { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.ml-font { padding: var(--s-2) var(--s-3); border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; min-height: 52px; overflow: hidden; }
.ml-font.is-on { border-color: var(--accent); }
.ml-font b { display: block; font-size: 22px; font-weight: 400; line-height: 1.2; white-space: nowrap; }
.ml-font span { font-size: var(--fs-xs); color: var(--text-3); }
.ml-blocks { display: flex; flex-direction: column; gap: var(--s-2); }
.ml-blockrow { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface-2); min-height: 44px; }
.ml-blockrow__name { flex: 1; min-width: 0; }
.ml-blockrow .icon-btn { width: 36px; height: 36px; }
.ml-pics { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.ml-pic { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); border: 2px solid transparent; padding: 0; cursor: pointer; }
.ml-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-pic.is-on { border-color: var(--accent); }
.ml-pic__x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; }
.ml-clip { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-md); background: var(--surface-2); }
.ml-clip__img { width: 96px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); flex: none; }
.ml-clip__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-clip__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.ml-clips { display: flex; flex-direction: column; gap: var(--s-2); max-height: 420px; overflow: auto; }
.ml-stills { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 60vh; overflow: auto; }
.ml-stills button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 16 / 9; }
.ml-stills button.is-on { border-color: var(--accent); }
.ml-stills img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-focus { position: relative; cursor: crosshair; }
.ml-focus img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.ml-focus__dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #000; pointer-events: none; }
.ml-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface-3); box-shadow: var(--sh-3); }

/* store pages without their own colours: the usual store look (no boxes) */
.mp--plain { background: none; }
.mp--plain .mp-box { background: none; border: 0; padding: 0; border-radius: 0; }
.mp--plain .mp-wrap { gap: var(--s-6); }
.mp--plain .mp-name { font-size: calc(var(--fs-2xl) * var(--mp-fscale, 1)); }
.mp-box .custom-strip { margin: 0; }
