/* =====================================================================
   MyLFCHistory — "Crimson matchday" design system
   Production stylesheet. Load AFTER bootstrap.css.
   All classes are prefixed `mlh-` so they never collide with Bootstrap.
   Reference pages: ../reference/*.html  ·  Specs: ../DESIGN-SYSTEM.md
   ===================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family:'Bitter'; font-weight:500; font-display:swap; src:url(../fonts/bitter-500-normal.ttf) format('truetype'); }
@font-face { font-family:'Bitter'; font-weight:700; font-display:swap; src:url(../fonts/bitter-700-normal.woff2) format('woff2'); }
@font-face { font-family:'Bitter'; font-weight:800; font-display:swap; src:url(../fonts/bitter-800-normal.ttf) format('truetype'); }
@font-face { font-family:'Barlow'; font-weight:400; font-display:swap; src:url(../fonts/barlow-400-normal.woff2) format('woff2'); }
@font-face { font-family:'Barlow'; font-weight:500; font-display:swap; src:url(../fonts/barlow-500-normal.woff2) format('woff2'); }
@font-face { font-family:'Barlow'; font-weight:600; font-display:swap; src:url(../fonts/barlow-600-normal.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-weight:600; font-display:swap; src:url(../fonts/barlow-condensed-600-normal.ttf) format('truetype'); }
@font-face { font-family:'Barlow Condensed'; font-weight:700; font-display:swap; src:url(../fonts/barlow-condensed-700-normal.ttf) format('truetype'); }
@font-face { font-family:'Kalam'; font-weight:400; font-display:swap; src:url(../fonts/kalam-400-normal.woff2) format('woff2'); }
@font-face { font-family:'Kalam'; font-weight:700; font-display:swap; src:url(../fonts/kalam-700-normal.woff2) format('woff2'); }

/* =====================================================================
   MyLFCHistory — "Crimson matchday" design system
   Production stylesheet. Load AFTER bootstrap.css.
   All classes are prefixed `mlh-` so they never collide with Bootstrap.
   Reference pages: ../reference/*.html  ·  Specs: ../DESIGN-SYSTEM.md
   ===================================================================== */

/* ---------- 1. Fonts ------------------------------------------------
   Prefer self-hosting (wwwroot/fonts) for privacy + speed. Families:
   Bitter 500/700/800 · Barlow 400/500/600 · Barlow Condensed 600/700 · Kalam 400/700
   Dev fallback (put in _Layout <head>):
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bitter:wght@500;700;800&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@600;700&family=Kalam:wght@400;700&display=swap">
--------------------------------------------------------------------- */

/* ---------- 2. Tokens ---------------------------------------------- */
/* ---------- 1. Fonts ------------------------------------------------
   Prefer self-hosting (wwwroot/fonts) for privacy + speed. Families:
   Bitter 500/700/800 · Barlow 400/500/600 · Barlow Condensed 600/700 · Kalam 400/700
   Dev fallback (put in _Layout <head>):
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bitter:wght@500;700;800&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@600;700&family=Kalam:wght@400;700&display=swap">
--------------------------------------------------------------------- */

/* ---------- 2. Tokens ---------------------------------------------- */
:root {
  /* Ground — crimson night */
  /* Ground — inviting crimson: 140° diagonal + raised glow + 12% film grain */
  --mlh-ground-start: #670B1B;
  --mlh-ground-mid: #8C0D20;    /* also <meta name="theme-color"> */
  --mlh-ground-end: #4D0814;
  --mlh-glow: #B71932;
  --mlh-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  --mlh-header-bg: rgba(40, 5, 9, .55);
  --mlh-footer-bg: rgba(20, 3, 5, .5);
  --mlh-panel-bg: rgba(30, 4, 7, .55);          /* dark see-through panel */
  --mlh-line: rgba(246, 235, 221, .12);
  --mlh-line-strong: rgba(246, 235, 221, .3);

  /* Text on crimson */
  --mlh-text: #F6EBDD;
  --mlh-text-soft: #E8D3CB;
  --mlh-text-muted: #F2D8D1;
  --mlh-link: #FFCDC2;
  --mlh-link-hover: #FFE3DC;
  --mlh-accent: #FFD4B9;        /* warm peach: numbers, dates, small accents, avatar */
  --mlh-accent-ink: #6E0A19;    /* text on accent / on cream buttons */
  --mlh-signature: #FF6B5B;     /* the handwritten "My" (large only) + active nav underline */

  /* Reds */
  --mlh-red: #C8102E;           /* stamps, ticket band, tags, programme masthead, buttons ON PAPER */
  --mlh-red-hover: #A90D26;
  --mlh-btn: #F2EADB;           /* cream button: primary ONLY on the bright "You were there" moment (.mlh-kop); Stamp tab circle */
  --mlh-btn-text: #6E0A19;
  --mlh-btn-hover: #FFFFFF;
  /* Primary action (polish round): bright red, white text, cream ring on crimson so it never blends */
  --mlh-action: #DA1F3B;        /* white text 4.95:1 */
  --mlh-action-hover: #C4152F;
  --mlh-action-ring: rgba(255, 214, 204, .6);

  /* Surfaces — dark crimson, SOLID so rows/panels separate from the ground */
  --mlh-surface: #3A0611;       /* rows, panels */
  --mlh-surface-2: #2D040C;     /* zebra rows, inputs, sticky month headers */
  --mlh-surface-3: #4A0A17;     /* "just added" row */
  --mlh-surface-hover: #521020;
  --mlh-surface-selected: #5C1121;
  --mlh-focus: #FFD4B9;         /* focus ring on crimson; #8C0D20 on cream */
  --mlh-ok: #2E7D4F;
  --mlh-ok-surface: #F1F8F3;   /* success panel on paper */
  --mlh-error: #FF9A8A;
  --mlh-banner-1: #C21A33;
  --mlh-banner-2: #7A0E1C;
  --mlh-banner-text: #F3D9C8;

  /* Paper (artefacts) */
  --mlh-paper: #EFE4D0;
  --mlh-paper-2: #E4D6BC;       /* ticket stub, aged paper */
  --mlh-paper-aged: #E2CFA8;
  --mlh-polaroid: #F6F0E4;
  --mlh-ink: #2A2420;
  --mlh-ink-2: #4A3F35;
  --mlh-ink-muted: #6B5E50;
  --mlh-pencil: #706253;        /* handwriting prompts on paper (4.7:1) */
  --mlh-paper-link: #B0101F;

  /* Type */
  --mlh-font-display: 'Bitter', Georgia, serif;
  --mlh-font-body: 'Barlow', system-ui, sans-serif;
  --mlh-font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mlh-font-hand: 'Kalam', 'Comic Sans MS', cursive;

  /* Shape + depth */
  --mlh-radius-sm: 4px;   /* tickets, stamps */
  --mlh-radius: 6px;      /* paper cards, buttons */
  --mlh-radius-lg: 10px;  /* panels */
  --mlh-shadow-paper: 0 18px 40px rgba(0, 0, 0, .35);
  --mlh-shadow-lift: 0 22px 44px rgba(0, 0, 0, .5);
  --mlh-container: 1280px;
}

