/* css/market.css — Phase 4 step 5: the marketplace pages (spaces, coaches, referees, the two profiles, the three
   booking confirmations, list-your-space, signup and login). Built from the Coaches board and Home v2 (brief
   2026-10-26), on step 3's chrome. Every colour is a token from css/theme.css; nothing here defines its own.
   Load order: theme.css -> styles.css -> buttons.css -> chrome.css -> market.css -> the page's own few rules.
   Classes are mk- prefixed so styles.css's older rules can't reach them. */

.mk { --mk-max: 1240px; --mk-pad: 32px; font-family: var(--ps-font); color: var(--ps-text-primary); background: var(--ps-surface-0); }
.mk h1, .mk h2, .mk h3 { color: var(--ps-text-primary); letter-spacing: normal; }
.mk-wrap { max-width: var(--mk-max); margin: 0 auto; padding-left: var(--mk-pad); padding-right: var(--mk-pad); box-sizing: border-box; }
.mk-narrow { --mk-max: 720px; }
/* A link styled as a button sizes like a <button> does, so a full-width one stays inside its column. */
.mk .pbtn, .mk-overlay .pbtn { box-sizing: border-box; }
/* The header is fixed (css/chrome.css), so the first block clears its nav row. */
.mk-top { padding-top: calc(var(--ps-nav-h) + 48px); }

/* ---- Page heading: display weight at condensed width, sentence case (constitution §2.4: no tracked capitals) ---- */
.mk-head { padding-bottom: 24px; }
.mk-head h1, .mk-title { margin: 0; font-size: 56px; line-height: 1; font-weight: 800; font-stretch: 72%; letter-spacing: -0.01em; }
.mk-lead { margin: 14px 0 0; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--ps-text-secondary); }
.mk-h2 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; font-stretch: 80%; }
.mk-h3 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; }
.mk-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ps-accent); text-decoration: none; }
.mk-back:hover { color: var(--ps-accent-hover); text-decoration: underline; }
.mk-back svg { width: 16px; height: 16px; transform: rotate(-90deg); }

/* ---- Filter bar: pill fields with their label inside (board: Sport, Max price, Sort); the lead one is tinted ---- */
.mk-filters { padding-top: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--ps-border); }
.mk-filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mk-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; box-sizing: border-box; border: 1px solid var(--ps-border-interactive);
  border-radius: var(--ps-radius-pill); background: var(--ps-surface-0); font-size: 15px; cursor: text; min-width: 0; }
