/* La Mosaïk Supplier Portal — visual identity 2026 ("the mosaic kite") */
:root {
  --lm-ink: #1f1d1b;
  --lm-ink-soft: #5f5953;
  --lm-paper: #faf6f0;
  --lm-sand: #f1eadf;
  --lm-line: #e3dbcf;
  --lm-teal: #2a9d8f;
  --lm-teal-deep: #1f7a6f;
  --lm-coral: #e76f51;
  --lm-mustard: #e9c46a;
  --lm-lilac: #b8a1d9;
  --lm-white: #ffffff;
  --radius: 20px;
  --shadow: 0 24px 60px -30px rgba(31, 29, 27, .25);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lm-paper);
  color: var(--lm-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lm-teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--lm-teal-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: 40px; }
h3 { font-size: 24px; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--lm-teal); }
p { margin: 0 0 1em; }
.muted { color: var(--lm-ink-soft); }
.small { font-size: 13px; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .28em; font-weight: 500; color: var(--lm-ink-soft); }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; flex: none; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--lm-sand); padding: 2px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--lm-line); margin: 24px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lm-ink); color: var(--lm-white); }
.btn-primary:hover { background: #000; color: var(--lm-white); }
.btn-accent { background: var(--lm-teal); color: var(--lm-white); }
.btn-accent:hover { background: var(--lm-teal-deep); color: var(--lm-white); }
.btn-ghost { background: transparent; color: var(--lm-ink); border-color: var(--lm-line); }
.btn-ghost:hover { border-color: var(--lm-ink); color: var(--lm-ink); }
.btn-danger { background: transparent; color: var(--lm-coral); border-color: var(--lm-coral); }
.btn-danger:hover { background: var(--lm-coral); color: var(--lm-white); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-size: 11px; text-transform: uppercase; letter-spacing: .28em; font-weight: 500; color: var(--lm-ink-soft); }
.input, select, textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--lm-line);
  background: var(--lm-white); font: 400 15px var(--font-body); color: var(--lm-ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lm-teal); box-shadow: 0 0 0 4px rgba(42, 157, 143, .15); }