/* ---------- 3. Base ------------------------------------------------ */
body.mlh {
  margin: 0;
  font-family: var(--mlh-font-body);
  color: var(--mlh-text);
  background-color: var(--mlh-ground-end);
  background-image:
    radial-gradient(1000px 640px at 72% 220px, var(--mlh-glow) 0%, transparent 70%),
    linear-gradient(140deg, var(--mlh-ground-start) 0%, var(--mlh-ground-mid) 52%, var(--mlh-ground-end) 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: clip;
}
/* Film grain over everything (fixed, non-interactive) */
body.mlh::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .12; background-image: var(--mlh-grain); z-index: 1000; }
.mlh a { color: var(--mlh-link); }
.mlh a:hover { color: var(--mlh-link-hover); }
.mlh-wrap { max-width: var(--mlh-container); margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
@media (max-width: 900px) { .mlh-wrap { padding: 0 16px; } }

/* ---------- 4. Type ------------------------------------------------ */
.mlh-display { font-family: var(--mlh-font-display); font-weight: 800; letter-spacing: -.015em; line-height: 1; }
.mlh-h1 { font-family: var(--mlh-font-display); font-weight: 800; font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -.015em; margin: 0; }
.mlh-h2 { font-family: var(--mlh-font-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); margin: 0; }
.mlh-h3 { font-family: var(--mlh-font-display); font-weight: 800; font-size: 21px; margin: 0; }
.mlh-slab { font-family: var(--mlh-font-display); }
/* Polish round: small UI text is sentence case Barlow (13px min). Condensed caps are for tickets & stamps only (.mlh-label--caps). */
.mlh-label { font: 600 13px var(--mlh-font-body); color: var(--mlh-text-muted); }
.mlh-paper .mlh-label { color: var(--mlh-ink-muted); }
.mlh-label--caps { font-family: var(--mlh-font-label); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 12px; }
.mlh-eyebrow { font: 600 14px var(--mlh-font-body); letter-spacing: .02em; color: var(--mlh-accent); }
.mlh-hand { font-family: var(--mlh-font-hand); }        /* PERSONAL VOICE ONLY — see DESIGN-SYSTEM.md */
.mlh-muted { color: var(--mlh-text-muted); }

/* Logo: handwritten "My" + formal wordmark */
.mlh-logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--mlh-text) !important; }
.mlh-logo__my { font-family: var(--mlh-font-hand); font-weight: 700; font-size: 30px; color: var(--mlh-signature); transform: rotate(-6deg); display: inline-block; margin-right: 2px; }
.mlh-logo__word { font-family: var(--mlh-font-display); font-weight: 800; font-size: 22px; }

