/* Mobilkitet (zimla-mobile-kit.js, docs/mobile/MOBILE_PLAN.md Fas 1). Allt gäller bara under 1024 px – desktop påverkas
   inte. Formspråket läses ur --zm-* (zimla-start.css); här läggs bara nya tokens till, inga befintliga ändras. */
@media (max-width: 1023px) {
  :root {
    --zm-deep: #12382b;       /* mörka kort, aktiva chips */
    --zm-mint: #2fbf71;       /* live-status, prickar */
    --zm-line-2: #eef0ec;     /* avdelare inne i kort */
    --zm-amber: #e8a33d;      /* utkast, varningar */
    --zm-menu: #1b2420;       /* fokusmenyn */
    --zm-serif: Newsreader, Georgia, serif;  /* bara stora belopp och kundnamn (beslut B3) */
    --zm-sheet-radius: 22px;
  }
  html.zm-locked, html.zm-locked body { overflow: hidden; }

  /* ---------- Bottenblad ---------- */
  .zm-sheet {
    position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh;
    padding: 0 0 env(safe-area-inset-bottom); border: 0; border-radius: var(--zm-sheet-radius) var(--zm-sheet-radius) 0 0;
    background: var(--zm-card); color: var(--zm-ink); box-shadow: 0 -12px 40px rgba(18, 30, 24, 0.18);
    display: flex; flex-direction: column; overflow: hidden; font: 400 15px/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
    animation: zm-sheet-in 260ms cubic-bezier(0.22, 1, 0.36, 1); transition: transform 200ms ease;
  }
  .zm-sheet:not([open]) { display: none; }
  .zm-sheet.is-fixed { height: min(var(--zm-sheet-h, 78dvh), 92dvh); }
  /* Tangentbordet uppe (zimla-mobile-kit.js): bladet lyfts ovanför det och ryms i den synliga ytan. */
  .zm-kb .zm-sheet { bottom: var(--zm-kb, 0px); max-height: calc(var(--zm-vv, 100dvh) - 12px); padding-bottom: 0; }
  .zm-kb .zm-sheet.is-fixed { height: min(var(--zm-sheet-h, 78dvh), calc(var(--zm-vv, 100dvh) - 12px)); }
  .zm-sheet.is-closing { animation: zm-sheet-out 220ms ease-in forwards; }
  .zm-sheet::backdrop { background: rgba(18, 26, 22, 0.42); animation: zm-fade-in 220ms ease; }
  .zm-sheet__grip { flex: none; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: #d6dbd6; }
  .zm-sheet__head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 8px 12px 10px var(--zm-gutter); border-bottom: 1px solid var(--zm-line-2); touch-action: none; }
  .zm-sheet__titles { flex: 1; min-width: 0; padding-top: 8px; outline: none; }
  .zm-sheet__foot .zm-btn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zm-sheet__title { margin: 0; font: 600 18px/1.25 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--zm-ink); overflow-wrap: anywhere; outline: none; }
  .zm-sheet__sub { margin: 2px 0 0; font-size: 13px; color: var(--zm-muted); font-variant-numeric: tabular-nums; }
  .zm-sheet__sub[hidden] { display: none; }
  .zm-sheet__x[hidden] { display: none; }
  .zm-sheet__x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--zm-ink-2); display: grid; place-items: center; }
  .zm-sheet__x:active { background: var(--zm-green-soft); }
  .zm-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px var(--zm-gutter) 18px; }
  .zm-sheet__body > * { flex-shrink: 0; }
  .zm-sheet__foot { flex: none; display: flex; gap: 10px; padding: 10px var(--zm-gutter) 12px; border-top: 1px solid var(--zm-line-2); background: var(--zm-card); }
  .zm-sheet__foot[hidden], .zm-sheet__foot [hidden] { display: none; }
  .zm-sheet :is(input, select, textarea) { font-size: 16px; background: var(--zm-card); color: var(--zm-ink); }

  /* ---------- Knappar ---------- */
  .zm-btn {
    flex: 1; min-height: var(--zm-primary-h); padding: 0 16px; border-radius: var(--zm-primary-radius);
    font: 600 15px/1 Inter, ui-sans-serif, system-ui, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  }
  .zm-btn--primary { border: 0; background: var(--zm-green); color: #fff; }
  .zm-btn--primary:disabled { background: #b9cfc1; }
  .zm-btn--ghost { border: 1px solid var(--zm-line); background: var(--zm-card); color: var(--zm-ink); }
  .zm-btn:active { transform: scale(0.98); }

  /* ---------- Håll in och fokusmenyn ---------- */
  .zm-holding { transition: transform 450ms ease; transform: scale(0.985); }
  .zm-focused { background: var(--zm-green-soft) !important; box-shadow: 0 0 0 2px rgba(31, 107, 79, 0.25) !important; position: relative; z-index: 31; }
  .zm-fmenu {
    position: fixed; z-index: 60; display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; padding: 6px;
    border-radius: 16px; background: var(--zm-menu); color: #fff; box-shadow: 0 14px 34px rgba(10, 18, 14, 0.35);
    animation: zm-menu-in 160ms ease-out; box-sizing: border-box;
  }
  .zm-fmenu__item {
    flex: 1 1 auto; min-width: 44px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 11px; background: transparent;
    color: #fff; font: 500 13px/1.15 Inter, ui-sans-serif, system-ui, sans-serif; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  }
  .zm-fmenu__item .material-symbols-outlined { font-size: 20px; color: #9be8bd; }
  .zm-fmenu__item:active, .zm-fmenu__item:focus-visible { background: rgba(255, 255, 255, 0.1); outline: none; }
  .zm-fmenu__item.is-icon { flex: 0 0 48px; }
  .zm-fmenu__item.is-danger .material-symbols-outlined { color: #ff9b8f; }
  .zm-fmenu__sep { flex: 0 0 1px; align-self: stretch; margin: 6px 2px; background: rgba(255, 255, 255, 0.16); }
  /* Rutnät (rummets fokusmeny): lika breda celler, etiketterna kortas aldrig; avdelaren är en tunn linje mellan raderna. */
  .zm-fmenu.is-grid { display: grid; grid-template-columns: repeat(var(--zm-fmenu-cols, 3), minmax(0, 1fr)); }
  .zm-fmenu.is-grid .zm-fmenu__item { min-height: 52px; }
  .zm-fmenu.is-grid .zm-fmenu__sep { grid-column: 1 / -1; height: 1px; margin: 2px 6px; }
  .zm-fmenu.is-grid .zm-fmenu__item.is-icon { flex: none; }

  /* ---------- Segmentkontroll ---------- */
  .zm-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: #e7ebe6; }
  .zm-seg [data-zm-seg-value] {
    flex: 1; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent;
    color: var(--zm-ink-2); font: 500 14px/1 Inter, ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums;
  }
  .zm-seg [aria-pressed="true"] { background: var(--zm-card); color: var(--zm-ink); box-shadow: 0 1px 3px rgba(20, 30, 25, 0.14); }

  @keyframes zm-sheet-in { from { transform: translateY(100%); } }
  @keyframes zm-sheet-out { to { transform: translateY(100%); } }
  @keyframes zm-fade-in { from { opacity: 0; } }
  @keyframes zm-menu-in { from { opacity: 0; transform: translateY(-4px); } }
  @media (prefers-reduced-motion: reduce) {
    .zm-sheet, .zm-sheet::backdrop, .zm-fmenu { animation: none; }
    .zm-holding { transition: none; transform: none; }
  }
}

/* Översta raden på mobil = prototypens .top (docs/mobile/zimla-mobil-prototyp.html): märkets fyra prickar och kontot,
   inget ordmärke och ingen hjälporb – hjälparket och notiserna ligger i menyn (avataren bär olästa notiser).
   Selektorerna slår sidornas egna varianter (start, listor, kalender) så raden är densamma överallt. */
@media (max-width: 1023px) {
  html body .zimla-global-topbar .zimla-global-topbar__mobile-row { height: auto; min-height: 56px; padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 6px; }
  html body .zimla-global-topbar .zs-mobile-brand { display: inline-flex; align-items: center; gap: 0; font-size: 0; line-height: 0; color: transparent; }
  html body .zimla-global-topbar .zs-mobile-brand__dots { display: grid; grid-template-columns: repeat(2, 9px); gap: 4px; }
  html body .zimla-global-topbar .zs-mobile-brand__dots i { width: 9px; height: 9px; border-radius: 50%; background: #12382b; }
  html body .zimla-global-topbar .zs-mobile-brand__dots i:nth-child(2n) { background: #2fbf71; }
  html body .zimla-global-topbar .zimla-help-row-orb { display: none !important; }
  html body .zimla-global-topbar .zs-mobile-account { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: #12382b; color: #fff; font: 600 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }
  .zs-mobile-account__badge { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e8a33d;
    color: #1d2420; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
  .zs-mobile-account__badge[hidden], .zimla-drawer-help__badge[hidden] { display: none; }
  /* Klockan bredvid avataren (base.html .zs-mobile-bell): glas som sökfältet, antalet i hörnet. */
  html body .zimla-global-topbar .zs-mobile-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgb(255 255 255 / 90%);
    border-radius: 50%; background: linear-gradient(180deg, rgb(255 255 255 / 70%), rgb(255 255 255 / 40%)); color: #174c39;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 95%), 0 1px 2px rgba(20, 30, 25, .05), 0 8px 18px -12px rgba(18, 56, 43, .4); }
  html body .zimla-global-topbar .zs-mobile-bell:active { transform: scale(.94); }
  .zimla-drawer-help { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 12px; padding: 8px 12px; border: 1px solid #e3e6e1;
    border-radius: 14px; background: #f8faf7; text-align: left; color: #1d2420; }
  .zimla-drawer-help > .material-symbols-outlined { flex: none; font-size: 21px; color: #1f6b4f; }
  .zimla-drawer-help__t { flex: 1; min-width: 0; }
  .zimla-drawer-help__t b { display: block; font-size: 14px; font-weight: 600; }
  .zimla-drawer-help__t small { display: block; font-size: 12px; color: #6b746d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zimla-drawer-help__badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e8a33d; color: #1d2420; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
}

/* Lyssnar (prototypens s-listen): mörkgrön helskärm – "● Lyssnar · 0:00" och kryss, det man säger stort i serif,
   "Zimla har hört" med rummen, tipset, vågen, den stora gröna knappen och "Släpp för att skicka / Tryck X för att avbryta".
   Lagret tar inga tryck utom krysset (fingret ligger kvar på Zimla-knappen). zimla-ai-mobile-gestures.js styr det. */
.zlisten-top, .zlisten-heard, .zlisten-wave, .zlisten-sub, .zlisten-caret { display: none; }
@media (max-width: 1023px) {
  html .zlisten { background: #12382b !important; color: #fff; }
  html.zimla-listening .zlisten { display: flex !important; flex-direction: column; }
  html .zlisten > * { position: static !important; transform: none !important; }
  html .zlisten .zlisten-k { display: none !important; }
  html .zlisten .zlisten-top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 6px 20px; }
  html .zlisten .zlisten-rec { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #b9d3c6; font-variant-numeric: tabular-nums; }
  html .zlisten .zlisten-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b5b; animation: zlisten-blink 1.2s ease-in-out infinite; }
  @keyframes zlisten-blink { 50% { opacity: .35; } }
  html .zlisten .zlisten-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; pointer-events: auto; }
  html .zlisten .zlisten-t { margin: 0 !important; padding: 18px 24px 0; max-height: none !important; min-height: 3.9em; overflow: visible !important; opacity: 1 !important;
    font: 400 26px/1.3 Newsreader, Georgia, serif !important; letter-spacing: 0 !important; color: #fff; display: block !important; }
  html .zlisten .zlisten-t [data-zlisten-provisional] { color: rgba(255, 255, 255, .7); }
  html .zlisten .zlisten-caret { display: inline; margin-left: 4px; color: #6fd39b; }
  html .zlisten:not([data-state="listening"]) .zlisten-caret { display: none; }
  html .zlisten .zlisten-heard { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 8px; padding: 22px 24px 0; overflow: hidden; }
  html .zlisten .zlisten-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9fbcae; }
  html .zlisten .zlisten-found { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
  html .zlisten .zlisten-found span { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(111, 211, 155, .16); color: #d7efe2; font-size: 13px; font-weight: 500; }
  html .zlisten .zlisten-tip { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #9fbcae; }
  html .zlisten .zlisten-wave { display: flex; align-self: center; align-items: center; gap: 4px; height: 34px; margin-bottom: 18px; }
  html .zlisten .zlisten-wave i { width: 4px; height: 12px; border-radius: 2px; background: #6fd39b; animation: zlisten-wave .9s ease-in-out infinite; }
  html .zlisten .zlisten-wave i:nth-child(3n) { animation-delay: .15s; } html .zlisten .zlisten-wave i:nth-child(3n+1) { animation-delay: .3s; } html .zlisten .zlisten-wave i:nth-child(4n) { animation-delay: .45s; }
  @keyframes zlisten-wave { 50% { height: 32px; } }
  html .zlisten:not([data-state="listening"]) .zlisten-wave i { animation: none; opacity: .5; }
  html .zlisten .zlisten-orb { position: relative !important; left: auto !important; bottom: auto !important; opacity: 1 !important; align-self: center; width: 132px !important; height: 132px !important; margin: 0 0 18px; }
  html .zlisten .zlisten-orb::before, html .zlisten .zlisten-orb::after, html .zlisten .zlisten-halo::before, html .zlisten .zlisten-halo::after { content: none !important; display: none !important; }
  html .zlisten .zlisten-halo { inset: 0 !important; animation: none !important; transform: none !important; border-radius: 50%; background: none !important; box-shadow: 0 0 0 16px rgba(47, 191, 113, .18), 0 0 0 34px rgba(47, 191, 113, .08); }
  html .zlisten .zlisten-face { background: #2fbf71 !important; box-shadow: none !important; gap: 14px; }
  html .zlisten .zlisten-face i { width: 15px !important; height: 28px !important; background: #12382b !important; }
  html .zlisten .zlisten-hint { margin: 0 !important; padding: 0 24px; text-align: center; font-size: 17px !important; font-weight: 600; color: #fff !important; }
  html .zlisten .zlisten-sub { display: block; margin: 4px 0 0; padding: 0 24px calc(26px + env(safe-area-inset-bottom, 0px)); min-height: 1.4em; text-align: center; font-size: 13px; color: #9fbcae; }
  @media (prefers-reduced-motion: reduce) { html .zlisten .zlisten-wave i, html .zlisten .zlisten-rec i { animation: none; } }
  /* Håll i WhatsApps klass: vågen följer rösten (--zl-level), låset ovanför knappen följer fingret (--zl-drag), åt sidan
     blir lagret rött (släpp avbryter), låst ger raden Avbryt · Redigera · Skicka. Nedersta 80 px är tummens. */
  html .zlisten { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  html .zlisten .zlisten-sub { padding-bottom: 0; }
  html .zlisten .zlisten-wave i { animation: none !important; opacity: 1; transform: scaleY(calc(.3 + var(--zl-level, 0) * var(--k, 1) * 2.6)); transition: transform 90ms linear; }
  html .zlisten .zlisten-wave i:nth-child(odd) { --k: .7; } html .zlisten .zlisten-wave i:nth-child(3n) { --k: 1.2; } html .zlisten .zlisten-wave i:nth-child(5n) { --k: .9; }
  html .zlisten .zlisten-note { margin: 10px 24px 0; min-height: 1.3em; font-size: 13px; color: #f3c98b; }
  html .zlisten .zlisten-note:empty { visibility: hidden; }
  html .zlisten .zlisten-lock { display: flex; align-self: center; justify-content: center; height: 64px; margin-bottom: 4px; }
  html .zlisten .zlisten-lock__knob { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(calc(var(--zl-drag, 0px) * .6)); }
  html .zlisten:not([data-state="listening"]):not([data-state="connecting"]) .zlisten-lock,
  html .zlisten[data-locked="true"] .zlisten-lock { visibility: hidden; }
  html .zlisten .zlisten-edges { position: absolute !important; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; padding: 0 20px; font-size: 13px; color: #9fbcae; }
  html .zlisten:not([data-state="listening"]) .zlisten-edges, html .zlisten[data-locked="true"] .zlisten-edges { display: none; }
  html .zlisten[data-cancel="true"] { background: #6b2620 !important; }
  html .zlisten[data-cancel="true"] .zlisten-edges { color: #fff; font-weight: 600; }
  html .zlisten[data-cancel="true"] .zlisten-sub, html .zlisten[data-cancel="true"] .zlisten-lock { visibility: hidden; }
  html .zlisten .zlisten-actions { display: none; }
  html .zlisten[data-locked="true"][data-state="listening"] .zlisten-actions, html .zlisten[data-locked="true"][data-state="connecting"] .zlisten-actions { display: flex; gap: 8px; padding: 14px 16px 0; pointer-events: auto; }
  html .zlisten .zlisten-actions button { flex: 1; min-height: 48px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: transparent; color: #fff; font: 600 15px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
  html .zlisten .zlisten-actions .is-primary { border-color: #2fbf71; background: #2fbf71; color: #0b2a1f; }
  html .zlisten[data-state="notice"] .zlisten-wave, html .zlisten[data-state="notice"] .zlisten-orb, html .zlisten[data-state="notice"] .zlisten-top { visibility: hidden; }
  @media (prefers-reduced-motion: reduce) { html .zlisten .zlisten-wave i { transition: none; } }
  .zmic { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; background: rgba(9, 20, 15, .45); }
  .zmic[hidden] { display: none; }
  .zmic__card { width: 100%; padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; background: #faf9f5; color: #1d2420; }
  .zmic__card h2 { margin: 0 0 6px; font: 500 22px/1.2 Newsreader, Georgia, serif; color: #12382b; }
  .zmic__card p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
  .zmic__tip { color: #5d6b61; font-size: 13px !important; }
  .zmic__tip:empty { display: none; }
  .zmic__row { display: flex; gap: 8px; margin-top: 14px; }
  .zmic__row button { flex: 1; min-height: 48px; border: 1px solid #dfe3de; border-radius: 999px; background: #fff; color: #1d2420; font: 600 15px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
  .zmic__row .is-primary { border-color: #1f6b4f; background: #1f6b4f; color: #fff; }
  .zmic__row [hidden] { display: none; }
}

/* Papperskorn i mobilvyns bakgrund (ägaren 2026-10-30: "som desktopens landningssida", "det kan röra sig lite") – samma
   korn som den publika heron (public-home-desktop.css: fyra frön av samma brus, frekvens .72, multiply), i samma takt men
   ljusare (ägaren: "en–två nyanser ljusare"). Bara bakgrunden, aldrig korten eller texten: ett fast lager bakom sidan
   (z-index −1 i body); ytorna som ritade sidans kräm är genomskinliga. Fasta band som ska dölja innehåll (startsidans
   sökfält och filter) bär samma bild, fäst mot skärmen och i takt (zimla-home-mobile.js). Stilla vid minskad rörelse. */
@media (max-width: 1023px) {
  :root { --zm-paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='720' height='180'><filter id='g1' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' seed='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .08 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .24 -.1'/></filter><filter id='g2' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' seed='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .08 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .24 -.1'/></filter><filter id='g3' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .08 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .24 -.1'/></filter><filter id='g4' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .08 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .24 -.1'/></filter><rect x='0' width='180' height='180' filter='url(%23g1)'/><rect x='180' width='180' height='180' filter='url(%23g2)'/><rect x='360' width='180' height='180' filter='url(%23g3)'/><rect x='540' width='180' height='180' filter='url(%23g4)'/></svg>"); }
  /* I appens bakgrundsscen (base.html .zimla-scene, fast bakom allt innehåll), som varje sida färgar: kornet ovanpå
     sidans egen färg, under allt innehåll. */
  .zimla-scene::before {
    content: "" !important; position: absolute; inset: 0; z-index: 5; pointer-events: none; mix-blend-mode: multiply;
    background: var(--zm-paper-grain) 0 0 / 720px 180px repeat; animation: zm-grain .64s step-end infinite;
  }
  /* Ett fast band med kornet (fäst mot skärmen, som lagret): lägg klassen på det som ska täcka innehåll bakom sig. */
  .zm-grain-band { background: var(--zm-paper-grain) 0 0 / 720px 180px repeat fixed, var(--zm-paper) !important; background-blend-mode: multiply, normal; animation: zm-grain .64s step-end infinite; }
}
@keyframes zm-grain {
  0%, 100% { background-position: 0 0; }
  25% { background-position: -180px 0; }
  50% { background-position: -360px 0; }
  75% { background-position: -540px 0; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .zimla-scene::before, .zm-grain-band { animation: none; } }
@media print { .zimla-scene::before { display: none; } }