.mk-pill-lead { border: 1.5px solid var(--ps-accent); background: var(--ps-accent-bg); }
.mk-pill-label { font-weight: 600; color: var(--ps-text-primary); white-space: nowrap; }
.mk-pill-lead .mk-pill-label { color: var(--ps-accent-on-tint); }
.mk-pill input, .mk-pill select { border: 0; padding: 0; margin: 0; font: inherit; font-size: 16px; color: var(--ps-text-primary); background: transparent; outline: none; min-width: 0; color-scheme: light; }
.mk-pill input::placeholder { color: var(--ps-text-secondary); opacity: 1; }
.mk-pill select { cursor: pointer; }
.mk-pill:focus-within { box-shadow: 0 0 0 2px var(--ps-surface-0), 0 0 0 4px var(--ps-accent); }
.mk-count { margin-left: auto; font-size: 15px; color: var(--ps-text-secondary); }
/* The Where pill (048): the place box and the radius picker side by side */
.mk-pill-where select { border-left: 1px solid var(--ps-border); padding-left: 10px; color: var(--ps-text-secondary); }
.mk-card-dist { white-space: nowrap; font-weight: 600; color: var(--ps-text-primary); }
.mk-card-dist::before { content: '·'; margin: 0 6px; font-weight: 400; color: var(--ps-text-secondary); }
.mk-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---- Results ---- */
.mk-results { padding-top: 32px; padding-bottom: 64px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.mk-grid-venues { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.mk-wait { grid-column: 1 / -1; margin: 0; padding: 48px 0; font-size: 15px; color: var(--ps-text-secondary); }

/* A result card: outlined, cobalt top edge, its own photo or the silver fallback on top */
.mk-card { background: var(--ps-surface-0); border: 1px solid var(--ps-border); border-top: 3px solid var(--ps-accent); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; scroll-margin-top: calc(var(--ps-nav-h) + 16px); }
.mk-card-sample { border-top-color: var(--ps-border-strong); }
.mk-card:target, .mk-card.is-target { box-shadow: 0 0 0 3px var(--ps-accent-bg), 0 0 0 4px var(--ps-accent); }
.mk-photo { position: relative; aspect-ratio: 16 / 10; background: var(--ps-surface-photo); border-bottom: 1px solid var(--ps-border); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.mk-photo-venue { aspect-ratio: 4 / 5; }
/* phones: 4:3, so a parent sees more than one venue per screen (owner 2026-10-28); 4:5 stays on desktop */
.mk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-photo .ps-badge { position: absolute; top: 12px; left: 12px; }
.mk-fallback-art { width: 46%; max-width: 128px; height: auto; aspect-ratio: 4 / 5; }
.mk-fallback-note { font-size: 13px; color: var(--ps-text-secondary); }
.mk-initials { width: 96px; height: 96px; border-radius: var(--ps-radius-pill); border: 2px solid var(--ps-accent); background: var(--ps-accent-bg); box-sizing: border-box;
  color: var(--ps-accent-on-tint); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.mk-card-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mk-grid-venues .mk-card-body { padding: 20px; gap: 12px; }
.mk-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mk-card-name { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.mk-grid-venues .mk-card-name { font-size: 18px; }
.mk-card-sub { font-size: 15px; color: var(--ps-text-secondary); overflow-wrap: anywhere; }
.mk-card-place { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ps-text-secondary); }
.mk-card-place svg { width: 15px; height: 15px; flex-shrink: 0; }
.mk-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-tag { font-size: 13px; font-weight: 500; color: var(--ps-text-primary); background: var(--ps-surface-1); border: 1px solid var(--ps-border); border-radius: var(--ps-radius-pill);
  padding: 5px 12px; line-height: 1.3; overflow-wrap: anywhere; }
.mk-stats { display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 14px; color: var(--ps-text-secondary); border-top: 1px solid var(--ps-border); padding-top: 14px; }
.mk-stats strong { color: var(--ps-text-primary); font-weight: 600; }
.mk-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.mk-price { font-size: 16px; color: var(--ps-text-secondary); }
.mk-price strong { font-size: 22px; font-weight: 700; color: var(--ps-accent); }
.mk-price-note { display: block; font-size: 13px; color: var(--ps-text-secondary); }
.mk-sample-note { font-size: 14px; font-weight: 600; color: var(--ps-text-secondary); }

/* Empty and load-failed states: dashed edge (brief: the dashed grey, --ps-border-dashed, for empty states) */
.mk-empty { grid-column: 1 / -1; border: 1.5px dashed var(--ps-border-dashed); border-radius: 20px; padding: 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mk-empty-lead { display: flex; gap: 20px; align-items: center; }
.mk-empty-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--ps-radius-pill); border: 1.5px solid var(--ps-border-accent); background: var(--ps-accent-bg);
  display: flex; align-items: center; justify-content: center; color: var(--ps-accent-on-tint); }
.mk-empty-icon svg { width: 26px; height: 26px; }
.mk-empty-title { margin: 0; font-size: 19px; font-weight: 700; }
.mk-empty-sub { margin: 4px 0 0; font-size: 15px; color: var(--ps-text-secondary); max-width: 560px; }

/* The gold-trimmed panel: become a coach / referee, list your space (board: "Become a coach") */
.mk-panel-gold { margin-top: 48px; background: var(--ps-highlight-wash); border: 1.5px solid var(--ps-highlight-trim); border-radius: 20px; padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mk-panel-gold p { margin: 6px 0 0; font-size: 16px; color: var(--ps-text-secondary); }
.mk-panel-gold .pbtn { background: var(--ps-surface-0); }

/* ---- Sections and rows on profile and confirmation pages ---- */
.mk-section { background: var(--ps-surface-0); border: 1px solid var(--ps-border); border-radius: 20px; padding: 24px; }
.mk-section + .mk-section { margin-top: 20px; }
.mk-section-silver { background: var(--ps-surface-1); }
.mk-section-title { margin: 0 0 14px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.mk-section p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ps-text-body); }
.mk-rows { margin: 0; }
.mk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ps-border); font-size: 15px; }
.mk-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mk-row:first-child { padding-top: 0; }
.mk-row dt, .mk-row-label { color: var(--ps-text-secondary); }
.mk-row dd, .mk-row-value { margin: 0; font-weight: 600; text-align: right; color: var(--ps-text-primary); overflow-wrap: anywhere; }
.mk-row-total { font-size: 16px; }
.mk-row-total dd, .mk-row-total .mk-row-value { font-size: 18px; font-weight: 700; color: var(--ps-text-primary); }
.mk-none { font-size: 15px; color: var(--ps-text-secondary); }

/* ---- A coach's or referee's profile: photo, name and the booking block, then two columns of sections ---- */
.mk-profile { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--ps-border); }
.mk-profile .mk-photo { aspect-ratio: 1; border: 1px solid var(--ps-border); border-radius: 20px; }
.mk-profile .mk-initials { width: 112px; height: 112px; font-size: 36px; }
.mk-profile-id { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-profile-id .mk-title { overflow-wrap: anywhere; }
.mk-profile-sub { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ps-text-secondary); overflow-wrap: anywhere; }
.mk-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ps-text-secondary); }
.mk-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mk-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.mk-profile-book { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 220px; }
.mk-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
.mk-cols > div { min-width: 0; }
.mk-sub-label { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ps-text-primary); }
.mk-sub-block + .mk-sub-block { margin-top: 16px; }
.mk-section p.mk-prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mk-session { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--ps-border); border-radius: 16px; background: var(--ps-surface-1); }
.mk-session-type { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.mk-session-meta { font-size: 14px; color: var(--ps-text-secondary); overflow-wrap: anywhere; }
.mk-session .mk-price { margin: 4px 0 8px; }
.mk-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ps-text-secondary); cursor: pointer; }
.mk-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ps-accent); }
.mk-check a { color: var(--ps-accent); }
.mk-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 24px; }
.mk-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px); opacity: 0; transition: transform .3s, opacity .3s; z-index: 10000;
  max-width: calc(100% - 32px); box-sizing: border-box; padding: 12px 20px; border-radius: var(--ps-radius-pill); background: var(--ps-surface-0); border: 1px solid var(--ps-danger);
  box-shadow: var(--ps-shadow-overlay); font-size: 15px; font-weight: 600; color: var(--ps-danger); }