.input.is-invalid { border-color: var(--lm-coral); }
.field-error { color: var(--lm-coral); font-size: 13px; }
.help { font-size: 13px; color: var(--lm-ink-soft); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 14px 0 0 14px; }
.input-group .addon { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--lm-line); border-left: 0; border-radius: 0 14px 14px 0; background: var(--lm-sand); font-size: 13px; color: var(--lm-ink-soft); white-space: nowrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--lm-teal); }
.radio-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.radio-card { display: block; padding: 16px; border: 1px solid var(--lm-line); border-radius: 16px; background: var(--lm-white); cursor: pointer; transition: border-color var(--ease); }
.radio-card:has(input:checked) { border-color: var(--lm-teal); box-shadow: 0 0 0 3px rgba(42, 157, 143, .12); }
.radio-card input { margin-right: 8px; accent-color: var(--lm-teal); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.inline-form { display: inline; }

/* ---------- cards & layout primitives ---------- */
.card { background: var(--lm-white); border: 1px solid var(--lm-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card-sand { background: var(--lm-sand); box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head h3 { margin: 0; }
.stack > * + * { margin-top: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.section { padding: 80px 0; }
.section-sand { background: var(--lm-sand); }

/* stat tiles */
.stat { background: var(--lm-white); border: 1px solid var(--lm-line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat .value { font-family: var(--font-head); font-size: 36px; line-height: 1; font-weight: 500; }
.stat .icon { color: var(--lm-teal); }
.stat.accent-coral .icon { color: var(--lm-coral); }
.stat.accent-mustard .icon { color: #b8922d; }
.stat.accent-lilac .icon { color: #7f68a8; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; background: var(--lm-sand); color: var(--lm-ink-soft); border: 1px solid transparent; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-teal { background: rgba(42, 157, 143, .12); color: var(--lm-teal-deep); }
.pill-coral { background: rgba(231, 111, 81, .14); color: #b94c31; }
.pill-mustard { background: rgba(233, 196, 106, .25); color: #8a6a14; }
.pill-lilac { background: rgba(184, 161, 217, .25); color: #5d4a85; }
.pill-ink { background: var(--lm-ink); color: var(--lm-white); }
.pill-sand { background: var(--lm-sand); color: var(--lm-ink-soft); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--lm-line); border-radius: var(--radius); background: var(--lm-white); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .22em; font-weight: 500; color: var(--lm-ink-soft); padding: 14px 16px; border-bottom: 1px solid var(--lm-line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--lm-line); vertical-align: middle; }
.table tbody tr:nth-child(even) { background: var(--lm-paper); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--lm-sand); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--lm-sand); border: 1px solid var(--lm-line); }
.thumb-placeholder { width: 44px; height: 44px; border-radius: 10px; background: var(--lm-sand); border: 1px solid var(--lm-line); display: flex; align-items: center; justify-content: center; color: var(--lm-ink-soft); }

/* ---------- flashes ---------- */
.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--lm-line); background: var(--lm-white); font-size: 14px; transition: opacity 300ms ease, transform 300ms ease; }
.flash.is-leaving { opacity: 0; transform: translateY(-4px); }
.flash-success { border-color: rgba(42, 157, 143, .4); background: rgba(42, 157, 143, .08); }
.flash-error { border-color: rgba(231, 111, 81, .5); background: rgba(231, 111, 81, .08); }
.flash-info { border-color: rgba(184, 161, 217, .6); background: rgba(184, 161, 217, .14); }
.flash button { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--lm-ink-soft); padding: 4px; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--lm-line); border-radius: var(--radius); background: var(--lm-white); }
.empty svg.illus { width: 140px; height: 140px; margin: 0 auto 16px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--lm-ink-soft); max-width: 420px; margin: 0 auto 18px; }

/* ---------- public layout ---------- */
.announce { background: var(--lm-ink); color: rgba(255, 255, 255, .9); font-size: 12px; text-align: center; padding: 9px 16px; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 240, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lm-line); }
.site-header .head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; gap: 20px; }
.head-side { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lm-ink); }
.head-side .icon { transform: rotate(-45deg); }
.head-right { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; color: var(--lm-ink); }
.wordmark { font-family: var(--font-body); font-weight: 800; font-size: 19px; letter-spacing: .09em; line-height: 1; color: var(--lm-ink); white-space: nowrap; }
.menu-row { display: flex; justify-content: center; align-items: center; gap: 36px; height: 54px; border-top: 1px solid var(--lm-line); }
.menu-row a, .menu-row .linklike { color: var(--lm-ink); font-size: 13px; font-weight: 400; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-body); }
.menu-row a:hover, .menu-row .linklike:hover { color: var(--lm-teal-deep); }
.site-nav { display: flex; gap: 10px; align-items: center; }
.site-footer { background: var(--lm-ink); color: rgba(255, 255, 255, .75); padding: 56px 0 32px; margin-top: 80px; }
.site-footer a { color: var(--lm-white); }
.site-footer .brand { color: var(--lm-white); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer .label { color: rgba(255, 255, 255, .5); }
.site-footer ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 16px 0 20px; }
.hero .lede { font-size: 18px; font-weight: 300; color: var(--lm-ink-soft); max-width: 540px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; background: var(--lm-teal); top: -160px; right: -80px; opacity: .22; animation: drift 26s ease-in-out infinite alternate; }
.blob-2 { width: 300px; height: 300px; background: var(--lm-mustard); bottom: -120px; left: 10%; opacity: .35; animation: drift 30s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 220px; height: 220px; background: var(--lm-lilac); top: 40%; left: 45%; opacity: .3; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }
.mosaic { width: 100%; max-width: 420px; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(31, 29, 27, .18)); }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; font-size: 13px; color: var(--lm-ink-soft); }
.trust-row span { display: inline-flex; gap: 8px; align-items: center; }
.trust-row .icon { width: 18px; height: 18px; color: var(--lm-teal); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--lm-white); border: 1px solid var(--lm-line); border-radius: var(--radius); padding: 32px 28px; transition: transform var(--ease), box-shadow var(--ease); }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.step .num { font-family: var(--font-head); font-size: 64px; line-height: 1; color: var(--lm-line); position: absolute; top: 18px; right: 24px; }
.step .icon-wrap { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.step:nth-child(1) .icon-wrap { background: rgba(42, 157, 143, .14); color: var(--lm-teal-deep); }
.step:nth-child(2) .icon-wrap { background: rgba(233, 196, 106, .3); color: #8a6a14; }
.step:nth-child(3) .icon-wrap { background: rgba(231, 111, 81, .16); color: #b94c31; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--lm-ink-soft); margin: 0; font-size: 14px; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .icon { color: var(--lm-teal); margin-top: 2px; }
.feature strong { display: block; font-weight: 500; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 14px; color: var(--lm-ink-soft); }
.cta-band { background: var(--lm-ink); color: var(--lm-white); border-radius: var(--radius); padding: 56px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: var(--lm-white); }
.cta-band h2 em { color: var(--lm-mustard); }
.faq details { border-bottom: 1px solid var(--lm-line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 24px; line-height: 1; color: var(--lm-teal); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--lm-ink-soft); font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--lm-teal); }

/* ---------- auth pages ---------- */
.auth { min-height: calc(100vh - 160px); display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; width: 520px; height: 520px; left: 38%; top: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 157, 143, .28), transparent); pointer-events: none; }
.auth::after { content: ""; position: absolute; width: 460px; height: 460px; right: -80px; bottom: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(231, 111, 81, .22), transparent); pointer-events: none; }
.auth-side { color: var(--lm-ink); padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; gap: 28px; position: relative; z-index: 1; }
.auth-side h2 { font-size: clamp(44px, 5vw, 68px); margin: 14px 0 18px; }
.auth-side p { color: var(--lm-ink-soft); max-width: 420px; font-weight: 300; font-size: 16px; }
.eyebrow-teal { color: var(--lm-teal); letter-spacing: .3em; }
.auth-side .trust-row { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--lm-line); max-width: 460px; }
.auth-form { padding: 64px 24px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.auth-form .card { width: min(460px, 100%); border-radius: 28px; box-shadow: var(--shadow); background: var(--lm-white); }
.auth-form h1 { font-size: 36px; }

/* ---------- app (dashboard) layout ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { background: var(--lm-white); border-right: 1px solid var(--lm-line); padding: 24px 18px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 4px 10px; font-size: 24px; }
.sidebar .who { padding: 14px; background: var(--lm-sand); border-radius: 16px; display: flex; gap: 12px; align-items: center; }
.sidebar .who .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lm-ink); color: var(--lm-white); display: grid; place-items: center; font-family: var(--font-head); font-size: 20px; flex: none; }
.sidebar .who strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.sidebar .who span { font-size: 12px; color: var(--lm-ink-soft); word-break: break-all; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--lm-ink); font-size: 14px; font-weight: 500; transition: background var(--ease), color var(--ease); }
.nav a:hover { background: var(--lm-sand); }
.nav a.is-active { background: rgba(42, 157, 143, .12); color: var(--lm-teal-deep); }
.nav a .icon { width: 20px; height: 20px; }
.nav .label { padding: 12px 12px 4px; }
.sidebar-foot { margin-top: auto; }
.sidebar-foot form button { width: 100%; justify-content: flex-start; }
.topbar { display: none; }
.main { padding: 36px 40px 64px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 40px; margin: 4px 0 0; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--lm-line); color: var(--lm-ink); font-size: 13px; font-weight: 500; background: var(--lm-white); }
.filters a.is-active { background: var(--lm-ink); color: var(--lm-white); border-color: var(--lm-ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.kv dt { color: var(--lm-ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; padding-top: 2px; }
.kv dd { margin: 0; word-break: break-word; }
.banner { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(42, 157, 143, .14), rgba(233, 196, 106, .18)); border: 1px solid var(--lm-line); }
.banner .icon { color: var(--lm-teal-deep); width: 32px; height: 32px; }
.banner p { margin: 0; }
.banner .btn { margin-left: auto; }

/* product grid (admin review) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { background: var(--lm-white); border: 1px solid var(--lm-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--ease), box-shadow var(--ease); }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card .img { aspect-ratio: 4 / 5; background: var(--lm-sand); display: grid; place-items: center; color: var(--lm-ink-soft); }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .title { font-weight: 500; font-size: 14px; line-height: 1.3; }
.product-card .price { font-family: var(--font-head); font-size: 22px; }
.product-card .foot { display: flex; gap: 8px; padding: 0 16px 16px; }
.product-card .foot form { flex: 1; }
.product-card .foot .btn { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--lm-line); }
.desc { font-size: 14px; color: var(--lm-ink-soft); max-height: 220px; overflow: auto; border: 1px solid var(--lm-line); border-radius: 14px; padding: 14px; background: var(--lm-paper); }
.desc img { max-width: 100%; }

/* timeline for order status */
.timeline { display: flex; gap: 0; align-items: center; margin: 8px 0 20px; }
.timeline .dot { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--lm-ink-soft); flex: 1; position: relative; }
.timeline .dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lm-line); background: var(--lm-white); }
.timeline .dot.is-done::before { background: var(--lm-teal); border-color: var(--lm-teal); }
.timeline .dot.is-done { color: var(--lm-teal-deep); }
.timeline .dot:not(:last-child)::after { content: ""; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: var(--lm-line); z-index: -1; }
.timeline .dot.is-done:not(:last-child)::after { background: var(--lm-teal); }
.address { white-space: pre-line; font-size: 14px; }
.health { padding: 14px 18px; border-radius: 14px; font-size: 14px; }
.health-ok { background: rgba(42, 157, 143, .12); color: var(--lm-teal-deep); }
.health-bad { background: rgba(231, 111, 81, .12); color: #b94c31; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-family: var(--font-head); font-size: 120px; line-height: 1; color: var(--lm-line); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .mosaic { max-width: 300px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .site-header .head-row { grid-template-columns: 1fr auto 1fr; padding-inline: 4px; }
  .head-side span { display: none; }
  .menu-row { gap: 18px; flex-wrap: wrap; height: auto; padding: 12px 8px; }
  .wordmark { font-size: 16px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 85vw); transform: translateX(-100%); transition: transform var(--ease); z-index: 40; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--lm-white); border-bottom: 1px solid var(--lm-line); position: sticky; top: 0; z-index: 30; }
  .topbar button { background: none; border: 1px solid var(--lm-line); border-radius: 12px; padding: 8px; cursor: pointer; color: var(--lm-ink); display: inline-flex; }
  .main { padding: 20px 16px 48px; }
  .page-head h1 { font-size: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  h2 { font-size: 32px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
  .container { width: min(1180px, 100% - 32px); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .card { padding: 20px; }
  .site-nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