/* ---------- 5. Buttons -------------------------------------------- */
.mlh-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--mlh-radius); font: 600 16px/1 var(--mlh-font-body); text-decoration: none; border: 0; cursor: pointer; }
.mlh-btn--primary { background: var(--mlh-action); color: #fff !important; box-shadow: inset 0 0 0 1px var(--mlh-action-ring), 0 8px 20px rgba(30, 2, 6, .45); }
.mlh-btn--primary:hover { background: var(--mlh-action-hover); }
.mlh-kop .mlh-btn--primary, .mlh-btn--cream { background: var(--mlh-btn); color: var(--mlh-btn-text) !important; box-shadow: 0 8px 20px rgba(30, 2, 6, .4); }
.mlh-kop .mlh-btn--primary:hover, .mlh-btn--cream:hover { background: var(--mlh-btn-hover); }
/* On paper surfaces the primary button flips to red */
.mlh-paper .mlh-btn--primary { background: var(--mlh-red); color: #fff !important; box-shadow: none; }
.mlh-paper .mlh-btn--primary:hover { background: var(--mlh-red-hover); }
.mlh-btn--ghost { background: rgba(0, 0, 0, .15); color: var(--mlh-text) !important; border: 1px solid var(--mlh-line-strong); }
.mlh-btn--ghost:hover { border-color: rgba(246, 235, 221, .6); }
.mlh-btn--sm { min-height: 40px; font-size: 14px; padding: 0 14px; }
.mlh-iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--mlh-text); }
.mlh :focus-visible { outline: 3px solid var(--mlh-focus); outline-offset: 2px; }
.mlh .mlh-paper :focus-visible, .mlh .mlh-toast :focus-visible, .mlh .mlh-creambar :focus-visible { outline-color: #8C0D20; }

/* ---------- 6. Header / nav --------------------------------------- */
.mlh-header { border-bottom: 1px solid var(--mlh-line); background: var(--mlh-header-bg); }
.mlh-header__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.mlh-nav { display: flex; gap: 30px; flex: 1; justify-content: center; }
.mlh-nav a { color: var(--mlh-text-muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; }
.mlh-nav a:hover { color: #fff; }
.mlh-nav a.active, .mlh-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--mlh-signature); }
.mlh-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mlh-accent); color: var(--mlh-accent-ink) !important; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; text-decoration: none; }
@media (max-width: 900px) { .mlh-nav, .mlh-hide-sm { display: none !important; } }