.mk-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---- The three booking confirmations. Their own class names stay (docs/booking-confirmation-check.mjs reads them),
   so these rules are scoped under .mk-confirm and reach nothing else. ---- */
.mk-confirm { padding-bottom: 64px; }
.mk-confirm .confirmation-hero { text-align: center; padding-bottom: 8px; }
.mk-confirm .check-ring { width: 80px; height: 80px; margin: 0 auto 20px; }
.mk-confirm .check-ring svg { width: 80px; height: 80px; }
.mk-confirm .check-circle { fill: var(--ps-status-verified-bg); stroke: var(--ps-status-verified); stroke-width: 4; stroke-dasharray: 283; stroke-dashoffset: 283; animation: mkDraw .6s ease-out .1s forwards; }
.mk-confirm .check-path { fill: none; stroke: var(--ps-status-verified); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: mkDraw .4s ease-out .6s forwards; }
@keyframes mkDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mk-confirm .check-circle, .mk-confirm .check-path { animation: none; stroke-dashoffset: 0; } }
.mk-confirm .success-check { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: var(--ps-radius-pill); background: var(--ps-status-verified-bg); border: 2px solid var(--ps-status-verified);
  display: flex; align-items: center; justify-content: center; }
.mk-confirm .success-check svg { width: 38px; height: 38px; stroke: var(--ps-status-verified); }
.mk-confirm .hero-title, .mk-confirm .title { margin: 0 0 12px; font-size: 48px; line-height: 1.02; font-weight: 800; font-stretch: 72%; letter-spacing: -0.01em; text-align: center; }
.mk-confirm .hero-sub, .mk-confirm .status-note, .mk-confirm .subtitle { margin: 0 auto 8px; max-width: 480px; font-size: 16px; line-height: 1.55; color: var(--ps-text-secondary); text-align: center; }
.mk-confirm .hero-sub strong, .mk-confirm .subtitle strong { color: var(--ps-text-primary); font-weight: 600; overflow-wrap: anywhere; }
.mk-confirm .ref-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 4px 4px 4px 18px; border: 1px solid var(--ps-border); border-radius: var(--ps-radius-pill); background: var(--ps-surface-1); }
.mk-confirm .ref-label { font-size: 14px; font-weight: 600; color: var(--ps-text-secondary); }
.mk-confirm .ref-code, .mk-confirm #bookingRef { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; font-weight: 700; letter-spacing: .04em; color: var(--ps-text-primary); }
.mk-confirm .ref-copy { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--ps-radius-pill); background: transparent; color: var(--ps-text-secondary); cursor: pointer; }
.mk-confirm .ref-copy:hover { color: var(--ps-accent); background: var(--ps-accent-bg); }
.mk-confirm .ref-copy:focus-visible { outline: 2px solid var(--ps-accent); outline-offset: 2px; }
.mk-confirm .card { width: 100%; box-sizing: border-box; margin-top: 20px; padding: 24px; background: var(--ps-surface-0); border: 1px solid var(--ps-border); border-radius: 20px; }
.mk-confirm .card-title, .mk-confirm .section-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ps-text-primary); }
.mk-confirm .card-title svg { width: 18px; height: 18px; color: var(--ps-accent); }
.mk-confirm .card-section + .card-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ps-border); }
.mk-confirm .detail-row, .mk-confirm .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ps-border); font-size: 15px; }
.mk-confirm .detail-row:last-child, .mk-confirm .row:last-child { border-bottom: 0; padding-bottom: 0; }
.mk-confirm .detail-label, .mk-confirm .row .lbl { flex-shrink: 0; color: var(--ps-text-secondary); }
.mk-confirm .detail-value, .mk-confirm .row .val { font-weight: 600; text-align: right; color: var(--ps-text-primary); overflow-wrap: anywhere; }
.mk-confirm .row.total .lbl, .mk-confirm .row.total .val, .mk-confirm #detailTotal { font-size: 18px; font-weight: 700; color: var(--ps-text-primary); }
.mk-confirm .next-steps { margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: var(--ps-accent-wash); border: 1px solid var(--ps-border-accent); }
.mk-confirm .next-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ps-text-body); }
.mk-confirm .next-steps strong { color: var(--ps-text-primary); }
.mk-confirm .policy-card { width: 100%; margin-top: 20px; }
.mk-confirm .policy-card .mk-hint { margin: 10px 0 0; }
.mk-confirm .actions { width: 100%; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.mk-confirm .actions > .pbtn { width: 100%; }
.mk-confirm .spinner { width: 36px; height: 36px; margin: 0 auto 14px; border: 3px solid var(--ps-accent-bg); border-top-color: var(--ps-accent); border-radius: 50%; animation: mkSpin .8s linear infinite; }
@keyframes mkSpin { to { transform: rotate(360deg); } }
.mk-confirm .loading-state, .mk-confirm .error-state, .mk-confirm #loadingState, .mk-confirm #errorState, .mk-confirm #signinState { padding: 48px 0; text-align: center; color: var(--ps-text-secondary); font-size: 16px; line-height: 1.55; }
.mk-confirm .error-icon { margin-bottom: 12px; color: var(--ps-danger); }
.mk-confirm .error-icon svg { width: 40px; height: 40px; }
.mk-confirm .error-title { margin-bottom: 8px; font-size: 22px; font-weight: 700; color: var(--ps-text-primary); }
.mk-confirm .error-state .pbtn, .mk-confirm #errorState .pbtn, .mk-confirm #signinState .pbtn { margin-top: 20px; }
.mk-toast-ok { border-color: var(--ps-border-accent); color: var(--ps-accent-on-tint); }

/* ---- Sign up and sign in: body.auth-page.mk-auth over auth.css's layout (auth.css also serves the dashboard and
   other pages, which stay as they are). The zap mark goes; the heading carries the page. ---- */
.mk-auth { background: var(--ps-surface-0); color: var(--ps-text-primary); font-family: var(--ps-font); padding-top: 0; }
.mk-auth .auth-section { align-items: flex-start; padding: calc(var(--ps-nav-h) + 48px) 24px 72px; }
.mk-auth .auth-section::before { display: none; }
.mk-auth .auth-card { max-width: 480px; padding: 40px; background: var(--ps-surface-0); border: 1px solid var(--ps-border); border-radius: 20px; box-shadow: none; }
.mk-auth .auth-logo { display: none; }
.mk-auth .auth-title { margin: 0 0 10px; font-size: 44px; line-height: 1.02; font-weight: 800; font-stretch: 72%; letter-spacing: -0.01em; text-align: left; color: var(--ps-text-primary); }
.mk-auth .auth-subtitle { margin: 0 0 28px; font-size: 16px; line-height: 1.5; text-align: left; color: var(--ps-text-secondary); }
.mk-auth .auth-form { gap: 18px; }
.mk-auth .auth-form .form-group { gap: 6px; }
.mk-auth .auth-form label { font-size: 15px; font-weight: 600; color: var(--ps-text-primary); }
.mk-auth .auth-form input, .mk-auth .auth-form select { min-height: 48px; box-sizing: border-box; padding: 11px 14px; background-color: var(--ps-surface-0); border: 1px solid var(--ps-border-interactive);
  border-radius: var(--ps-radius); font-size: 16px; color: var(--ps-text-primary); color-scheme: light; }
.mk-auth .auth-form input::placeholder { color: var(--ps-text-secondary); opacity: 1; }
.mk-auth .auth-form input:focus, .mk-auth .auth-form select:focus { border-color: var(--ps-accent); box-shadow: 0 0 0 3px var(--ps-accent-bg); }
.mk-auth .auth-form select option { background: var(--ps-surface-0); color: var(--ps-text-primary); }
.mk-auth .auth-hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ps-text-secondary); }
.mk-auth .auth-divider { margin: 18px 0; font-size: 14px; color: var(--ps-text-secondary); }
.mk-auth .auth-divider::before, .mk-auth .auth-divider::after { background: var(--ps-border); }
.mk-auth .forgot-link { margin-top: -6px; font-size: 15px; font-weight: 600; color: var(--ps-accent); }
.mk-auth .forgot-link:hover { color: var(--ps-accent-hover); text-decoration: underline; }
.mk-auth .auth-footer-text { margin-top: 24px; font-size: 15px; color: var(--ps-text-secondary); }
.mk-auth .auth-footer-text a { color: var(--ps-accent); }
.mk-auth .auth-error { margin-bottom: 16px; background: var(--ps-surface-0); border: 1px solid var(--ps-danger); border-radius: var(--ps-radius); font-size: 15px; color: var(--ps-danger); }
.mk-auth .auth-success { margin-bottom: 16px; background: var(--ps-status-verified-bg); border: 1px solid var(--ps-status-verified-border); border-radius: var(--ps-radius); font-size: 15px; color: var(--ps-status-verified); }

