/* ═══════════════════════════════════════════════════════════
   Rooma process mockups (HTML/CSS, not pictures)
   Five pieces the landing variants embed for the steps that are not
   renderings: the landlord's listing with Rooma in it (.mk-browser +
   .mk-site + .mk-embed), the code the landlord pastes (.mk-code), the
   "Boka visning" dialog (.mk-dialog), the request the landlord receives
   (.mk-mail) and a phone frame (.mk-phone).
   Everything is prefixed .mk-. Colours come from the host page's tokens
   when it has them (--ink, --surface, --line …, as in site/css/styles.css)
   and fall back to Rooma's own, in light and dark. .mk-theme-light /
   .mk-theme-dark on a mockup or an ancestor force one appearance, for a
   mockup placed on a section that does not follow the system setting.
   Each mockup is a size container, so it reflows by its own width, not
   the window's: the same markup works in a wide hero and in a 390 px
   phone column, and the listing reflows to its phone layout inside
   .mk-phone.
   The landlord's site (.mk-site) and the code editor keep their own
   colours in both appearances: they are pictures of someone else's page
   and of an editor, which do not follow Rooma's theme.
   Paths in this file are relative to site/assets/process/.
   ═══════════════════════════════════════════════════════════ */

/* Fonts (bundled, SIL Open Font License). Same family names as the site, so a
   page that already declares them loads each file once. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ─── Tokens ─────────────────────────────────────────────── */