/* ---------- 7. Surfaces ------------------------------------------- */
.mlh-paper { background: var(--mlh-paper); color: var(--mlh-ink); border-radius: var(--mlh-radius); box-shadow: var(--mlh-shadow-paper); }
.mlh-paper a { color: var(--mlh-paper-link); }
.mlh-paper .mlh-muted { color: var(--mlh-ink-muted); }
.mlh-panel { background: var(--mlh-panel-bg); border: 1px solid var(--mlh-line); border-radius: var(--mlh-radius-lg); }
.mlh-perf-left { border-left: 2px dashed rgba(42, 36, 32, .3); }        /* perforation inside paper cards */
.mlh-dashed-slot { border: 2px dashed var(--mlh-line-strong); border-radius: var(--mlh-radius); background: rgba(0, 0, 0, .12); color: var(--mlh-text-muted); }
.mlh-dashed-slot:hover { border-color: var(--mlh-signature); color: #fff; }

/* Torn paper note (quotes, story prompts) */
.mlh-torn { clip-path: polygon(0 3%,6% 0,14% 2%,22% 0,31% 3%,40% 0,50% 2%,60% 0,70% 3%,80% 0,90% 2%,100% 0,100% 97%,93% 100%,84% 97%,74% 100%,64% 98%,54% 100%,44% 97%,34% 100%,24% 98%,14% 100%,5% 97%,0 100%); border-radius: 0; }

/* ---------- 8. Artefacts ------------------------------------------ */
/* Ticket: <div class="mlh-ticket"><div class="mlh-ticket__band"></div><div class="mlh-ticket__main">…</div><div class="mlh-ticket__stub">…</div></div> */
.mlh-ticket { display: flex; background: var(--mlh-paper); color: var(--mlh-ink); border-radius: var(--mlh-radius-sm); box-shadow: var(--mlh-shadow-lift); overflow: hidden; }
.mlh-ticket__band { width: 20px; flex: none; background: var(--mlh-red); }
.mlh-ticket__main { flex: 1; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.mlh-ticket__stub { width: 26%; flex: none; border-left: 2px dashed rgba(42, 36, 32, .4); background: var(--mlh-paper-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--mlh-ink-muted); }
.mlh-ticket__date { font-family: 'Courier New', monospace; color: var(--mlh-ink-2); }
.mlh-ticket--aged { background: var(--mlh-paper-aged); }

/* Polaroid with tape */
.mlh-polaroid { background: var(--mlh-polaroid); padding: 12px 12px 52px; box-shadow: var(--mlh-shadow-lift); position: relative; }
.mlh-polaroid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mlh-polaroid__caption { position: absolute; left: 16px; right: 16px; bottom: 12px; font-family: var(--mlh-font-hand); font-size: 21px; color: var(--mlh-ink); }
.mlh-tape { position: absolute; top: -13px; left: 38%; width: 100px; height: 26px; background: rgba(238, 226, 200, .7); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transform: rotate(-4deg); }

/* Programme: cream with red masthead (solid red disappears on crimson) */
.mlh-programme { background: var(--mlh-paper); color: var(--mlh-ink); box-shadow: 0 18px 36px rgba(0, 0, 0, .45); display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 3 / 4; }
.mlh-programme__mast { background: var(--mlh-red); color: #F8EEDF; padding: 14px 16px; }

/* Supporter banner (decorative) */
.mlh-banner { background: linear-gradient(180deg, var(--mlh-banner-1), var(--mlh-banner-2)); color: var(--mlh-banner-text); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); clip-path: polygon(0 0,100% 0,100% 100%,88% 92%,76% 100%,64% 92%,52% 100%,40% 92%,28% 100%,16% 92%,0 100%); }

/* Photo fallback when the user has no photo yet — floodlit crowd */
.mlh-crowd {
  background:
    radial-gradient(ellipse 60% 45% at 22% 0%, rgba(255, 236, 200, .45), transparent 70%),
    radial-gradient(ellipse 60% 45% at 80% 0%, rgba(255, 236, 200, .35), transparent 70%),
    radial-gradient(circle, rgba(230, 50, 60, .7) 1.4px, transparent 2px) 0 55% / 7px 7px,
    linear-gradient(180deg, #3B1418 0%, #5A1119 55%, #2A0A0D 100%);
  position: relative; display: flex; align-items: flex-end; justify-content: flex-end;
  color: rgba(255, 240, 225, .75); font: 600 11px var(--mlh-font-label); text-transform: uppercase; letter-spacing: .18em;
}

/* ---------- 9. Stamps (the core visual language) ------------------ */
/* <div class="mlh-stamp mlh-stamp--land"><span class="mlh-stamp__title">I was there</span><span class="mlh-stamp__sub">Basel · 2016</span></div> */
.mlh-stamp { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 24px; border: 4px solid var(--mlh-red); outline: 2px solid var(--mlh-red); outline-offset: 3px; color: var(--mlh-red); background: rgba(239, 228, 208, .95); font-family: var(--mlh-font-label); text-transform: uppercase; font-weight: 700; letter-spacing: .1em; line-height: 1; border-radius: var(--mlh-radius-sm); transform: rotate(var(--mlh-stamp-tilt, -7deg)); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.mlh-stamp__title { font-size: 34px; }
.mlh-stamp__sub { font-size: 13px; letter-spacing: .22em; }
.mlh-stamp--ink { background: transparent; box-shadow: none; }               /* printed onto paper */
.mlh-stamp--sm .mlh-stamp__title { font-size: 20px; } .mlh-stamp--sm { padding: 8px 14px; border-width: 3px; }
/* Passport stamp: circular, coral on crimson */
.mlh-pstamp { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--mlh-accent); outline: 1px solid var(--mlh-accent); outline-offset: 4px; color: var(--mlh-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transform: rotate(var(--mlh-stamp-tilt, -8deg)); font-family: var(--mlh-font-label); text-transform: uppercase; font-weight: 700; letter-spacing: .14em; }

/* "Thunk": play ONCE, when a match is newly stamped (add .mlh-stamp--land via JS / TempData flag) */
.mlh-stamp--land { animation: mlh-thunk .55s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
@keyframes mlh-thunk {
  0%   { opacity: 0; transform: scale(2.3) rotate(-20deg); }
  70%  { opacity: 1; transform: scale(.95) rotate(var(--mlh-stamp-tilt, -7deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--mlh-stamp-tilt, -7deg)); }
}
@media (prefers-reduced-motion: reduce) { .mlh-stamp--land { animation: none; } }

/* ---------- 10. Collage ("the pile") ------------------------------- */
/* Absolutely positioned artefacts inside a relative box; positions in % so it scales.
   On small screens the whole collage is zoomed down rather than re-laid out. */
.mlh-collage { position: relative; height: 420px; }
.mlh-collage > * { position: absolute; }
@media (max-width: 900px) { .mlh-collage { zoom: .56; width: 178%; } }

/* ---------- 11. Memory card --------------------------------------- */
.mlh-memory { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--mlh-ink) !important; background: var(--mlh-paper); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.mlh-memory:hover { transform: translateY(-2px); }
.mlh-memory__media { height: 150px; position: relative; }
.mlh-memory__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlh-memory__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.mlh-tag { position: absolute; left: 12px; top: 12px; background: var(--mlh-red); color: #fff; font: 700 11px var(--mlh-font-label); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--mlh-radius-sm); }
.mlh-prompt { font-family: var(--mlh-font-hand); font-size: 18px; color: var(--mlh-pencil); }

/* ---------- 12. Timeline (paper "Your story so far") --------------- */
.mlh-timeline { position: relative; display: grid; grid-template-columns: repeat(var(--mlh-tl-cols, 3), minmax(0, 1fr)); gap: 16px; }
.mlh-timeline::before { content: ""; position: absolute; left: 10px; right: 0; top: 9px; height: 2px; background: rgba(42, 36, 32, .35); }
.mlh-timeline__item { position: relative; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--mlh-ink) !important; }
.mlh-timeline__dot { width: 14px; height: 14px; margin: 3px; border-radius: 50%; background: var(--mlh-ink); }
.mlh-timeline__item--first .mlh-timeline__dot { width: 20px; height: 20px; margin: 0; background: var(--mlh-red); box-shadow: 0 0 0 5px rgba(200, 16, 46, .18); }
.mlh-timeline__date { font-size: 14px; color: var(--mlh-paper-link); font-weight: 600; margin-top: 12px; }

/* ---------- 13. Tabs ------------------------------------------------ */
.mlh-tabs { display: flex; gap: 26px; }
.mlh-tabs a { color: var(--mlh-text-muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 0; }
.mlh-tabs a.active, .mlh-tabs a[aria-current="page"] { color: var(--mlh-link); box-shadow: inset 0 -2px 0 var(--mlh-signature); }

/* ---------- 14. Imperfection helpers (use sparingly: ~10%) --------- */
.mlh-tilt-l { transform: rotate(-1.2deg); }
.mlh-tilt-r { transform: rotate(1.2deg); }

/* ---------- 15. Mobile tab bar (< 900px) ---------------------------- */
/* <nav class="mlh-tabbar"> Home · Matches · [Stamp] · Passport · More </nav> — fixed to the bottom; add
   padding-bottom: calc(84px + env(safe-area-inset-bottom)) to <main> when shown. Desktop keeps .mlh-nav. */
.mlh-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: stretch; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(28, 3, 6, .96); border-top: 1px solid var(--mlh-line); }
.mlh-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; text-decoration: none; color: var(--mlh-text-muted); font: 600 11px var(--mlh-font-body); }
.mlh-tabbar a[aria-current="page"] { color: #fff; }
.mlh-tabbar a[aria-current="page"] svg { color: var(--mlh-accent); }
.mlh-tabbar__stamp span { width: 58px; height: 58px; margin-top: -20px; border-radius: 50%; background: var(--mlh-btn); color: var(--mlh-ground-mid); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .45), 0 0 0 4px #1C0306, 0 0 0 6px var(--mlh-btn); }
@media (max-width: 900px) { .mlh-tabbar { display: flex; } }

/* "More" menu: full-screen sheet (dialog) — see reference/mobile-menu.html */
.mlh-menu-item { display: flex; align-items: center; gap: 14px; min-height: 52px; text-decoration: none; color: var(--mlh-text) !important; border-bottom: 1px solid var(--mlh-line); }
.mlh-menu-item__label { flex: 1; font: 700 19px var(--mlh-font-display); }

/* ---------- 16. Stepper (Add a match) ----------------------------- */
.mlh-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.mlh-steps li { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(246, 235, 221, .18); color: var(--mlh-text-muted); }
.mlh-steps li[aria-current="step"] { border-bottom: 3px solid var(--mlh-signature); color: #fff; }
.mlh-steps__dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 14px var(--mlh-font-label); }
.mlh-steps li[aria-current="step"] .mlh-steps__dot, .mlh-steps li.is-done .mlh-steps__dot { background: var(--mlh-accent); color: var(--mlh-accent-ink); }
.mlh-input { min-height: 48px; width: 100%; box-sizing: border-box; border-radius: var(--mlh-radius); border: 1px solid var(--mlh-line-strong); background: rgba(0, 0, 0, .22); color: var(--mlh-text); font: 500 16px var(--mlh-font-body); padding: 0 14px; }
.mlh-input::placeholder { color: #E0B9B1; }
.mlh-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mlh-line-strong); background: transparent; color: var(--mlh-text-muted); font: 500 14px var(--mlh-font-body); }
.mlh-chip[aria-pressed="true"] { background: var(--mlh-text); color: var(--mlh-ground-end); border-color: var(--mlh-text); }
/* The unstamped target: a dashed stamp-shaped button the user presses */
.mlh-stamp-target { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 30px; border: 4px dashed rgba(246, 235, 221, .55); background: transparent; color: var(--mlh-text); font: 700 30px var(--mlh-font-label); text-transform: uppercase; letter-spacing: .1em; border-radius: var(--mlh-radius); transform: rotate(-7deg); cursor: pointer; }
.mlh-stamp-target:hover { border-color: var(--mlh-accent); }

/* ---------- 17. Timeline rail (full page) ------------------------- */
.mlh-rail { --pad: 56px; position: relative; padding-left: var(--pad); display: flex; flex-direction: column; gap: 36px; }
.mlh-rail::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: rgba(246, 235, 221, .22); }
.mlh-rail__group { position: relative; display: flex; flex-direction: column; gap: 14px; }
.mlh-rail__node { position: absolute; top: 6px; left: calc(10px - var(--pad)); width: 20px; height: 20px; border-radius: 50%; background: var(--mlh-accent); border: 4px solid #7A0C1C; box-sizing: border-box; }
.mlh-rail__node--future { background: transparent; border: 2px dashed var(--mlh-accent); }
.mlh-rail__node--gap { width: 12px; height: 12px; left: calc(14px - var(--pad)); top: 30px; background: rgba(246, 235, 221, .3); border: 0; }
.mlh-entry { display: flex; gap: 20px; align-items: center; background: var(--mlh-paper); color: var(--mlh-ink) !important; border-radius: var(--mlh-radius); padding: 16px 20px; text-decoration: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); position: relative; }
.mlh-result { font: 700 11px var(--mlh-font-label); letter-spacing: .14em; padding: 5px 9px; border-radius: 3px; }
.mlh-result--w { background: var(--mlh-red); color: #fff; } .mlh-result--d { background: var(--mlh-ink-muted); color: #fff; } .mlh-result--l { background: var(--mlh-ink); color: var(--mlh-paper); }
@media (max-width: 900px) { .mlh-rail { --pad: 44px; } .mlh-entry__thumb { display: none; } }

/* ---------- 18. Passport ------------------------------------------ */
.mlh-book { display: flex; flex-wrap: wrap; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); background: var(--mlh-paper); color: var(--mlh-ink); }
.mlh-book__page { flex: 1 1 420px; min-width: 0; padding: 36px 40px; box-sizing: border-box; }
.mlh-book__page--left { background: linear-gradient(90deg, var(--mlh-paper) 85%, #DCCDB0); }
.mlh-book__page--right { background: linear-gradient(90deg, #D9CAAC, var(--mlh-paper) 12%); }
/* Stamp inks vary like real passports: red (default), blue, violet */
.mlh-stamp--blue { --mlh-red: #1E4D8C; }
.mlh-stamp--violet { --mlh-red: #6B2B8A; }
.mlh-stamp-slot { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed rgba(42, 36, 32, .28); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--mlh-ink-muted); font: 500 13px var(--mlh-font-body); padding: 14px; box-sizing: border-box; }
.mlh-milestone { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 8px; }
.mlh-milestone--earned { background: var(--mlh-paper); color: var(--mlh-ink); }
.mlh-milestone--next { border: 2px dashed var(--mlh-line-strong); }
.mlh-progress { height: 8px; border-radius: 4px; background: rgba(246, 235, 221, .15); overflow: hidden; }
.mlh-progress > span { display: block; height: 100%; background: var(--mlh-accent); }
@media (max-width: 900px) { .mlh-book__page { padding: 26px 22px; } }

/* ---------- 19. Auth: sign in, register, account states ----------- */
/* Forms sit on paper. The sign-in card is a ticket: red band + form + stub ("ADMIT ONE · SUPPORTER" + "BACK AGAIN" stamp). */
.mlh-auth { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 64px 0 88px; }
.mlh-auth__form { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.mlh-auth__side { flex: 1 1 400px; min-width: 0; }
.mlh-auth-card { display: flex; background: var(--mlh-paper); color: var(--mlh-ink); border-radius: var(--mlh-radius); box-shadow: 0 30px 60px rgba(40, 3, 8, .5); overflow: hidden; }
.mlh-auth-card a { color: var(--mlh-paper-link); }
.mlh-auth-card__band { width: 18px; flex: none; background: var(--mlh-red); }
.mlh-auth-card__body { flex: 1; min-width: 0; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.mlh-auth-card__stub { width: 150px; flex: none; border-left: 2px dashed rgba(42, 36, 32, .35); background: var(--mlh-paper-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.mlh-field { display: flex; flex-direction: column; gap: 6px; }
.mlh-field > label { font-size: 14px; font-weight: 600; }
.mlh-help { font-size: 13px; color: var(--mlh-ink-muted); }
.mlh-input--paper { min-height: 50px; width: 100%; box-sizing: border-box; border-radius: var(--mlh-radius); border: 1.5px solid rgba(42, 36, 32, .28); background: #FBF6EC; color: var(--mlh-ink); font: 500 16px var(--mlh-font-body); padding: 0 14px; }
.mlh-input--paper:focus { outline: 2px solid var(--mlh-paper-link); outline-offset: 1px; border-color: var(--mlh-paper-link); }
.mlh-input--paper[aria-invalid="true"] { border: 2px solid var(--mlh-paper-link); background: #FFF4F1; }
.mlh-field__error { font-size: 14px; font-weight: 600; color: var(--mlh-paper-link); }
.mlh-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--mlh-radius); background: #FFF4F1; border: 1.5px solid var(--mlh-paper-link); color: var(--mlh-ink); font-size: 15px; line-height: 1.45; }
.mlh-reveal { position: absolute; right: 4px; top: 3px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--mlh-ink-muted); display: flex; align-items: center; justify-content: center; }
.mlh-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 15px; line-height: 1.4; padding-top: 10px; box-sizing: border-box; }
.mlh-check input { width: 20px; height: 20px; accent-color: var(--mlh-red); margin: 0; flex: none; }
.mlh-strength { display: flex; gap: 4px; } .mlh-strength span { flex: 1; height: 5px; border-radius: 3px; background: rgba(42, 36, 32, .15); } .mlh-strength span.on { background: var(--mlh-red); }
.mlh-btn--block { width: 100%; box-sizing: border-box; justify-content: center; }
@media (max-width: 900px) { .mlh-auth__side, .mlh-auth-card__stub { display: none; } .mlh-auth { padding-top: 40px; } }

/* =====================================================================
   12. Add-a-match journey components (polish round)
   Pixel references: ../reference/journey/*.html (their unprefixed classes
   come from reference/journey/journey.css — this section is the mlh- version).
   ===================================================================== */

/* The one signature moment: "You were there." — brighter crimson */
.mlh-kop { position: relative; background: radial-gradient(900px 620px at 68% 32%, #E0263F 0%, transparent 68%), linear-gradient(140deg, #8A0E22 0%, #B0122C 50%, #6A0A1A 100%); box-shadow: inset 0 0 120px rgba(40, 3, 8, .35); }
.mlh-kop::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: var(--mlh-grain); }
.mlh-kop > * { position: relative; }

/* Secondary buttons */
.mlh-btn--paper { background: transparent; color: var(--mlh-ink) !important; border: 1.5px solid rgba(42, 36, 32, .38); box-shadow: none; }
.mlh-btn--paper:hover { border-color: var(--mlh-ink); }
.mlh-btn[disabled], .mlh-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Solid surfaces */
.mlh-surface { background: var(--mlh-surface); border: 1px solid var(--mlh-line); border-radius: var(--mlh-radius-lg); }
.mlh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Segmented control — "One at a time | Select several", "Search | By season" */
.mlh-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--mlh-surface-2); border: 1px solid var(--mlh-line-strong); }
.mlh-seg > a, .mlh-seg > button { min-height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px var(--mlh-font-body); color: var(--mlh-text-muted) !important; text-decoration: none; border: 0; background: transparent; white-space: nowrap; }
.mlh-seg > [aria-pressed="true"], .mlh-seg > [aria-current="page"] { background: var(--mlh-text); color: #5A0915 !important; }
@media (max-width: 900px) { .mlh-seg { display: flex; } .mlh-seg > * { flex: 1; } }

/* ---- Status marks: icon + words + shape, never colour alone ----
   Not added       → .mlh-wasthere  (bright-red action, "+")
   Just added      → .mlh-badge--new (solid cream pill, ✓) + Undo link beside it
   In your history → .mlh-badge--history (tilted outlined stamp, passport mark)
   Going           → .mlh-badge--going (dashed pill, calendar)
   After the beta  → .mlh-later (dashed label) on a .mlh-soon block */
.mlh-wasthere { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--mlh-radius); background: var(--mlh-action); color: #fff !important; text-decoration: none !important; font: 700 15px var(--mlh-font-body); border: 0; cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--mlh-action-ring), 0 6px 14px rgba(30, 2, 6, .4); }
.mlh-wasthere::before { content: "+"; font: 700 18px/1 var(--mlh-font-body); margin-top: -2px; }
.mlh-wasthere:hover { background: var(--mlh-action-hover); }
.mlh-wasthere[aria-busy="true"]::before { content: none; }
.mlh-wasthere--retry { background: transparent; color: var(--mlh-accent) !important; box-shadow: inset 0 0 0 2px var(--mlh-accent); }
.mlh-wasthere--retry::before { content: none; }
.mlh-wasthere--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
@media (max-width: 350px) { .mlh-wasthere--sm { padding: 0 9px; font-size: 12px; } .mlh-wasthere--sm::before { content: none; } }

.mlh-badge--new, .mlh-badge--history, .mlh-badge--going { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1; }
.mlh-badge--new::before, .mlh-badge--history::before, .mlh-badge--going::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--mlh-ic) center / contain no-repeat; mask: var(--mlh-ic) center / contain no-repeat; }
.mlh-badge--new { --mlh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--mlh-btn); color: #6E0A19; font: 700 13px var(--mlh-font-body); }
.mlh-badge--history { --mlh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M7.5 12.5l3 3 6-7'/%3E%3C/svg%3E"); padding: 6px 10px; border: 2px solid var(--mlh-btn); outline: 1px solid rgba(242, 234, 219, .45); outline-offset: 2px; color: var(--mlh-btn); border-radius: 3px; transform: rotate(-4deg); font: 700 13px var(--mlh-font-label); letter-spacing: .06em; }
.mlh-paper .mlh-badge--history { border-color: var(--mlh-red); outline-color: rgba(200, 16, 46, .4); color: var(--mlh-red); }
.mlh-badge--going { --mlh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); padding: 5px 12px; border: 2px dashed var(--mlh-accent); color: var(--mlh-accent); border-radius: 999px; font: 600 13px var(--mlh-font-body); }
.mlh-later { font: 700 11px var(--mlh-font-body); padding: 3px 8px; border-radius: 4px; border: 1px dashed var(--mlh-accent); color: var(--mlh-accent); white-space: nowrap; }
.mlh-beta { font: 700 11px var(--mlh-font-body); padding: 3px 8px; border-radius: 4px; background: var(--mlh-accent); color: #6E0A19; }
/* After-beta features: visibly unavailable, never clickable or focusable (also add aria-hidden / inert) */
.mlh-soon { opacity: .55; pointer-events: none; filter: saturate(.3); }
.mlh-soon .mlh-chip, .mlh-soon .mlh-btn { border-style: dashed !important; background: transparent !important; box-shadow: none !important; }

/* ---- Search result row ---- */
.mlh-row { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 8px; background: var(--mlh-surface); border: 1px solid var(--mlh-line); }
.mlh-row:hover { background: var(--mlh-surface-3); }
.mlh-row__date { width: 86px; flex: none; display: flex; flex-direction: column; }
.mlh-row__date b { font: 800 18px var(--mlh-font-display); }
.mlh-row__date span { font-size: 13px; color: var(--mlh-text-muted); }
.mlh-row__what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mlh-row__comp { font: 600 13px var(--mlh-font-body); color: var(--mlh-accent); }
.mlh-row__title { font: 800 20px/1.2 var(--mlh-font-display); overflow-wrap: anywhere; }
.mlh-row__ground { font-size: 14px; color: var(--mlh-text-muted); }
.mlh-row--in { background: var(--mlh-surface-2); box-shadow: inset 4px 0 0 var(--mlh-btn); }
.mlh-row--new { background: var(--mlh-surface-3); border-color: rgba(242, 234, 219, .6); box-shadow: inset 4px 0 0 var(--mlh-btn); }
.mlh-row--going { border-style: dashed; border-color: rgba(246, 235, 221, .55); background: var(--mlh-surface-2); }
.mlh-row--error { border-color: var(--mlh-error); box-shadow: inset 4px 0 0 var(--mlh-error); }
@media (max-width: 600px) { .mlh-row { gap: 12px; padding: 12px; } .mlh-row__date { width: auto; } .mlh-row__title { font-size: 16px; } }

/* ---- Season list: one list, two modes (browse / select several) ---- */
.mlh-slist { border: 1px solid var(--mlh-line); border-radius: 12px; overflow: clip; background: var(--mlh-surface); }
.mlh-month { position: sticky; top: 0; z-index: 2; margin: 0; display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; background: #2A040B; border-bottom: 1px solid var(--mlh-line-strong); font: 700 15px var(--mlh-font-display); }
.mlh-month small { font: 500 13px var(--mlh-font-body); color: var(--mlh-text-muted); }
.mlh-srow { display: grid; grid-template-columns: var(--mlh-srow-cols, 72px 40px minmax(0, 1fr) auto); align-items: center; gap: 14px; padding: 9px 16px; min-height: 60px; box-sizing: border-box; background: var(--mlh-surface); border-bottom: 1px solid rgba(246, 235, 221, .09); }
.mlh-srow:nth-of-type(even) { background: var(--mlh-surface-2); }   /* months are <h3>, rows are <div> */
.mlh-srow:hover { background: var(--mlh-surface-hover); }
.mlh-slist--pick .mlh-srow { --mlh-srow-cols: 26px 72px 40px minmax(0, 1fr) auto; cursor: pointer; }
.mlh-srow__date { font: 800 16px var(--mlh-font-display); white-space: nowrap; }
.mlh-srow__date small { display: block; font: 500 12px var(--mlh-font-body); color: var(--mlh-text-muted); }
.mlh-ha { font: 700 12px var(--mlh-font-body); color: var(--mlh-text-soft); text-align: center; border: 1px solid var(--mlh-line-strong); border-radius: 4px; padding: 3px 0; min-width: 30px; }
.mlh-srow__match { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mlh-srow__title { font: 700 17px/1.2 var(--mlh-font-display); overflow-wrap: anywhere; }
.mlh-srow__meta { font-size: 13px; color: var(--mlh-text-muted); }
.mlh-srow__act { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.mlh-srow--in { box-shadow: inset 4px 0 0 var(--mlh-btn); }
.mlh-srow--new { background: var(--mlh-surface-3) !important; box-shadow: inset 4px 0 0 var(--mlh-btn), inset 0 0 0 1px rgba(242, 234, 219, .35); }
.mlh-srow[aria-checked="true"] { background: var(--mlh-surface-selected) !important; box-shadow: inset 4px 0 0 var(--mlh-action); }
.mlh-srow[aria-disabled="true"] { cursor: default; }
.mlh-srow[aria-disabled="true"] .mlh-srow__title, .mlh-srow[aria-disabled="true"] .mlh-srow__date { color: var(--mlh-text-muted); }
@media (max-width: 600px) {
  .mlh-srow { --mlh-srow-cols: 40px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .mlh-slist--pick .mlh-srow { --mlh-srow-cols: 26px 40px minmax(0, 1fr); }
  .mlh-srow .mlh-ha { display: none; }   /* home/away moves into the meta line on phones */
  .mlh-srow__date { text-align: center; } .mlh-srow__title { font-size: 15px; } .mlh-srow__meta { font-size: 12px; }
}
/* Tick box used in "Select several" */
.mlh-tick { width: 24px; height: 24px; box-sizing: border-box; border-radius: 5px; border: 2px solid rgba(246, 235, 221, .55); background: var(--mlh-surface-2); display: flex; align-items: center; justify-content: center; flex: none; }
.mlh-srow[aria-checked="true"] .mlh-tick { background: var(--mlh-action); border-color: #FFD6CC; }
.mlh-tick--lock { border: 0; background: transparent; }   /* already in history: a lock, never an empty box */
.mlh-tick--lock::before { content: ""; width: 18px; height: 18px; background: var(--mlh-text-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- Sticky cream action bar (Select several) ---- */
.mlh-creambar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-radius: 10px; background: #F6EBDD; color: var(--mlh-ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.mlh-creambar .mlh-btn--primary { background: var(--mlh-red); box-shadow: none; }

/* ---- Toasts: one stack, always ABOVE the sticky bar / tab bar ---- */
.mlh-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--mlh-bottom-offset, 0px)); z-index: 60; width: min(620px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mlh-toasts > * { pointer-events: auto; }
/* set --mlh-bottom-offset on <body> when a bar is showing: tab bar = 64px + safe area; creambar = its height + 16px */
.mlh-toast { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 8px; background: #F6EBDD; color: var(--mlh-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); font-size: 15px; border-left: 5px solid var(--mlh-red); }
.mlh-toast--ok { border-left-color: var(--mlh-ok); }
.mlh-toast a, .mlh-toast button.mlh-link { color: var(--mlh-paper-link) !important; font-weight: 600; }

/* ---- Upload progress ---- */
.mlh-pbar { height: 6px; border-radius: 3px; background: rgba(246, 235, 221, .16); overflow: hidden; }
.mlh-pbar > i { display: block; height: 100%; background: var(--mlh-accent); }

@media (prefers-reduced-motion: reduce) { .mlh * { transition: none !important; scroll-behavior: auto !important; } }