/* ---- Forms: sentence-case labels above 48px fields (booking form, list-your-space, signup, login) ---- */
.mk-form { display: grid; gap: 18px; }
.mk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-field > label, .mk-label { font-size: 15px; font-weight: 600; color: var(--ps-text-primary); }
.mk-req { color: var(--ps-danger); }
.mk-input { width: 100%; min-height: 48px; box-sizing: border-box; padding: 11px 14px; background: var(--ps-surface-0); border: 1px solid var(--ps-border-interactive);
  border-radius: var(--ps-radius); font: inherit; font-size: 16px; color: var(--ps-text-primary); color-scheme: light; outline: none; }
.mk-input::placeholder { color: var(--ps-text-secondary); opacity: 1; }
.mk-input:focus { border-color: var(--ps-accent); box-shadow: 0 0 0 3px var(--ps-accent-bg); }
textarea.mk-input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.mk-input { cursor: pointer; }
.mk-hint { font-size: 14px; line-height: 1.5; color: var(--ps-text-secondary); }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-error { min-height: 20px; font-size: 14px; color: var(--ps-danger); }
.mk-actions { display: flex; flex-direction: column; gap: 10px; }

/* The cancellation terms shown before paying and on the confirmation */
.mk-policy { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--ps-radius); background: var(--ps-surface-1); border: 1px solid var(--ps-border); }
.mk-policy-title { font-size: 14px; font-weight: 700; color: var(--ps-text-primary); }
.mk-policy-line { font-size: 14px; line-height: 1.5; color: var(--ps-text-secondary); }