.mk {
  --mk-font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mk-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mk-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --mk-ink: var(--ink, #17274f);
  --mk-ink-2: var(--ink-2, #4b5a70);
  --mk-ink-3: var(--ink-3, #6b7889);
  --mk-paper: var(--paper, #f3f5f6);
  --mk-surface: var(--surface, #ffffff);
  --mk-surface-2: var(--surface-2, #eef1f4);
  --mk-line: var(--line, rgba(23, 39, 79, 0.12));
  --mk-accent: var(--accent, #2f6682);
  --mk-accent-soft: rgba(47, 102, 130, 0.09);
  --mk-shadow-rgb: var(--shadow, 14, 25, 48);
  --mk-navy: var(--navy, #17274f);
  --mk-navy-deep: var(--navy-deep, #0e1930);
  --mk-sky: var(--sky, #7cb4c5);
  /* A hairline on the top edge of raised things: invisible in light, it is what separates them in dark. */
  --mk-edge: rgba(255, 255, 255, 0);
  --mk-chrome: #eceff3;
  --mk-chrome-2: #e1e5eb;
  --mk-field: #ffffff;

  /* Lodkajen Fastigheter, the made-up landlord (site/exempel/). Its button colour is its Rooma accent. */
  --mk-lod-green: #1e4a3b;
  --mk-lod-ochre: #e9b949;

  --mk-ring: rgba(14, 25, 48, 0.07);
  --mk-cta-bg: var(--mk-navy);
  --mk-cta-fg: #ffffff;
  --mk-shadow:
    0 0 0 1px var(--mk-ring),
    0 1px 2px rgba(var(--mk-shadow-rgb), 0.06),
    0 12px 24px -12px rgba(var(--mk-shadow-rgb), 0.18),
    0 40px 80px -32px rgba(var(--mk-shadow-rgb), 0.32);
  --mk-shadow-sm:
    0 0 0 1px var(--mk-ring),
    0 1px 2px rgba(var(--mk-shadow-rgb), 0.08),
    0 6px 16px -8px rgba(var(--mk-shadow-rgb), 0.18);

  color: var(--mk-ink);
  font-family: var(--mk-font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  text-align: left;
  container-type: inline-size;
}
@media (prefers-color-scheme: dark) {
  .mk {
    --mk-ink: var(--ink, #e8eef5);
    --mk-ink-2: var(--ink-2, #b4c0d0);
    --mk-ink-3: var(--ink-3, #8b97a8);
    --mk-paper: var(--paper, #0b1220);
    --mk-surface: var(--surface, #111b2d);
    --mk-surface-2: var(--surface-2, #17233a);
    --mk-line: var(--line, rgba(232, 238, 245, 0.12));
    --mk-accent: var(--accent, #8cc4d4);
    --mk-accent-soft: rgba(140, 196, 212, 0.12);
    --mk-shadow-rgb: 0, 0, 0;
    --mk-edge: rgba(255, 255, 255, 0.07);
    --mk-chrome: #1b2436;
    --mk-chrome-2: #243049;
    --mk-field: #0d1626;
    --mk-ring: rgba(255, 255, 255, 0.08);
    --mk-cta-bg: #8cc4d4;
    --mk-cta-fg: #0b1220;
  }
}
/* Forced appearances, on the mockup itself or on any ancestor. */
.mk-theme-light .mk, .mk.mk-theme-light {
  --mk-ink: #17274f; --mk-ink-2: #4b5a70; --mk-ink-3: #6b7889;
  --mk-paper: #f3f5f6; --mk-surface: #ffffff; --mk-surface-2: #eef1f4;
  --mk-line: rgba(23, 39, 79, 0.12); --mk-accent: #2f6682; --mk-accent-soft: rgba(47, 102, 130, 0.09);
  --mk-shadow-rgb: 14, 25, 48; --mk-edge: rgba(255, 255, 255, 0);
  --mk-chrome: #eceff3; --mk-chrome-2: #e1e5eb; --mk-field: #ffffff;
  --mk-ring: rgba(14, 25, 48, 0.07); --mk-cta-bg: #17274f; --mk-cta-fg: #ffffff;
}
.mk-theme-dark .mk, .mk.mk-theme-dark {
  --mk-ink: #e8eef5; --mk-ink-2: #b4c0d0; --mk-ink-3: #8b97a8;
  --mk-paper: #0b1220; --mk-surface: #111b2d; --mk-surface-2: #17233a;
  --mk-line: rgba(232, 238, 245, 0.12); --mk-accent: #8cc4d4; --mk-accent-soft: rgba(140, 196, 212, 0.12);
  --mk-shadow-rgb: 0, 0, 0; --mk-edge: rgba(255, 255, 255, 0.07);
  --mk-chrome: #1b2436; --mk-chrome-2: #243049; --mk-field: #0d1626;
  --mk-ring: rgba(255, 255, 255, 0.08); --mk-cta-bg: #8cc4d4; --mk-cta-fg: #0b1220;
}

/* Host pages style p, dl, figure and img in their own ways; a mockup must look the same everywhere. */
.mk, .mk *, .mk *::before, .mk *::after { box-sizing: border-box; }
.mk :where(p, dl, dd, dt, figure, ul, ol, li, blockquote, pre, h1, h2, h3, h4) { margin: 0; padding: 0; }
.mk :where(ul, ol) { list-style: none; }
.mk :where(img) { display: block; max-width: 100%; height: auto; border: 0; }
.mk :where(svg) { display: block; flex: none; }
.mk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mk-num { font-variant-numeric: tabular-nums; }
/* Inter turns a hyphen between digits into a raised minus; a phone number keeps its plain hyphen. */
.mk-tel { font-feature-settings: "calt" 0; }

/* A pill button, painted (the mockups are pictures: nothing in them is clickable). */
.mk-btn {
  --mk-btn-bg: var(--mk-lod-green);
  --mk-btn-fg: #ffffff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 2.75em; padding: 0 1.25em;
  border-radius: 999px;
  background: var(--mk-btn-bg); color: var(--mk-btn-fg);
  font-family: var(--mk-font-display); font-weight: 600; font-size: 1em; letter-spacing: -0.005em; line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}
.mk-btn--ghost {
  --mk-btn-bg: var(--mk-field);
  --mk-btn-fg: var(--mk-ink);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--mk-line), 0 1px 1px rgba(var(--mk-shadow-rgb), 0.05);
}

/* ═══ 1. BROWSER FRAME ══════════════════════════════════════
   A desktop browser window. Its view is a size container (mk-view), so the
   page inside reflows to the window's width. */
.mk-browser {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--mk-chrome);
  box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-edge);
}
.mk-browser__bar {
  display: grid;
  grid-template-columns: 1fr minmax(0, 30em) 1fr;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: var(--mk-chrome);
  border-bottom: 1px solid var(--mk-line);
  font-size: 12.5px;
}
.mk-browser__left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.mk-browser__lights { display: inline-flex; gap: 8px; }
.mk-browser__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.mk-browser__lights i:nth-child(2) { background: #febc2e; }
.mk-browser__lights i:nth-child(3) { background: #28c840; }
.mk-browser__arrows { display: inline-flex; gap: 10px; color: var(--mk-ink-3); }
.mk-browser__arrows svg { width: 15px; height: 15px; }
.mk-browser__arrows svg + svg { opacity: 0.45; }
.mk-browser__url {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; height: 28px; padding: 0 12px;
  border-radius: 8px;
  background: var(--mk-chrome-2);
  color: var(--mk-ink-2);
  font-family: var(--mk-font-body); font-size: 12.5px; letter-spacing: 0.005em;
}
.mk-browser__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-browser__url b { font-weight: 500; color: var(--mk-ink); }
.mk-browser__url svg { width: 11px; height: 11px; color: var(--mk-ink-3); }
.mk-browser__right { display: flex; justify-content: flex-end; gap: 14px; color: var(--mk-ink-3); }
.mk-browser__right svg { width: 15px; height: 15px; }
.mk-browser__view { container: mk-view / inline-size; position: relative; background: #fff; }
/* An optional fixed crop for heroes: the page is cut at the foot with a soft fade. */
.mk-browser--crop .mk-browser__view { aspect-ratio: var(--mk-crop, 16 / 10); overflow: hidden; }
.mk-browser--crop .mk-browser__view::after {
  content: ""; position: absolute; inset: auto 0 0; height: 18%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 92%);
  pointer-events: none;
}
@container (max-width: 620px) {
  .mk-browser__bar { grid-template-columns: auto minmax(0, 1fr); height: 38px; padding: 0 10px; gap: 10px; }
  .mk-browser__arrows, .mk-browser__right { display: none; }
  .mk-browser__lights { gap: 6px; }
  .mk-browser__lights i { width: 10px; height: 10px; }
  .mk-browser__url { height: 24px; font-size: 11.5px; justify-content: flex-start; }
}

/* ═══ 2. THE LANDLORD'S LISTING (.mk-site) ═══════════════════
   Lodkajen Fastigheter's page for a vacant office, in its own look
   (bottle green, mist, ochre, the visitor's system type) so that Rooma
   reads as something inside it. Always light: it is their site. */
.mk-site {
  --lod-ink: #18211d;
  --lod-stone: #55615b;
  --lod-line: #dde2df;
  --lod-mist: #f4f6f5;
  container: mk-site / inline-size;
  background: #ffffff;
  color: var(--lod-ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(11px, 0.36cqi + 8.2px, 14px);
  line-height: 1.45;
}
.mk-site__top {
  display: flex; align-items: center; gap: 2em;
  padding: 1.1em clamp(1.25em, 3.4cqi, 2.6em);
  border-bottom: 1px solid var(--lod-line);
}
.mk-site__brand { display: flex; align-items: center; gap: 0.6em; font-weight: 700; font-size: 1.32em; letter-spacing: -0.01em; color: var(--mk-lod-green); white-space: nowrap; }
.mk-site__brand svg { width: 1.45em; height: 1.45em; }
.mk-site__brand small { font-size: 0.7em; font-weight: 500; color: var(--lod-stone); letter-spacing: 0; }
.mk-site__nav { display: flex; gap: 1.8em; margin-left: auto; font-size: 0.98em; font-weight: 500; color: var(--lod-ink); white-space: nowrap; }
.mk-site__nav span { padding-block: 0.35em; border-bottom: 2px solid transparent; }
.mk-site__nav .is-on { border-bottom-color: var(--mk-lod-ochre); }
.mk-site__contact { display: inline-flex; align-items: center; min-height: 2.5em; padding: 0 1.1em; border-radius: 4px; border: 1px solid var(--mk-lod-green); color: var(--mk-lod-green); font-weight: 600; font-size: 0.95em; white-space: nowrap; }
.mk-site__menu { display: none; margin-left: auto; width: 1.4em; color: var(--lod-ink); }
.mk-site__body { padding: clamp(1.4em, 3cqi, 2.4em) clamp(1.25em, 3.4cqi, 2.6em) clamp(1.6em, 3.4cqi, 2.6em); }
.mk-site__crumb { font-size: 0.86em; color: var(--lod-stone); margin-bottom: 0.9em; }
.mk-site__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5em 3em; align-items: end; margin-bottom: clamp(1.2em, 2.4cqi, 1.9em); }
.mk-site__title { display: block; font-weight: 700; font-size: clamp(1.7em, 2.9cqi, 3em); line-height: 1.02; letter-spacing: -0.03em; color: var(--mk-lod-green); text-wrap: balance; }
.mk-site__lead { margin-top: 0.7em; max-width: 30em; color: var(--lod-ink); }
.mk-site__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--mk-lod-green); }
.mk-site__facts div { padding: 0.6em 0; border-bottom: 1px solid var(--lod-line); }
.mk-site__facts div:nth-child(odd) { padding-right: 1em; }
.mk-site__facts dt { font-size: 0.82em; color: var(--lod-stone); }
.mk-site__facts dd { font-size: 1.08em; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-site__note { margin-top: 0.8em; font-size: 0.82em; color: var(--lod-stone); }
.mk-site__more { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--lod-line); }
.mk-site__more b { display: block; font-size: 1.3em; font-weight: 700; letter-spacing: -0.015em; color: var(--mk-lod-green); margin-bottom: 0.35em; }
.mk-site__more p { color: var(--lod-ink); }
/* Room for the "Rooma" tag above a marked embed. */
.mk-site__head:has(+ .mk-embed--mark) { margin-bottom: clamp(1.8em, 3cqi, 2.6em); }
@container mk-view (max-width: 860px) {
  .mk-site__nav { display: none; }
  .mk-site__contact { margin-left: auto; }
}
@container mk-site (max-width: 640px) {
  .mk-site__head { grid-template-columns: minmax(0, 1fr); }
  .mk-site__lead { display: none; }
}
/* The listing as a phone shows it (inside .mk-phone, or a narrow column). */
@container mk-site (max-width: 480px) {
  .mk-site { font-size: 11.5px; }
  .mk-site__top { padding: 0.9em 1.25em; }
  .mk-site__nav, .mk-site__contact { display: none; }
  .mk-site__menu { display: block; }
  .mk-site__body { padding: 1.2em 1.25em 1.5em; }
  .mk-site__crumb { margin-bottom: 0.6em; }
  .mk-site__head { gap: 1em; margin-bottom: 1.1em; }
  .mk-site__title { font-size: 2em; }
  .mk-site__facts dd { font-size: 1em; }
}

/* ═══ 3. ROOMA IN THE LISTING (.mk-embed) ════════════════════
   The embedded Rooma in listing mode: the room as a photograph, the
   views, the seven concepts as dots and "Boka visning" in the landlord's
   colour. Its overlays size from the embed's own width. */
.mk-embed {
  container: mk-embed / inline-size;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 2.2 / 1;
  border-radius: 12px;
  background: var(--mk-navy-deep);
  box-shadow: 0 0 0 1px rgba(14, 25, 48, 0.08), 0 18px 40px -24px rgba(14, 25, 48, 0.55);
  color: #ffffff;
  font-family: var(--mk-font-body);
}
.mk-embed__img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; object-position: var(--mk-pos, 50% 50%); }
.mk-embed::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 16, 30, 0.38), rgba(10, 16, 30, 0) 26%),
    linear-gradient(to top, rgba(10, 16, 30, 0.62), rgba(10, 16, 30, 0) 40%);
}
.mk-embed__ui { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(10px, 2.2cqi, 22px); font-size: clamp(10.5px, 0.9cqi + 4px, 14px); }
.mk-embed__top, .mk-embed__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.mk-embed__bottom { align-items: flex-end; }
/* Frosted glass, with a hairline. */
.mk-glass {
  background: rgba(14, 22, 40, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 20px -10px rgba(0, 0, 0, 0.5);
}
.mk-embed__seg { display: inline-flex; padding: 3px; border-radius: 999px; font-weight: 500; font-size: 0.92em; }
.mk-embed__seg span { padding: 0.42em 0.95em; border-radius: 999px; color: rgba(255, 255, 255, 0.78); }
.mk-embed__seg .is-on { background: rgba(255, 255, 255, 0.95); color: #0e1930; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.mk-embed__chip { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.5em 0.9em; border-radius: 999px; font-weight: 500; font-size: 0.92em; white-space: nowrap; }
.mk-embed__chip svg { width: 1.1em; height: 1.1em; opacity: 0.85; }
.mk-embed__concept { display: flex; flex-direction: column; gap: 0.55em; min-width: 0; padding: 0.75em 0.95em 0.85em; border-radius: 14px; }
.mk-embed__label { display: flex; align-items: baseline; gap: 0.6em; white-space: nowrap; }
.mk-embed__label b { font-family: var(--mk-font-display); font-weight: 600; font-size: 1.12em; letter-spacing: -0.01em; }
.mk-embed__label span { font-size: 0.86em; color: rgba(255, 255, 255, 0.72); }
.mk-dots { display: flex; gap: 0.5em; }
.mk-dots i {
  width: 1.15em; height: 1.15em; border-radius: 50%;
  background: var(--c, #888);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 -2px 3px rgba(0, 0, 0, 0.18);
}
.mk-dots .is-on { box-shadow: 0 0 0 2px rgba(14, 22, 40, 0.9), 0 0 0 3.5px #ffffff, inset 0 -2px 3px rgba(0, 0, 0, 0.18); }
.mk-embed .mk-btn { font-size: 1.05em; min-height: 2.8em; padding: 0 1.3em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px -8px rgba(0, 0, 0, 0.6); }
.mk-embed .mk-btn svg { width: 1em; height: 1em; }
/* "This is Rooma": a sky outline and a tag, for the process step that points at it. */
.mk-embed--mark { overflow: visible; }
.mk-embed--mark .mk-embed__img, .mk-embed--mark::after { border-radius: inherit; }
.mk-embed--mark::before {
  content: ""; position: absolute; inset: -5px; z-index: 2; pointer-events: none;
  border-radius: 16px;
  border: 1.5px solid var(--mk-sky);
  box-shadow: 0 0 0 4px rgba(124, 180, 197, 0.16);
}
.mk-embed__tag {
  position: absolute; z-index: 3; top: -5px; right: 18px; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 6px; border-radius: 999px;
  background: var(--mk-navy-deep); color: #ffffff;
  font-family: var(--mk-font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  box-shadow: 0 0 0 1.5px var(--mk-sky), 0 4px 12px -4px rgba(14, 25, 48, 0.5);
}
.mk-embed__tag img { width: 16px !important; height: 16px !important; border-radius: 4px; background: #ffffff; padding: 1.5px; }
.mk-embed:not(.mk-embed--mark) .mk-embed__tag { display: none; }
@container mk-embed (max-width: 640px) {
  .mk-embed__chip { display: none; }
}
/* Narrow: the embed grows tall, as the iframe does on a phone, and the button goes full width. */
@container mk-site (max-width: 520px) {
  .mk-embed { aspect-ratio: 4 / 5; --mk-pos: 64% 50%; }
  .mk-embed__ui { font-size: 11.5px; padding: 10px; }
  .mk-embed__bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .mk-embed__concept { padding: 0.7em 0.85em 0.8em; }
  .mk-embed .mk-btn { width: 100%; min-height: 3.2em; }
  .mk-embed__tag { right: 12px; font-size: 11px; }
}

/* ═══ 4. THE CODE (.mk-code) ═════════════════════════════════
   The iframe a landlord pastes, as an editor shows it. Always dark. */
.mk-code {
  --code-bg: #0b1222;
  --code-bar: #0f182b;
  --code-line: rgba(255, 255, 255, 0.07);
  --code-gutter: #4a5876;
  --code-text: #d5deeb;
  --code-punct: #7c8aa6;
  --code-tag: #7cc4d8;
  --code-attr: #c7b3f5;
  --code-val: #ecc98f;
  --code-dim: #6c7a96;
  overflow: hidden;
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 24px 60px -28px rgba(var(--mk-shadow-rgb), 0.6);
}
.mk-code__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px 0 14px; background: var(--code-bar); border-bottom: 1px solid var(--code-line); font-size: 12px; }
.mk-code__bar .mk-browser__lights i { background: #2a3550; box-shadow: none; width: 10px; height: 10px; }
.mk-code__file { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 12px; margin-left: 4px; color: #e6edf7; border-bottom: 1.5px solid var(--code-tag); font-family: var(--mk-font-body); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mk-code__file svg { width: 13px; height: 13px; color: #e8925b; }
.mk-code__copy { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 10px; border-radius: 7px; color: #b9c5d8; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-family: var(--mk-font-body); font-weight: 500; white-space: nowrap; }
.mk-code__copy svg { width: 12px; height: 12px; }
.mk-code__body { padding: 14px 0 16px; font-family: var(--mk-font-mono); font-size: 13.5px; line-height: 1.72; counter-reset: mk-ln; }
.mk-code__ln { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); padding-right: 16px; }
.mk-code__ln::before { counter-increment: mk-ln; content: counter(mk-ln); color: var(--code-gutter); text-align: right; padding-right: 1.4em; user-select: none; }
.mk-code__ln > span { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 2ch; text-indent: -2ch; }
.mk-code__ln.is-hl { background: linear-gradient(90deg, rgba(124, 196, 216, 0.14), rgba(124, 196, 216, 0.04)); box-shadow: inset 2px 0 0 var(--code-tag); }
.mk-code__ln.is-hl::before { color: var(--code-tag); }
.mk-code .t { color: var(--code-tag); }
.mk-code .p { color: var(--code-punct); }
.mk-code .a { color: var(--code-attr); }
.mk-code .v { color: var(--code-val); }
.mk-code .d { color: var(--code-dim); }
/* One-line variant: the same element, shortened, without the editor around it. */
.mk-code--line .mk-code__body { padding: 14px 18px; }
.mk-code--line .mk-code__ln { grid-template-columns: minmax(0, 1fr); padding: 0; }
.mk-code--line .mk-code__ln::before { content: none; }
@container (max-width: 480px) {
  .mk-code__bar .mk-browser__lights { display: none; }
  .mk-code__bar { padding-left: 4px; }
  .mk-code__body { font-size: 12px; }
  .mk-code__ln { grid-template-columns: 2.4em minmax(0, 1fr); padding-right: 12px; }
  .mk-code__ln::before { padding-right: 0.9em; }
}

/* ═══ 5. "BOKA VISNING" (.mk-dialog) ═════════════════════════
   src/components/designer/BookingDialog.tsx, form step: the picture,
   title and the space, what goes with the request, the five fields, the
   privacy line and "Skicka förfrågan" in the landlord's colour. */
.mk-dialog {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 24px;
  background: var(--mk-surface);
  color: var(--mk-ink-2);
  box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-edge);
  font-size: 14px;
}
.mk-dialog__pic { display: block; width: 100%; height: 176px !important; object-fit: cover; object-position: var(--mk-pos, 55% 55%); }
.mk-dialog__in { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.mk-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mk-dialog__title { display: block; font-family: var(--mk-font-display); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; color: var(--mk-ink); }
.mk-dialog__space { display: block; margin-top: 2px; font-size: 13px; color: var(--mk-ink-2); }
.mk-dialog .mk-btn--ghost { min-height: 36px; padding: 0 16px; font-size: 13px; font-family: var(--mk-font-body); }
.mk-dialog__goes { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--mk-line); background: var(--mk-field); line-height: 1.55; }
.mk-dialog__goes b { display: block; font-weight: 600; color: var(--mk-ink); }
.mk-dialog__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-field__label { display: block; font-size: 13px; color: var(--mk-ink-2); }
.mk-field__input {
  display: flex; align-items: center;
  min-height: 44px; margin-top: 4px; padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--mk-line);
  background: var(--mk-field);
  color: var(--mk-ink);
  font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 1px rgba(var(--mk-shadow-rgb), 0.03);
}
.mk-field__input--area { display: block; min-height: 82px; padding: 9px 12px; white-space: normal; line-height: 1.55; }
.mk-field__input.is-focus { border-color: var(--mk-accent); box-shadow: 0 0 0 3px var(--mk-accent-soft), 0 0 0 1px var(--mk-accent); }
.mk-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--mk-accent); }
.mk-dialog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mk-dialog__privacy { max-width: 19rem; font-size: 12px; line-height: 1.4; color: var(--mk-ink-3); }
.mk-dialog__privacy u { text-underline-offset: 2px; }
.mk-dialog .mk-btn:not(.mk-btn--ghost) { min-height: 48px; padding: 0 24px; font-size: 15px; }
/* Sent step: what the dialog says after the request has gone, with the PDF the tenant can download. */
.mk-dialog__sent { font-size: 15px; line-height: 1.55; color: var(--mk-ink); }
.mk-dialog__pdf { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: var(--mk-ink); }
.mk-dialog__pdf svg { width: 16px; height: 16px; }
@container (max-width: 480px) {
  .mk-dialog__pic { height: 96px !important; }
  .mk-dialog__in { padding: 16px; gap: 14px; }
  .mk-dialog__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mk-dialog__foot { flex-direction: column; align-items: stretch; }
  .mk-dialog__privacy { max-width: none; }
  .mk-dialog .mk-btn:not(.mk-btn--ghost) { width: 100%; }
  /* Shorter on a phone: the two optional fields are left out. */
  .mk-field--opt { display: none; }
}

/* ═══ 6. THE REQUEST (.mk-mail) ══════════════════════════════
   What the landlord gets: an email in the inbox, with the fields of the
   Netlify form "visning" (src/lib/leads.ts): name, company, email, phone,
   message, space, design, people, contents, furniture, renovation, total
   (each "uppskattning, inte offert"), rent, the link that opens the
   proposal in 3D, and language. No PDF goes with it. */
.mk-mail {
  overflow: hidden;
  border-radius: 14px;
  background: var(--mk-surface);
  box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-edge);
  font-size: 13.5px;
}
.mk-mail__bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 14px; background: var(--mk-chrome); border-bottom: 1px solid var(--mk-line); color: var(--mk-ink-3); }
.mk-mail__bar-title { font-weight: 600; font-size: 13px; color: var(--mk-ink); }
.mk-mail__bar-tools { display: flex; gap: 16px; margin-left: auto; }
.mk-mail__bar-tools svg { width: 16px; height: 16px; }
.mk-mail__panes { display: grid; grid-template-columns: minmax(15em, 0.36fr) minmax(0, 1fr); }
.mk-mail__list { border-right: 1px solid var(--mk-line); background: var(--mk-paper); }
.mk-mail__list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; }
.mk-mail__list-head b { font-family: var(--mk-font-display); font-weight: 600; font-size: 15px; color: var(--mk-ink); }
.mk-mail__list-head span { font-size: 12px; color: var(--mk-ink-3); }
.mk-mail__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; margin: 0 8px 2px; padding: 10px 12px 11px 20px; border-radius: 10px; color: var(--mk-ink-2); font-size: 12.5px; }
.mk-mail__item b { font-weight: 600; color: var(--mk-ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-mail__item time { font-size: 11.5px; color: var(--mk-ink-3); }
.mk-mail__item .s { grid-column: 1 / -1; color: var(--mk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-mail__item .x { grid-column: 1 / -1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--mk-ink-3); }
.mk-mail__item.is-on { background: var(--mk-surface); box-shadow: var(--mk-shadow-sm); }
.mk-mail__item.is-new::before { content: ""; position: absolute; left: 8px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--mk-accent); }
.mk-mail__item:not(.is-on) + .mk-mail__item:not(.is-on) { border-top: 1px solid var(--mk-line); border-radius: 0 0 10px 10px; }
.mk-mail__read { padding: 22px clamp(16px, 3.4cqi, 32px) 26px; min-width: 0; }
.mk-mail__subject { display: block; font-family: var(--mk-font-display); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; color: var(--mk-ink); text-wrap: balance; }
.mk-mail__from { display: flex; align-items: center; gap: 10px; margin: 14px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--mk-line); }
.mk-mail__avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(23, 39, 79, 0.1); }
.mk-mail__avatar img { width: 20px !important; height: 20px !important; }
.mk-mail__who { min-width: 0; font-size: 12.5px; color: var(--mk-ink-3); line-height: 1.35; }
.mk-mail__who b { font-weight: 600; color: var(--mk-ink); font-size: 13.5px; }
.mk-mail__who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-mail__from time { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--mk-ink-3); white-space: nowrap; }
.mk-mail__lead { font-size: 15px; color: var(--mk-ink); line-height: 1.5; }
.mk-mail__lead b { font-weight: 600; }
.mk-mail__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mk-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--mk-surface-2); color: var(--mk-ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--mk-line); }
.mk-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--mk-accent)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
/* The proposal: a picture and the link that opens it in 3D. */
.mk-mail__proposal { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); margin-top: 18px; overflow: hidden; border-radius: 14px; border: 1px solid var(--mk-line); background: var(--mk-field); box-shadow: 0 1px 2px rgba(var(--mk-shadow-rgb), 0.05); }
.mk-mail__proposal img { width: 100%; height: 100% !important; min-height: 120px; object-fit: cover; object-position: 58% 55%; }
.mk-mail__proposal-in { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; min-width: 0; }
.mk-mail__proposal-in b { font-family: var(--mk-font-display); font-weight: 600; font-size: 15px; color: var(--mk-ink); letter-spacing: -0.01em; }
.mk-mail__proposal-in span { color: var(--mk-ink-2); font-size: 12.5px; }
.mk-mail__proposal-in .mk-mail__open { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--mk-cta-bg); color: var(--mk-cta-fg); font-weight: 600; font-size: 12.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px -4px rgba(14, 25, 48, 0.5); }
.mk-mail__open svg { width: 14px; height: 14px; }
.mk-mail__msg { margin-top: 18px; padding: 2px 0 2px 14px; border-left: 2px solid var(--mk-line); font-size: 14px; line-height: 1.6; color: var(--mk-ink); }
.mk-mail__msg mark { background: var(--mk-accent-soft); color: inherit; padding: 1px 3px; border-radius: 4px; box-shadow: inset 0 -1.5px 0 var(--mk-accent); }
.mk-mail__msg small { display: block; margin-top: 4px; font-size: 12px; color: var(--mk-ink-3); }
.mk-mail__fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin-top: 18px; border-top: 1px solid var(--mk-line); font-size: 13px; }
.mk-mail__fields dt, .mk-mail__fields dd { padding: 7px 0; border-bottom: 1px solid var(--mk-line); }
.mk-mail__fields dt { padding-right: 18px; color: var(--mk-ink-3); }
.mk-mail__fields dd { color: var(--mk-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mk-mail__fields dd em { font-style: normal; color: var(--mk-ink-3); }
@container (max-width: 700px) {
  .mk-mail__panes { grid-template-columns: minmax(0, 1fr); }
  .mk-mail__list { display: none; }
}
@container (max-width: 480px) {
  .mk-mail__bar { height: 38px; }
  .mk-mail__bar-tools { gap: 14px; }
  .mk-mail__read { padding: 18px 16px 20px; }
  .mk-mail__subject { font-size: 17px; }
  .mk-mail__proposal { grid-template-columns: minmax(0, 1fr); }
  .mk-mail__proposal img { height: 120px !important; }
  .mk-mail__fields { grid-template-columns: minmax(0, 1fr); }
  .mk-mail__fields dt { padding: 8px 0 0; border-bottom: 0; font-size: 11.5px; }
  .mk-mail__fields dd { padding: 0 0 8px; }
}

/* ═══ 7. PHONE (.mk-phone) ═══════════════════════════════════
   A phone in CSS, sized by --mk-phone-w. Its screen is a size container
   holding anything: a picture (.mk-phone__img) or the listing itself,
   which reflows to its phone layout. Hardware is the same in both
   appearances. */
.mk-phone {
  --mk-phone-w: 300px;
  width: min(100%, var(--mk-phone-w));
  margin-inline: auto;
}
/* The body: sized in units of the phone's own width (the phone is the size container). */
.mk-phone__frame {
  position: relative;
  aspect-ratio: 393 / 852;
  padding: 3.4cqi;
  border-radius: 15.5cqi;
  background: linear-gradient(145deg, #3a3e46 0%, #1c1e23 38%, #2a2d34 70%, #15171b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 2.5px #0b0c0f,
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.18),
    0 30px 60px -24px rgba(var(--mk-shadow-rgb), 0.55),
    0 60px 120px -60px rgba(var(--mk-shadow-rgb), 0.45);
}
/* Side buttons. */
.mk-phone__frame::before, .mk-phone__frame::after { content: ""; position: absolute; width: 1.1cqi; border-radius: 2px; background: linear-gradient(90deg, #2b2e35, #4a4e57); }
.mk-phone__frame::before { left: -0.9cqi; top: 22%; height: 12%; }
.mk-phone__frame::after { right: -0.9cqi; top: 27%; height: 18%; background: linear-gradient(270deg, #2b2e35, #4a4e57); }
.mk-phone__screen {
  container: mk-screen / inline-size;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 12.4cqi;
  background: #ffffff;
  box-shadow: 0 0 0 1px #000;
}
.mk-phone__screen--dark { background: var(--mk-navy-deep); }
.mk-phone__island { position: absolute; z-index: 5; left: 50%; top: 3.1cqi; width: 30cqi; height: 8.8cqi; transform: translateX(-50%); border-radius: 999px; background: #000; }
.mk-phone__status {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  height: 14.6cqi; padding: 0 7.6cqi 0 9.4cqi;
  color: #0b0c0f; background: #ffffff;
  font-family: -apple-system, "SF Pro Text", var(--mk-font-body); font-weight: 600; font-size: 4.3cqi; letter-spacing: -0.01em;
}
.mk-phone__status--light { color: #ffffff; background: transparent; position: absolute; inset: 0 0 auto; }
.mk-phone__icons { display: flex; align-items: center; gap: 1.6cqi; }
.mk-phone__icons svg { height: 3.6cqi; width: auto; }
.mk-phone__scroll { position: absolute; inset: 14.6cqi 0 0; overflow: hidden; }
.mk-phone__home { position: absolute; z-index: 5; left: 50%; bottom: 2.2cqi; width: 35cqi; height: 1.4cqi; transform: translateX(-50%); border-radius: 999px; background: rgba(0, 0, 0, 0.78); }
.mk-phone__screen--dark .mk-phone__home, .mk-phone__home--light { background: rgba(255, 255, 255, 0.85); }
.mk-phone__img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; object-position: var(--mk-pos, 50% 50%); }
/* The listing inside the phone: the page's own scroll position, shown from below its header. */
.mk-phone .mk-site { min-height: 100%; }

/* ─── Reduced motion: the mockups have no motion of their own. Kept here so a
   variant that animates them has a place to stop it. ─── */
@media (prefers-reduced-motion: reduce) {
  .mk, .mk * { transition: none !important; animation: none !important; }
}