/* ---- Dialog (the booking form on spaces and the profiles) ---- */
/* The dialog and toast sit outside main.mk, so they take the font and ink themselves. */
.mk-overlay, .mk-toast { font-family: var(--ps-font); color: var(--ps-text-primary); }
.mk-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(var(--ps-hairline-rgb), 0.55); }
.mk-dialog { background: var(--ps-surface-0); border: 1px solid var(--ps-border); border-radius: 20px; box-shadow: var(--ps-shadow-overlay); padding: 24px; width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto; box-sizing: border-box; }
.mk-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mk-dialog .mk-form { gap: 14px; }
.mk-dialog textarea.mk-input { min-height: 64px; }
.mk-dialog-kicker { font-size: 14px; font-weight: 600; color: var(--ps-text-secondary); }
.mk-dialog-title { margin: 2px 0 0; font-size: 22px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.mk-dialog-sub { margin: 2px 0 0; font-size: 15px; color: var(--ps-text-secondary); }
.mk-close { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ps-border); border-radius: var(--ps-radius-pill);
  background: var(--ps-surface-0); color: var(--ps-text-primary); cursor: pointer; padding: 0; font: inherit; font-size: 22px; line-height: 1; }
.mk-close:hover { border-color: var(--ps-border-interactive); }
.mk-close:focus-visible { outline: 2px solid var(--ps-accent); outline-offset: 2px; }
.mk-total { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--ps-radius); background: var(--ps-accent-wash); border: 1px solid var(--ps-border-accent); }
.mk-total-break { font-size: 14px; color: var(--ps-text-secondary); }
.mk-total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.mk-total-line strong { font-size: 22px; font-weight: 700; color: var(--ps-text-primary); }

@media (max-width: 768px) {
  .mk { --mk-pad: 20px; }
  .mk-top { padding-top: calc(var(--ps-nav-h) + 28px); }
  .mk-head h1, .mk-title { font-size: 40px; }
  .mk-lead { font-size: 16px; }
  .mk-count { margin-left: 0; width: 100%; }
  .mk-pill { flex: 1 1 100%; }
  .mk-pill input, .mk-pill select { flex: 1; }
  .mk-pill-where select { flex: 0 0 auto; }
  .mk-results { padding-top: 24px; padding-bottom: 48px; }
  .mk-grid { gap: 20px; }
  .mk-photo-venue { aspect-ratio: 4 / 3; }
  .mk-empty, .mk-panel-gold { padding: 24px; }
  .mk-empty-lead { align-items: flex-start; }
  .mk-dialog { padding: 22px 20px; }
  .mk-two { grid-template-columns: 1fr; }
  .mk-profile { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; }
  .mk-profile .mk-initials { width: 72px; height: 72px; font-size: 24px; }
  .mk-profile-book { grid-column: 1 / -1; align-items: stretch; min-width: 0; }
  .mk-cols { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 48px; }
  .mk-confirm .hero-title, .mk-confirm .title { font-size: 40px; }
  .mk-confirm .card { padding: 20px; }
  .mk-auth .auth-section { padding: calc(var(--ps-nav-h) + 24px) 20px 48px; }
  .mk-auth .auth-card { padding: 28px 20px; }
  .mk-auth .auth-title { font-size: 40px; }
}
