:root {
  --ink: #243b53;
  --ink-strong: #10233a;
  --muted: #62758a;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --navy: #102a43;
  --navy-dark: #071a2f;
  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --mint: #38bdf8;
  --mint-soft: #e7f4ff;
  --blue-soft: #eef5ff;
  --line: #dce5ef;
  --line-strong: #bccbdd;
  --danger: #a43b42;
  --warning: #a66a16;
  --shadow-sm: 0 8px 28px rgba(15, 35, 58, 0.07);
  --shadow-md: 0 20px 56px rgba(15, 35, 58, 0.11);
  --shadow-lg: 0 34px 90px rgba(4, 20, 38, 0.24);
  --radius: 20px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--navy-dark); background: var(--mint); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 10px 14px; color: #fff; background: var(--navy-dark); border-radius: 9px; font-weight: 800; text-decoration: none; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.34); outline-offset: 3px; }

/* Navigation */
.site-header { position: sticky; z-index: 30; top: 0; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid rgba(15, 35, 58, 0.10); box-shadow: 0 6px 24px rgba(15, 35, 58, 0.04); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; color: var(--ink-strong); text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: linear-gradient(145deg, var(--teal), var(--navy)); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 13px; box-shadow: 0 8px 22px rgba(15, 35, 58, 0.18); }
.brand-mark svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.brand-mark .brand-scan { stroke: var(--mint); stroke-width: 2.2; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 1.16rem; font-weight: 900; letter-spacing: -0.035em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 0.68rem; font-weight: 720; letter-spacing: 0.035em; }
.site-nav, .nav-links, .nav-actions { display: flex; align-items: center; }
.site-nav { flex: 1; justify-content: flex-end; gap: 28px; }
.nav-links, .nav-actions { gap: 6px; }
.nav-link, .link-button { min-height: 42px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; font-size: 0.91rem; font-weight: 740; text-decoration: none; cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.nav-link:hover, .link-button:hover, .nav-link.is-active { color: var(--teal-dark); background: var(--surface-soft); }
.nav-link.is-active { font-weight: 850; }
.nav-cta, .nav-cta:hover, .nav-cta.is-active { min-height: 44px; padding-inline: 17px; color: #fff; background: var(--navy); box-shadow: 0 9px 22px rgba(15, 35, 58, 0.16); }
.member-chip { max-width: 150px; overflow: hidden; padding: 8px 11px; color: var(--teal-dark); background: var(--mint-soft); border: 1px solid transparent; border-radius: 999px; font-size: 0.76rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.member-chip:hover, .member-chip.is-active { border-color: #9fc3e7; background: #fff; }
.admin-command-bar { position: sticky; z-index: 25; top: 82px; color: #dcecff; background: var(--navy-dark); border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-command-scroll { min-height: 51px; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.admin-command-scroll > strong { flex: 0 0 auto; margin-right: 9px; color: var(--mint); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.admin-command-scroll a { flex: 0 0 auto; padding: 8px 11px; color: rgba(220,236,255,.73); border-radius: 8px; font-size: .74rem; font-weight: 760; text-decoration: none; white-space: nowrap; }
.admin-command-scroll a:hover, .admin-command-scroll a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.inline-form { display: inline-flex; margin: 0; }
.nav-toggle { display: none; }
.nav-toggle-lines { width: 21px; display: grid; gap: 4px; }
.nav-toggle-lines i { height: 2px; display: block; background: currentColor; border-radius: 999px; transition: transform 160ms ease, opacity 160ms ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child { transform: translateY(-6px) rotate(-45deg); }

/* Type and shared components */
h1, h2, h3 { margin-top: 0; color: var(--ink-strong); line-height: 1.06; letter-spacing: -0.045em; }
h1 { margin-bottom: 22px; font-size: clamp(2.65rem, 5.5vw, 5rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { margin-bottom: 12px; font-size: 1.35rem; }
p { text-wrap: pretty; }
.eyebrow { margin: 0 0 13px; color: var(--teal-dark); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; vertical-align: 1px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.18); }
.section { padding-top: 100px; padding-bottom: 100px; }
.narrow-top { min-height: 62vh; padding-top: 68px; }
.section-heading { max-width: 740px; margin-bottom: 42px; }
.section-heading > p:last-child, .admin-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.button, .search-bar button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; color: #fff; background: var(--teal); border: 1px solid var(--teal); border-radius: 12px; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16); font-weight: 850; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button:hover, .search-bar button:hover { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.23); transform: translateY(-1px); }
.button-secondary { color: var(--navy); background: transparent; border-color: var(--line-strong); box-shadow: none; }
.button-secondary:hover { color: var(--navy); background: #fff; border-color: var(--teal); }
.button-light { color: var(--navy-dark); background: var(--mint); border-color: var(--mint); box-shadow: none; }
.button-light:hover { color: var(--navy-dark); background: #7dd3fc; border-color: #7dd3fc; }
.button-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #7e2c32; border-color: #7e2c32; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--teal-dark); font-weight: 850; text-decoration: none; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(3px); }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 104px 0 96px; color: #fff; background: radial-gradient(circle at 78% 28%, rgba(56, 189, 248, 0.22), transparent 26%), linear-gradient(126deg, #07182b 0%, #0c2d52 52%, #164f9a 100%); }
.hero::before { position: absolute; inset: 0; content: ""; opacity: 0.22; background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.hero::after { position: absolute; right: -130px; bottom: -260px; width: 620px; height: 620px; content: ""; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 170px rgba(255, 255, 255, 0.018); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr); align-items: center; gap: clamp(54px, 7vw, 104px); }
.hero-content { min-width: 0; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { max-width: 780px; margin-bottom: 25px; color: #fff; font-size: clamp(3.2rem, 6.2vw, 5.8rem); }
.hero h1 span { color: var(--mint); }
.hero-copy { max-width: 720px; margin-bottom: 0; color: rgba(225, 238, 255, 0.80); font-size: 1.14rem; }
.search-bar { max-width: 760px; display: flex; align-items: center; gap: 5px; margin-top: 34px; padding: 7px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 16px; box-shadow: 0 24px 56px rgba(3, 18, 35, 0.30); }
.search-icon { width: 38px; display: grid; flex: 0 0 auto; place-items: center; color: var(--muted); }
.search-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.search-bar input { width: 100%; min-width: 0; min-height: 50px; padding: 0 8px 0 2px; color: var(--ink); background: transparent; border: 0; border-radius: 0; outline: 0; box-shadow: none; }
.search-bar input:focus { border: 0; box-shadow: none; }
.search-bar button { flex: 0 0 auto; }
.search-hint { margin: 13px 0 0; color: rgba(225, 238, 255, 0.62); font-size: 0.84rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 27px; color: rgba(225, 238, 255, 0.78); font-size: 0.82rem; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { width: 18px; height: 18px; display: grid; place-items: center; color: var(--navy-dark); background: var(--mint); border-radius: 50%; font-size: 0.67rem; font-style: normal; font-weight: 950; }
.hero-card { position: relative; overflow: hidden; padding: 28px; color: var(--ink); background: rgba(255, 255, 255, 0.97); border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.hero-card::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.7), transparent 28%); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--teal-dark); background: var(--mint-soft); border-radius: 999px; font-size: 0.72rem; font-weight: 850; }
.status-pill i { width: 7px; height: 7px; background: #1eaf79; border-radius: 50%; box-shadow: 0 0 0 4px rgba(30, 175, 121, 0.12); }
.barcode-preview { height: 98px; margin: 27px 0 8px; display: flex; align-items: center; padding: 0 20px; background: #f2f6fb; border: 1px solid var(--line); border-radius: 16px; }
.barcode-preview span { width: 100%; height: 58px; display: block; background: repeating-linear-gradient(90deg, var(--navy-dark) 0 2px, transparent 2px 5px, var(--navy-dark) 5px 9px, transparent 9px 12px, var(--navy-dark) 12px 13px, transparent 13px 18px); }
.code-preview { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 4px 21px; border-bottom: 1px solid var(--line); }
.code-preview span { color: var(--muted); font-size: 0.75rem; }
.code-preview strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.84rem; letter-spacing: 0.06em; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 -8px; }
.metric { margin: 0; padding: 22px 12px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.metric strong { margin-top: 2px; color: var(--ink-strong); font-size: 1.75rem; letter-spacing: -0.05em; }
.data-status { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--blue-soft); border-radius: 14px; }
.data-status-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: var(--teal-dark); background: #fff; border-radius: 10px; font-weight: 900; }
.data-status p, .data-status strong, .data-status small { display: block; margin: 0; }
.data-status strong { font-size: 0.83rem; }
.data-status small { margin-top: 1px; color: var(--muted); font-size: 0.7rem; }

/* Home content */
.proof-strip { background: #fff; border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid p { display: grid; gap: 4px; margin: 0; padding: 28px 30px; }
.proof-grid p:first-child { padding-left: 0; }
.proof-grid p + p { border-left: 1px solid var(--line); }
.proof-grid strong { color: var(--ink-strong); font-size: 0.9rem; }
.proof-grid span { color: var(--muted); font-size: 0.82rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { position: relative; overflow: hidden; min-height: 280px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.feature-card::after { position: absolute; right: -40px; bottom: -55px; width: 130px; height: 130px; content: ""; background: var(--mint-soft); border-radius: 50%; opacity: 0; transition: opacity 180ms ease; }
.feature-card:hover { border-color: #9bbbe8; box-shadow: var(--shadow-md); transform: translateY(-5px); }
.feature-card:hover::after { opacity: 0.65; }
.feature-card > * { position: relative; z-index: 1; }
.feature-card-top { min-height: 64px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.step { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 28px; padding: 0 11px; color: var(--teal-dark); background: var(--mint-soft); border-radius: 999px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; }
.feature-card > .step { margin-bottom: 40px; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--teal-dark); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; font-size: 1.55rem; }
.feature-card h2 { font-size: 1.65rem; }
.feature-card h3 { font-size: 1.42rem; }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.section-muted { background: #edf2f8; border-top: 1px solid #dce5ef; border-bottom: 1px solid #dce5ef; }
.split-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr); align-items: center; gap: clamp(54px, 8vw, 110px); }
.platform-copy > p:not(.eyebrow) { max-width: 580px; color: var(--muted); font-size: 1.05rem; }
.platform-copy .action-row { margin-top: 30px; }
.api-showcase { overflow: hidden; color: #dbeafe; background: var(--navy-dark); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 24px; box-shadow: var(--shadow-md); }
.api-showcase-head { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 20px; color: rgba(255,255,255,.64); background: rgba(255,255,255,.045); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 0.75rem; }
.api-showcase-head > span { display: flex; gap: 5px; }
.api-showcase-head i { width: 7px; height: 7px; display: block; background: rgba(255,255,255,.3); border-radius: 50%; }
.api-showcase-head strong { color: #fff; font-size: 0.78rem; letter-spacing: 0.025em; }
.api-showcase-head small { margin-left: auto; padding: 4px 7px; color: var(--mint); background: rgba(56,189,248,.12); border-radius: 6px; font-weight: 800; }
.api-showcase pre { margin: 0; padding: 28px 30px 22px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.75; }
.api-showcase code, .api-showcase b, .api-showcase em, .api-showcase strong { font: inherit; }
.api-showcase b { color: #8ed6ff; }
.api-showcase em { color: #7dd3fc; font-style: normal; }
.api-showcase code > strong { color: #ffd788; }
.api-showcase code > span { color: rgba(255,255,255,.55); }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 16px 18px 16px 48px; background: rgba(255,255,255,.72); border: 1px solid rgba(189,208,206,.7); border-radius: 13px; font-weight: 750; }
.check-list li::before { position: absolute; left: 18px; content: "✓"; color: var(--teal); font-weight: 950; }
.compact-check-list { grid-template-columns: 1fr 1fr; gap: 1px; border-top: 1px solid rgba(255,255,255,.08); }
.compact-check-list li { color: rgba(255,255,255,.7); background: transparent; border: 0; border-radius: 0; font-size: 0.72rem; }
.compact-check-list li + li { border-left: 1px solid rgba(255,255,255,.08); }
.compact-check-list li::before { color: var(--mint); }
.final-cta-wrap { padding-top: 76px; padding-bottom: 76px; }
.final-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 45px; padding: 52px 56px; color: rgba(255,255,255,.7); background: linear-gradient(125deg, var(--navy-dark), #164f9a); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.final-cta::after { position: absolute; right: -90px; top: -120px; width: 300px; height: 300px; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025); }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { max-width: 690px; margin-bottom: 12px; color: #fff; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.final-cta .eyebrow { color: var(--mint); }
.final-cta p:last-child { max-width: 720px; margin-bottom: 0; }

/* Search and page headers */
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.page-intro h1 { margin-bottom: 13px; font-size: clamp(2.55rem, 5vw, 4.6rem); }
.page-intro p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.page-intro-badge { width: 112px; height: 112px; display: grid; flex: 0 0 auto; place-items: center; color: var(--teal-dark); background: var(--mint-soft); border: 1px solid #cfe3fb; border-radius: 28px; transform: rotate(3deg); }
.page-intro-badge svg { width: 70px; height: 70px; fill: none; stroke: currentColor; stroke-width: 2; }
.page-intro-badge .scan { stroke: #38bdf8; stroke-width: 2.5; }
.search-bar-dark { max-width: none; margin-top: 0; border-color: var(--line); box-shadow: var(--shadow-sm); }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 16px; color: var(--muted); font-size: 0.88rem; }
.result-summary strong { color: var(--ink-strong); font-size: 1.15rem; }
.result-list { display: grid; gap: 12px; }
.result-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 18px rgba(7,53,66,.03); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.result-card:hover { border-color: #9bbbe8; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.result-card strong, .result-card small { display: block; }
.result-card > span:nth-child(2) small { margin-top: 4px; color: var(--muted); }
.ean-badge { min-width: 138px; display: grid; gap: 1px; padding: 9px 11px; color: var(--ink-strong); background: var(--surface-soft); border: 1px solid #dce5ef; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; }
.ean-badge small { color: var(--teal); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 0.6rem; font-weight: 900; letter-spacing: 0.12em; }
.arrow { color: var(--teal); font-size: 1.4rem; }
.empty-state { max-width: 760px; margin: 38px auto; padding: 52px; text-align: center; background: var(--surface); border: 1px dashed #9bb7d8; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.empty-state h1 { font-size: clamp(2.25rem, 5vw, 3.7rem); }
.empty-state h2 { font-size: 2rem; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin: 6px; }

/* Product */
.product-page { padding-top: 48px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 38px; color: var(--muted); font-size: 0.8rem; }
.breadcrumb a { color: var(--teal-dark); font-weight: 750; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr); align-items: start; gap: clamp(48px, 7vw, 84px); }
.product-media { position: sticky; top: 116px; }
.product-image-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.product-image-frame > img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; padding: 30px; background: #fff; }
.image-placeholder { display: grid; place-items: center; color: #718096; background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 17px, #eef3f9 17px, #eef3f9 34px); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: center; }
.product-image-frame .image-placeholder { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 30px; border: 0; border-radius: 0; box-shadow: none; }
.product-image-frame:not(.is-missing) .image-placeholder { visibility: hidden; }
.product-image-frame.is-missing .image-placeholder { visibility: visible; }
.image-placeholder span, .image-placeholder small, .image-placeholder strong { display: block; }
.image-placeholder span { color: var(--ink-strong); font-family: inherit; font-size: 1rem; font-weight: 850; }
.image-placeholder small { max-width: 230px; margin: 8px auto 18px; color: var(--muted); font-family: inherit; line-height: 1.45; }
.image-placeholder strong { color: var(--teal-dark); font-size: .78rem; letter-spacing: .08em; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumbnail-grid img { aspect-ratio: 1; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.product-kicker { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.product-kicker .eyebrow { margin: 0; }
.verification-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--warning); background: #fff3dc; border: 1px solid #f0d49e; border-radius: 999px; font-size: 0.7rem; font-weight: 850; white-space: nowrap; }
.verification-badge i { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.verification-verified { color: #167554; background: var(--mint-soft); border-color: #b6e8d6; }
.verification-pending { color: #8d5b13; background: #fff3dc; border-color: #f0d49e; }
.verification-deleted, .verification-merged { color: var(--danger); background: #fbe7e8; border-color: #efc3c6; }
.product-detail h1 { margin-bottom: 12px; font-size: clamp(2.55rem, 5vw, 4.5rem); }
.product-brand { margin: 0; color: var(--muted); font-size: 1.16rem; font-weight: 750; }
.ean-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0; padding: 17px 20px; background: var(--blue-soft); border: 1px solid #d5e9ef; border-radius: 14px; }
.ean-panel span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.ean-panel strong { color: var(--ink-strong); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.product-description { color: #41575c; font-size: 1.04rem; }
.spec-grid { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 32px 0; background: var(--line); border: 1px solid var(--line); border-radius: 16px; }
.spec-grid div { min-width: 0; padding: 17px 19px; background: var(--surface); }
.spec-grid dt { color: var(--muted); font-size: 0.69rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.spec-grid dd { overflow-wrap: anywhere; margin: 5px 0 0; color: var(--ink-strong); font-weight: 730; }
.product-attributes { margin-top: 38px; }
.product-attributes h2 { margin-bottom: 8px; font-size: 1.55rem; }
.attribute-details { margin-top: 12px; padding: 15px 17px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 13px; }
.attribute-details summary { cursor: pointer; color: var(--ink-strong); font-weight: 800; }
.attribute-details p { margin: 13px 0 0; white-space: normal; overflow-wrap: anywhere; }
.track-list { display: grid; gap: 7px; margin: 14px 0 0; padding-left: 25px; color: var(--ink); }
.track-list li { padding-left: 4px; }

/* Forms and authentication */
.auth-shell { min-height: 72vh; display: grid; place-items: center; }
.auth-card { position: relative; overflow: hidden; width: min(540px, 100%); padding: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 27px; box-shadow: var(--shadow-md); }
.auth-card::before { position: absolute; inset: 0 0 auto; height: 5px; content: ""; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.auth-card h1 { margin-bottom: 14px; font-size: 2.75rem; }
.auth-card > p { color: var(--muted); }
.auth-card form, .product-form { display: grid; gap: 11px; }
.password-control { position: relative; display: block; }
.password-control > input { width: 100%; padding-right: 92px; }
.password-toggle { position: absolute; right: 9px; bottom: 9px; min-height: 38px; padding: 0 12px; color: var(--teal-dark); background: var(--blue-soft); border: 0; border-radius: 8px; font-size: .72rem; font-weight: 850; cursor: pointer; }
.password-toggle:hover { background: var(--mint-soft); }
label { margin-top: 10px; color: var(--ink-strong); font-size: 0.86rem; font-weight: 820; }
input, select, textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #f8fafc; border: 1px solid #d6e0eb; border-radius: 10px; outline: none; transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease; }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b9c8d8; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(12, 128, 111, 0.11); }
input[readonly] { color: #64748b; background: #eef3f9; }
.full-width { width: 100%; margin-top: 17px; }
.auth-link { margin: 22px 0 0; text-align: center; }
.auth-link + .auth-link { margin-top: 9px; }
.auth-link a { color: var(--teal-dark); font-weight: 780; }
.form-error, .flash { padding: 14px 16px; border-radius: 11px; }
.form-error, .flash-error { color: #7b2930; background: #fbe7e8; border: 1px solid #efc3c6; }
.flash { margin-top: 18px; }
.flash-success { color: #145f45; background: #dff6ec; border: 1px solid #b9e5d4; }
.flash-info { color: #155d70; background: #e2f2f6; border: 1px solid #b9dce5; }
.field-error { display: block; color: var(--danger); }
.form-shell { max-width: 980px; }
.product-form { gap: 24px; }
.form-step { display: grid; gap: 24px; }
.form-progress { position: sticky; z-index: 12; top: 94px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 9px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.form-progress button { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 13px; color: var(--muted); background: transparent; border: 0; border-radius: 11px; text-align: left; cursor: pointer; }
.form-progress button:hover { color: var(--teal-dark); background: var(--surface-soft); }
.form-progress button.is-active { color: var(--ink-strong); background: var(--mint-soft); box-shadow: inset 0 0 0 1px #bdd9f3; }
.form-progress button > span { grid-row: 1 / 3; width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--line-strong); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.form-progress button.is-active > span { background: var(--teal); }
.form-progress strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.form-progress small { overflow: hidden; font-size: .63rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.wizard-actions { display: none; align-items: center; justify-content: space-between; gap: 12px; }
.js [data-product-wizard][data-wizard-ready="true"] .wizard-actions { display: flex; }
.wizard-actions-final { margin-top: -12px; }
fieldset { margin: 0; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 20px rgba(7,53,66,.035); }
legend { padding: 0 11px; color: var(--ink-strong); font-size: 1.14rem; font-weight: 880; letter-spacing: -0.025em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.span-2 { grid-column: 1 / -1; }
.classification-fieldset { border-top: 4px solid var(--teal); }
.contextual-attributes { border-color: #c8d9eb; background: linear-gradient(180deg, #fff, #f8fbff); }
.contextual-attributes.is-empty { border-style: dashed; background: var(--surface-soft); }
.contextual-attributes [data-attribute-field][hidden] { display: none !important; }
[data-context-groups][hidden] { display: none !important; }
.confirmation-panel { padding: 28px; background: linear-gradient(135deg, var(--mint-soft), #f3f7fd); border: 1px solid #cfe0f5; border-radius: 18px; }
.confirmation-panel p { margin-top: 0; }
.confirmation-panel p:last-of-type { color: #52677d; }
.upload-card, .preview-panel { margin-top: 28px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.preview-panel h2 { font-size: 1.75rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }

/* Catalogue et espace membre */
.catalog-page, .account-page { display: grid; gap: 28px; }
.catalog-hero, .account-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.catalog-hero > div, .account-hero > div { max-width: 760px; }
.catalog-hero h1, .account-hero h1 { margin-bottom: 12px; font-size: clamp(2.5rem, 5vw, 4.3rem); }
.catalog-hero p, .account-hero p { margin-bottom: 0; color: var(--muted); }
.catalog-filter { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(165px, .7fr)) auto; align-items: end; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); }
.catalog-filter label { margin: 0; }
.catalog-filter label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.catalog-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.catalog-card { min-width: 0; overflow: hidden; display: grid; grid-template-rows: 190px auto; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.catalog-card:hover { border-color: #9fc3e7; box-shadow: 0 16px 38px rgba(15,35,58,.11); transform: translateY(-2px); }
.catalog-card-media { display: grid; place-items: center; overflow: hidden; color: #718096; background: linear-gradient(145deg, #f8fafc, #edf3f9); }
.catalog-card-media img { width: 100%; height: 100%; object-fit: contain; }
.catalog-card-media span { padding: 20px; font-size: .72rem; font-weight: 800; text-align: center; }
.catalog-card-media .catalog-card-placeholder { display: none; }
.catalog-card-media.is-missing .catalog-card-placeholder { display: block; }
.catalog-card-body { min-width: 0; display: grid; gap: 7px; padding: 17px; }
.catalog-card-body > small { overflow: hidden; color: var(--teal-dark); font-size: .66rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-body strong { overflow: hidden; color: var(--ink-strong); font-size: .91rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-body span { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .76rem; font-weight: 850; text-decoration: none; }
.pagination span { color: #fff; background: var(--teal); border-color: var(--teal); }
.account-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.account-kpis article { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
.account-kpis span, .account-kpis small { display: block; color: var(--muted); font-size: .68rem; }
.account-kpis strong { display: block; margin: 7px 0 2px; color: var(--ink-strong); font-size: 1.45rem; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.account-grid .panel-card { display: grid; gap: 14px; }
.account-grid .panel-card h2 { margin-bottom: 0; font-size: 1.3rem; }
.account-grid .admin-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-meta { display: grid; gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 12px; }
.account-meta div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px; background: #fff; }
.account-meta dt { color: var(--muted); font-size: .73rem; }
.account-meta dd { margin: 0; color: var(--ink-strong); font-size: .74rem; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.account-event-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.account-event-list li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 13px; background: var(--surface-soft); border-radius: 10px; font-size: .73rem; }
.account-event-list time { color: var(--muted); }

.account-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.account-section-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.account-section-nav a { min-width: 0; display: grid; gap: 2px; padding: 14px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.account-section-nav a:hover { border-color: #9fc3e7; box-shadow: 0 12px 28px rgba(15, 35, 58, .09); transform: translateY(-1px); }
.account-section-nav a.is-highlighted { color: #fff; background: var(--navy); border-color: var(--navy); }
.account-section-nav strong, .account-section-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-section-nav strong { font-size: .82rem; }
.account-section-nav span { color: var(--muted); font-size: .68rem; }
.account-section-nav a.is-highlighted span { color: #c9def4; }
.account-grid > [id] { scroll-margin-top: 110px; }
.account-security-card { grid-column: 1 / -1; overflow: hidden; background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%); border-color: #bdd7f0; }
.account-security-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.account-security-header > div { max-width: 760px; }
.account-security-header h2 { margin-bottom: 9px !important; font-size: clamp(1.55rem, 3vw, 2.25rem) !important; }
.account-security-header p:last-child { margin: 0; color: var(--muted); }
.account-security-status { flex: 0 0 auto; padding: 8px 12px; color: var(--teal-dark); background: #fff; border: 1px solid #b8d4f5; border-radius: 999px; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.account-security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.account-security-grid > :only-child { grid-column: 1 / -1; }
.account-security-block, .account-password-block { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.account-security-block { display: grid; align-content: start; gap: 11px; padding: 22px; }
.account-security-block h3 { margin: 0; font-size: 1.22rem; }
.account-security-block p { margin: 0; color: var(--muted); }
.account-security-kicker { color: var(--teal-dark) !important; font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.account-security-count { margin-right: 5px; color: var(--ink-strong); font-size: 1.7rem; line-height: 1; }
.account-security-note { padding: 11px 12px; background: var(--surface-soft); border-radius: 10px; font-size: .74rem; }
.account-security-block form { margin-top: 4px; }
.account-security-block .button { width: fit-content; }
.account-password-block > summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; color: var(--ink-strong); cursor: pointer; list-style: none; }
.account-password-block > summary::-webkit-details-marker { display: none; }
.account-password-block > summary > span { display: grid; gap: 4px; }
.account-password-block > summary strong { font-size: 1rem; }
.account-password-block > summary small { color: var(--muted); font-size: .72rem; font-weight: 650; }
.account-password-block > summary::after { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; content: "+"; color: var(--teal-dark); background: var(--mint-soft); border-radius: 9px; font-size: 1.15rem; font-weight: 900; }
.account-password-block[open] > summary::after { content: "−"; }
.account-password-block[open] > summary { border-bottom: 1px solid var(--line); }
.account-password-content { display: grid; gap: 14px; padding: 22px; }
.account-password-content > p { margin: 0; color: var(--muted); font-size: .78rem; }
.account-password-content form { margin: 0; }

@media (max-width: 760px) {
  .account-hero-actions { width: 100%; justify-content: flex-start; }
  .account-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-security-header { flex-direction: column; gap: 14px; }
  .account-security-status { white-space: normal; }
  .account-security-grid { grid-template-columns: 1fr; }
  .account-security-grid > * { grid-column: auto; }
}

@media (max-width: 560px) {
  .account-hero-actions, .account-hero-actions .button { width: 100%; }
  .account-section-nav a { padding: 12px; }
  .account-security-card { padding: 22px; }
  .account-security-block, .account-password-content { padding: 18px; }
  .account-security-block .button { width: 100%; }
}

/* Tables, API and administration */
.table-wrap { overflow-x: auto; margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fbfa; }
th { color: var(--muted); background: #eef3f9; font-size: 0.69rem; font-weight: 900; letter-spacing: 0.075em; text-transform: uppercase; }
.small-button { padding: 8px 11px; color: var(--teal-dark); background: var(--mint-soft); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.small-button:hover { background: #d8eaff; }
.small-button-danger { color: #7b2930; background: #fbe7e8; }
.admin-actions { min-width: 250px; display: flex; flex-wrap: wrap; gap: 8px; }
.taxonomy-summary { margin: 34px 0 48px; }
.admin-heading { max-width: 800px; }
.admin-grid .feature-card { min-height: 300px; }
.api-shell > p { max-width: 800px; color: var(--muted); font-size: 1.03rem; }
.api-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; gap: 22px; margin: 30px 0 38px; }
.panel-card, .api-secret-card { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-card form { display: grid; gap: 12px; }
.panel-card pre { max-width: 100%; overflow-x: auto; padding: 15px; color: #dbeafe; background: var(--navy-dark); border-radius: 11px; white-space: pre-wrap; word-break: break-word; }
.panel-card code, .api-key-secret code, td code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-secret-card { margin-top: 24px; background: var(--mint-soft); border-color: #b8d4f5; }
.api-key-secret { overflow-wrap: anywhere; padding: 14px; background: #fff; border: 1px dashed #6e9fd8; border-radius: 10px; user-select: all; }
.proposal-list { display: grid; gap: 20px; margin-top: 32px; }
.admin-auto-resolution { margin: 28px 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; background: linear-gradient(135deg, var(--blue-soft), #fff); border: 1px solid #bfd4ee; border-radius: 18px; box-shadow: var(--shadow-sm); }
.admin-auto-resolution strong { display: block; color: var(--ink-strong); font-size: 1.05rem; }
.admin-auto-resolution p { max-width: 720px; margin: 5px 0 0; color: var(--muted); }
.admin-auto-resolution form { flex: 0 0 auto; }
.admin-enrichment-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; }
.admin-history-link { margin: -18px 0 32px; text-align: right; }
.admin-history-link a { color: var(--teal-dark); font-size: .78rem; font-weight: 850; }
.proposal-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr); gap: 28px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.proposal-card h2 { margin: 16px 0 8px; font-size: 1.7rem; }
.proposal-card p { color: var(--muted); }
.candidate-value { white-space: normal; overflow-wrap: anywhere; }
.field-help { display: block; margin: 8px 0 22px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.enrichment-preview { display: grid; grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.proposal-image-placeholder { min-height: 210px; display: grid; align-content: center; gap: 8px; padding: 22px; color: var(--muted); background: linear-gradient(145deg, #f8fafc, #eef4fa); border: 1px dashed #b8c7d8; border-radius: 14px; text-align: center; }
.proposal-image-placeholder span { color: var(--ink-strong); font-weight: 850; }
.proposal-image-placeholder small { line-height: 1.45; }
.proposal-image-preview { overflow: hidden; display: grid; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.proposal-image-preview img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 14px; background: #fff; }
.proposal-image-preview small { padding: 10px 13px; color: var(--muted); background: var(--surface-soft); border-top: 1px solid var(--line); font-size: .68rem; font-weight: 800; }
.enrichment-preview .enrichment-draft { margin: 0; }
.draft-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0 0; }
.draft-specs div { min-width: 0; padding: 11px 12px; background: rgba(255,255,255,.7); border-radius: 10px; }
.draft-specs dt { color: #8a5a0a; font-size: .65rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.draft-specs dd { overflow-wrap: anywhere; margin: 4px 0 0; color: var(--ink-strong); font-weight: 730; }
.proposal-actions { align-self: start; display: grid; gap: 10px; padding: 18px; background: var(--surface-soft); border-radius: 14px; }
.proposal-actions .field { display: grid; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.proposal-actions .field:last-child { border-bottom: 0; }
.proposal-actions .field > strong { color: var(--ink-strong); }
.proposal-actions .field label { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.proposal-actions .field input { width: auto; margin-top: 4px; }
.proposal-actions .field small { margin-left: auto; color: var(--muted); white-space: nowrap; }
details { margin-top: 18px; padding: 16px 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
summary { color: var(--ink-strong); font-weight: 800; cursor: pointer; }
details a { color: var(--teal-dark); }
.compact-specs { font-size: 0.9rem; }
.pagination { justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { color: rgba(230, 244, 241, 0.65); background: var(--navy-dark); }
.footer-main { display: grid; grid-template-columns: 1.45fr repeat(3, 0.65fr); gap: 48px; padding-top: 62px; padding-bottom: 50px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); box-shadow: none; }
.brand-footer .brand-copy small { color: rgba(230,244,241,.52); }
.footer-brand p { max-width: 380px; margin: 20px 0 0; font-size: 0.9rem; }
.footer-column { display: grid; align-content: start; gap: 10px; font-size: 0.82rem; }
.footer-column strong { margin-bottom: 7px; color: #fff; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-column a { color: rgba(230,244,241,.68); text-decoration: none; }
.footer-column a:hover { color: var(--mint); }
.footer-trust span { position: relative; padding-left: 14px; }
.footer-trust span::before { position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; content: ""; background: var(--mint); border-radius: 50%; }
.discogs-disclaimer { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); color: rgba(230,244,241,.52); font-size: .72rem; line-height: 1.65; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 22px; padding-bottom: 25px; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.72rem; }

@media (max-width: 1100px) {
  .site-nav { gap: 10px; }
  .nav-link, .link-button { padding-inline: 9px; }
  .brand-copy small { display: none; }
  .footer-main { grid-template-columns: 1.3fr repeat(3, .75fr); gap: 30px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.enrichment-run-form {
    display: none;
}

@media (max-width: 980px) {
  .nav-wrap { min-height: 74px; }
  html.js .nav-toggle { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; color: var(--navy); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 24px; left: 24px; display: grid; gap: 12px; padding: 14px; background: rgba(255,255,255,.985); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
  html.js .site-nav { display: none; }
  html.js .site-nav.is-open { display: grid; }
  .nav-links, .nav-actions { display: grid; align-items: stretch; gap: 3px; }
  .nav-actions { padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-link, .link-button { width: 100%; justify-content: flex-start; padding-inline: 13px; }
  .nav-cta, .nav-cta:hover { justify-content: center; }
  .member-chip { max-width: none; justify-self: start; margin: 5px 8px; }
  .admin-command-bar { top: 74px; }
  .inline-form { display: flex; }
  .hero { padding: 82px 0; }
  .hero-grid, .split-panel { grid-template-columns: 1fr; gap: 52px; }
  .hero-content { max-width: 780px; }
  .hero-card { width: min(600px, 100%); transform: none; }
  .proof-grid p { padding-inline: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .admin-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr); gap: 40px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-trust { grid-column: 2 / -1; }
  .catalog-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filter > :first-child { grid-column: 1 / -1; }
  .catalog-filter .button { width: 100%; }
  .account-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .section { padding-top: 76px; padding-bottom: 76px; }
  .hero h1 { font-size: clamp(2.85rem, 12vw, 4.7rem); }
  .proof-grid { grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 8px; }
  .proof-grid p, .proof-grid p:first-child { padding: 18px 0; }
  .proof-grid p + p { border-top: 1px solid var(--line); border-left: 0; }
  .feature-grid, .admin-grid { grid-template-columns: 1fr; }
  .feature-grid > :last-child:nth-child(odd), .admin-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .feature-card { min-height: 0; }
  .final-cta { grid-template-columns: 1fr; padding: 40px; }
  .final-cta .button { justify-self: start; }
  .page-intro-badge { width: 86px; height: 86px; border-radius: 22px; }
  .page-intro-badge svg { width: 56px; height: 56px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .product-image-frame, .image-placeholder { max-height: 520px; }
  .proposal-card { grid-template-columns: 1fr; }
  .admin-auto-resolution { align-items: stretch; flex-direction: column; }
  .admin-auto-resolution .button { width: 100%; }
  .enrichment-preview { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-trust { grid-column: auto; }
  .form-progress { top: 86px; }
  .form-progress button { grid-template-columns: auto 1fr; padding: 9px; }
  .form-progress button > span { width: 27px; height: 27px; }
  .form-progress small { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-hero, .account-hero { align-items: flex-start; flex-direction: column; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid .admin-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1180px); }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 1.08rem; }
  .site-nav { right: 14px; left: 14px; }
  .hero { padding: 66px 0; }
  .hero h1 { font-size: clamp(2.65rem, 13.3vw, 4rem); }
  .hero-copy { font-size: 1rem; }
  .search-bar { display: grid; grid-template-columns: auto 1fr; gap: 2px; padding: 8px; }
  .search-bar button { grid-column: 1 / -1; width: 100%; }
  .search-hint { line-height: 1.45; }
  .trust-row { display: grid; gap: 8px; }
  .hero-card { padding: 21px; border-radius: 23px; }
  .metric strong { font-size: 1.45rem; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-heading { margin-bottom: 30px; }
  .feature-card, .auth-card, fieldset, .empty-state, .panel-card, .api-secret-card { padding: 24px; }
  .compact-check-list { grid-template-columns: 1fr; }
  .compact-check-list li + li { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .final-cta-wrap { padding-top: 50px; padding-bottom: 50px; }
  .final-cta { padding: 31px 26px; border-radius: 23px; }
  .final-cta .button { width: 100%; }
  .admin-command-scroll > strong { display: none; }
  .form-progress { top: 80px; gap: 4px; padding: 6px; }
  .form-progress button { grid-template-columns: 1fr; justify-items: center; gap: 4px; text-align: center; }
  .form-progress button > span { grid-row: auto; }
  .form-progress strong { font-size: .67rem; }
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions .button { width: 100%; }
  .catalog-filter, .catalog-grid, .account-kpis { grid-template-columns: 1fr; }
  .account-grid .admin-tool-grid { grid-template-columns: 1fr; }
  .catalog-filter > :first-child { grid-column: auto; }
  .catalog-card { grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto; }
  .catalog-card-media { min-height: 118px; }
  .catalog-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-intro { align-items: flex-start; }
  .page-intro-badge { display: none; }
  .result-summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .result-card { grid-template-columns: 1fr auto; }
  .result-card .ean-badge { grid-column: 1 / -1; }
  .ean-badge { min-width: 0; }
  .product-kicker { align-items: flex-start; flex-direction: column; }
  .ean-panel { align-items: flex-start; flex-direction: column; gap: 4px; }
  .spec-grid, .form-grid, .draft-specs { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .action-row { display: grid; }
  .action-row .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; padding-top: 48px; }
  .footer-brand, .footer-trust { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero-card { transform: none; }
}


/* Parcours d’enrichissement — lisible, rassurant et actionnable */
.enrichment-state {
  max-width: 980px;
  padding: clamp(30px, 5vw, 54px);
  text-align: left;
  border-style: solid;
  border-color: var(--line);
}
.enrichment-heading { max-width: 720px; }
.enrichment-heading h2 { margin: 16px 0 12px; font-size: clamp(2rem, 4vw, 3rem); }
.enrichment-lead { margin: 0; font-size: 1.02rem; }
.enrichment-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--teal-dark);
  background: var(--mint-soft);
  border: 1px solid #cfe3fb;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.enrichment-status-chip i {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37,99,235,.11);
}
.enrichment-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 20px;
}
.enrichment-step {
  min-width: 0;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.enrichment-step > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: .75rem;
  font-weight: 900;
}
.enrichment-step strong, .enrichment-step small { display: block; }
.enrichment-step strong { color: var(--ink-strong); font-size: .88rem; }
.enrichment-step small { margin-top: 4px; color: var(--muted); font-size: .73rem; }
.enrichment-step.is-done { background: #f6f9fd; }
.enrichment-step.is-done > span { color: #fff; background: #2563eb; border-color: #2563eb; }
.enrichment-step.is-active { background: #eef5ff; border-color: #9ec5f5; box-shadow: inset 0 0 0 1px rgba(37,99,235,.07); }
.enrichment-step.is-active > span { color: #1d4ed8; background: #fff; border-color: #93c5fd; }
.source-panel {
  margin: 20px 0;
  padding: 22px;
  background: #0b1f36;
  border-radius: 16px;
}
.source-panel > strong { display: block; margin-bottom: 13px; color: #fff; font-size: .88rem; }
.source-panel p { margin: 14px 0 0; color: #9fb3ca; font-size: .76rem; }
.source-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.source-tags span,
.source-tags a {
  padding: 6px 9px;
  color: #dbeafe;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 750;
  text-decoration: none;
}
.source-tags a:hover { color: #fff; border-color: rgba(147,197,253,.65); }
.enrichment-draft {
  display: grid;
  gap: 3px;
  margin: 20px 0;
  padding: 18px 20px;
  background: #fff8e7;
  border: 1px solid #f3d28a;
  border-radius: 14px;
}
.enrichment-draft span { color: #8a5a0a; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.enrichment-draft strong { color: var(--ink-strong); font-size: 1.05rem; }
.enrichment-draft small { color: var(--muted); }
.auto-refresh-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0 0;
  padding: 14px 16px;
  color: #40556d !important;
  background: var(--blue-soft);
  border-radius: 12px;
  font-size: .82rem;
}
.spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: enrichment-spin .8s linear infinite;
}
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.empty-actions .button { margin: 0; }
.empty-actions .inline-form { margin: 0; }
@keyframes enrichment-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 720px) {
  .enrichment-progress { grid-template-columns: 1fr; }
  .empty-actions { display: grid; }
  .empty-actions .button, .empty-actions .inline-form { width: 100%; }
}

/* v2.13 — conformité, préparation production et application installable */
.footer-install-button { padding: 0; color: #dbeafe; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
.footer-install-button:hover { color: #fff; text-decoration: underline; }
.legal-page { display: grid; gap: 24px; max-width: 1120px; }
.legal-page > h1 { margin: 0; }
.legal-page > p:not(.eyebrow) { max-width: 820px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.legal-list { display: grid; gap: 0; margin: 0; }
.legal-list > div { display: grid; grid-template-columns: minmax(150px,.45fr) minmax(0,.55fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.legal-list > div:last-child { border-bottom: 0; }
.legal-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.legal-list dd { margin: 0; color: var(--ink-strong); font-weight: 750; overflow-wrap: anywhere; }
.legal-sections { display: grid; gap: 16px; }
.legal-sections article { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.legal-sections h2 { margin: 0 0 10px; font-size: 1.13rem; }
.legal-sections p { margin: 0; color: var(--muted); line-height: 1.75; }
.readiness-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-radius: 16px; }
.readiness-summary strong { font-size: 1.15rem; }
.readiness-summary.is-ready { color: #075f46; background: #e8fff6; border: 1px solid #a7f3d0; }
.readiness-summary.has-blockers { color: #8a4b08; background: #fff8e6; border: 1px solid #f6d78b; }
.readiness-list { display: grid; gap: 12px; }
.readiness-check { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.readiness-check h2 { margin: 0 0 5px; font-size: .98rem; }
.readiness-check p { margin: 0; color: var(--muted); font-size: .82rem; }
.readiness-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 950; }
.readiness-check.is-ok .readiness-icon { color: #067647; background: #d9fbe9; }
.readiness-check.is-blocked .readiness-icon { color: #a15c07; background: #fff0c2; }
.scan-page { display: grid; gap: 25px; }
.scan-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 24px; align-items: start; }
.scanner-panel { display: grid; gap: 17px; padding: 22px; background: var(--navy); border-radius: 20px; box-shadow: var(--shadow-lg); }
.scanner-video-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #061526; border-radius: 15px; }
.scanner-video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; }
.scanner-target { position: absolute; inset: 27% 10%; border: 3px solid #38bdf8; border-radius: 16px; box-shadow: 0 0 0 999px rgba(3,12,23,.38); }
.scanner-target::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #f87171; box-shadow: 0 0 14px #ef4444; }
.scan-status { min-height: 24px; margin: 0; color: #c7d9eb; }
.scan-status[data-state="success"] { color: #86efac; }
.scan-status[data-state="warning"] { color: #fde68a; }
.scanner-panel .action-row { margin: 0; }
.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #edf3f9; }
.offline-card { width: min(520px,100%); padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); text-align: center; }
.offline-card img { margin: 0 auto 18px; }
.offline-card h1 { margin: 7px 0 14px; }
.offline-card p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }

@media (max-width: 820px) {
  .legal-grid, .scan-layout { grid-template-columns: 1fr; }
  .readiness-summary { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .legal-list > div { grid-template-columns: 1fr; gap: 5px; }
  .legal-sections article, .scanner-panel { padding: 18px; }
  .scanner-video-wrap { aspect-ratio: 4/5; }
}

/* Tableau de bord administrateur */
.admin-dashboard { display: grid; gap: 26px; }
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 48px);
  color: #dbeafe;
  background: linear-gradient(135deg, #061f35 0%, #0b3c5d 62%, #0d6f75 100%);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(6,31,53,.2);
}
.dashboard-hero h1 { margin: 8px 0 10px; color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); }
.dashboard-hero p { max-width: 720px; margin-bottom: 0; color: #bad1e5; }
.dashboard-hero .eyebrow { color: #7dd3fc; }
.dashboard-refresh { min-width: 190px; display: grid; justify-items: end; gap: 4px; text-align: right; }
.dashboard-refresh span { color: #9fc1d8; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dashboard-refresh strong { color: #fff; }
.dashboard-refresh .button { margin-top: 11px; color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.dashboard-refresh .button:hover { background: rgba(255,255,255,.17); }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.admin-subnav a { padding: 10px 14px; color: var(--muted); border-radius: 9px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.admin-subnav a:hover { color: var(--teal-dark); background: var(--mint-soft); }
.dashboard-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dashboard-kpi { min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #8fb6df; border-radius: 16px; box-shadow: var(--shadow-sm); }
.dashboard-kpi > span, .dashboard-kpi > small, .dashboard-kpi > strong { display: block; }
.dashboard-kpi > span { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-kpi > strong { margin: 8px 0 4px; color: var(--ink-strong); font-size: 2rem; line-height: 1; }
.dashboard-kpi > small { overflow-wrap: anywhere; color: var(--muted); font-size: .75rem; }
.dashboard-kpi.has-warning { border-top-color: #f59e0b; }
.dashboard-kpi.has-danger { border-top-color: #dc5760; }
.dashboard-kpi.is-healthy { border-top-color: #20a576; }
.dashboard-section { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow-sm); scroll-margin-top: 24px; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dashboard-section-heading h2 { margin: 4px 0 0; font-size: 1.65rem; }
.dashboard-section-heading .eyebrow { margin: 0; }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dashboard-columns > .dashboard-section { min-width: 0; }
.dashboard-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-alert { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px 16px; color: var(--ink-strong); background: #fff8e7; border: 1px solid #f1d38f; border-radius: 11px; text-decoration: none; }
.dashboard-alert > span { width: 9px; height: 9px; background: #d99008; border-radius: 50%; box-shadow: 0 0 0 5px rgba(217,144,8,.12); }
.dashboard-alert small { color: var(--muted); font-weight: 800; }
.dashboard-alert.is-danger { background: #fff1f1; border-color: #efc1c4; }
.dashboard-alert.is-danger > span { background: #c9434d; box-shadow: 0 0 0 5px rgba(201,67,77,.11); }
.dashboard-ok { display: flex; align-items: center; gap: 13px; padding: 17px 19px; color: #145f45; background: #e8f7f1; border: 1px solid #bde5d6; border-radius: 12px; }
.dashboard-ok strong::before { content: '✓'; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 9px; color: #fff; background: #20a576; border-radius: 50%; }
.dashboard-ok span { color: #3e7563; }
.dashboard-breakdown { display: grid; gap: 0; margin: 0; }
.dashboard-breakdown > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dashboard-breakdown > div:last-child { border-bottom: 0; }
.dashboard-breakdown dt { color: var(--muted); }
.dashboard-breakdown dd { margin: 0; color: var(--ink-strong); font-weight: 900; }
.automation-list { display: grid; }
.automation-list > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.automation-list > div:last-child { border-bottom: 0; }
.automation-list span { color: var(--ink-strong); font-weight: 820; }
.automation-list strong { color: var(--muted); font-size: .78rem; font-weight: 650; }
.status-pill { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: .64rem; font-style: normal; font-weight: 900; white-space: nowrap; }
.status-success { color: #146044; background: #dff6ec; }
.status-warning { color: #8a5a0a; background: #fff0c8; }
.status-danger { color: #8b2830; background: #fbe3e5; }
.status-info { color: #1e5794; background: #e4f0ff; }
.dashboard-activity { gap: 28px; }
.dashboard-activity h3 { margin: 0 0 12px; font-size: 1.05rem; }
.activity-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.activity-list > a { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; }
.activity-list > a:last-child { border-bottom: 0; }
.activity-list > a:hover { background: var(--surface-soft); }
.activity-list > a > span { min-width: 0; display: grid; gap: 3px; }
.activity-list > a > span:last-child { justify-items: end; text-align: right; }
.activity-list strong { overflow: hidden; color: var(--ink-strong); font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-list small { color: var(--muted); font-size: .68rem; }
.dashboard-muted { color: var(--muted); }
.admin-tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.admin-tool-grid a { min-width: 0; display: grid; gap: 7px; min-height: 112px; align-content: space-between; padding: 17px; color: inherit; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.admin-tool-grid a:hover { background: #fff; border-color: #9fc3e7; box-shadow: 0 10px 24px rgba(8,47,58,.07); transform: translateY(-1px); }
.admin-tool-grid strong { color: var(--ink-strong); font-size: .86rem; }
.admin-tool-grid span { color: var(--muted); font-size: .7rem; line-height: 1.45; }

@media (max-width: 1100px) {
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .dashboard-refresh { justify-items: start; text-align: left; }
  .dashboard-kpis, .dashboard-columns, .dashboard-alerts, .admin-tool-grid { grid-template-columns: 1fr; }
  .dashboard-section { padding: 21px; }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; }
  .automation-list > div { grid-template-columns: 1fr; gap: 5px; }
  .activity-list > a { align-items: flex-start; }
}

/* Médias produit, documents et traçabilité des droits */
.media-fieldset { display: grid; gap: 18px; }
.simple-media-fieldset { gap: 14px; }
.media-upload-grid, .document-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.upload-card, .document-upload-card {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 190px;
  padding: 24px;
  color: var(--ink-strong);
  background: #f7fafc;
  border: 1px dashed #a9bfd4;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
}
.upload-card:hover, .document-upload-card:hover, .upload-card:focus-within, .document-upload-card:focus-within { background: #f0f7ff; border-color: #4f91cf; }
.upload-card-wide { min-height: 155px; }
.upload-card input, .document-upload-card input { width: 100%; margin-top: 7px; padding: 8px; font-size: .78rem; background: #fff; }
.upload-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #1f6caf; background: #e4f0ff; border-radius: 13px; font-size: 1.35rem; }
.upload-card small, .document-upload-card small, .upload-file-name, .document-upload-card em { color: var(--muted); font-size: .73rem; font-style: normal; }
.upload-file-name, .document-upload-card em { overflow: hidden; max-width: 100%; color: #295d88; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.document-upload-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.document-upload-card { min-height: 205px; padding: 18px; }
.document-upload-card > span, .document-badge { display: inline-grid; place-items: center; width: 46px; height: 52px; color: #a72f3a; background: #fdecee; border: 1px solid #f2cbd0; border-radius: 8px; font-size: .69rem; font-weight: 950; letter-spacing: .06em; }
.advanced-media-options, .document-upload-details, .legal-full-text { overflow: hidden; background: #f8fafc; border: 1px solid var(--line); border-radius: 13px; }
.advanced-media-options > summary, .document-upload-details > summary, .legal-full-text > summary { padding: 13px 15px; color: var(--ink-strong); font-size: .8rem; font-weight: 800; cursor: pointer; }
.advanced-media-options[open] > summary, .document-upload-details[open] > summary, .legal-full-text[open] > summary { border-bottom: 1px solid var(--line); }
.advanced-media-options > div, .legal-full-text > p { margin: 0; padding: 15px; }
.document-upload-details { margin: 0; background: #fff; }
.document-upload-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; list-style-position: inside; }
.document-upload-details > summary span { color: var(--muted); font-size: .69rem; font-weight: 750; }
.document-upload-details > fieldset { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.simple-document-grid { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); align-items: stretch; gap: 14px; }
.simple-document-grid > div { align-self: center; }
.document-upload-simple { min-height: 145px; }
.media-url-row { margin-top: 3px; }
.media-rights-panel { display: grid; gap: 15px; background: #fffdf6; border-color: #e8d9a9; }
.media-rights-panel.is-required { box-shadow: inset 4px 0 #d79618; }
.legal-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 13px; padding: 18px; color: #4d3b17; background: #fff8df; border: 1px solid #ead28c; border-radius: 13px; cursor: pointer; }
.legal-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.legal-consent span { display: grid; gap: 6px; font-size: .78rem; line-height: 1.62; }
.legal-consent strong { color: #34270f; font-size: .88rem; }
.legal-error { display: block; margin-top: -7px; }
.legal-links { margin: 0; font-size: .78rem; }
.legal-full-text { background: rgba(255,255,255,.68); }
.legal-full-text > p { color: var(--muted); font-size: .74rem; line-height: 1.62; }
.current-media-panel { margin-top: 34px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.current-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.current-media-card { min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.current-media-card img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }
.current-media-card .document-badge { width: 52px; height: 60px; }
.current-media-card > div { min-width: 0; display: grid; gap: 4px; }
.current-media-card strong, .current-media-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-media-card strong { color: var(--ink-strong); font-size: .79rem; }
.current-media-card small { color: var(--muted); font-size: .68rem; }
.text-danger { padding: 5px 0; color: #a72f3a; background: none; border: 0; font: inherit; font-size: .73rem; font-weight: 850; text-decoration: underline; cursor: pointer; }
.product-thumbnail { padding: 0; background: transparent; border: 0; border-radius: 11px; cursor: pointer; }
.product-thumbnail img { width: 100%; }
.product-thumbnail.is-active { outline: 2px solid #3b82c4; outline-offset: 2px; }
.media-credit, .media-report-link { display: block; margin: 9px 2px 0; color: var(--muted); font-size: .7rem; }
.media-report-link { width: fit-content; text-decoration: underline; }
.product-documents { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.document-list { display: grid; gap: 10px; }
.document-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.document-list article > div { min-width: 0; display: grid; gap: 3px; }
.document-list strong { color: var(--ink-strong); font-size: .86rem; }
.document-list small { color: var(--muted); font-size: .7rem; }
.document-actions { justify-items: end; }
.document-actions .button { padding: 8px 12px; font-size: .72rem; }
.document-actions > a:last-child { color: var(--muted); font-size: .67rem; }

.legal-page { display: grid; gap: 26px; }
.legal-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legal-policy-grid article, .legal-source-note, .rights-report-panel { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); }
.legal-policy-grid h2 { margin: 0 0 12px; font-size: 1.13rem; }
.legal-policy-grid p, .legal-policy-grid li { color: var(--muted); font-size: .83rem; line-height: 1.7; }
.legal-source-note { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; background: #f0f7ff; border-color: #cbdff3; }
.legal-source-note strong, .legal-source-note p { flex-basis: 100%; }
.legal-source-note p { margin: 0 0 5px; color: var(--muted); }
.legal-source-note a { font-size: .77rem; font-weight: 800; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.admin-media-page { display: grid; gap: 24px; }
.admin-media-page .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rights-report-list { display: grid; gap: 12px; }
.rights-report-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 18px; background: #fff8f8; border: 1px solid #efc9cc; border-radius: 13px; }
.rights-report-list h3 { margin: 9px 0 6px; font-size: 1rem; }
.rights-report-list p { margin: 0 0 8px; color: var(--muted); font-size: .82rem; }
.rights-report-list small { color: var(--muted); font-size: .7rem; }
.rights-report-actions { display: grid; align-content: start; justify-items: stretch; gap: 7px; min-width: 155px; }
.rights-report-actions form { margin: 0; }
.rights-report-actions button, .rights-report-actions .button { width: 100%; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.admin-table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: #52677d; background: #f3f7fb; font-size: .69rem; letter-spacing: .04em; text-transform: uppercase; }
.admin-table td { color: var(--ink); font-size: .76rem; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table td > small { max-width: 220px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .document-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .current-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .media-upload-grid, .document-upload-grid, .simple-document-grid, .current-media-grid, .legal-policy-grid, .admin-media-page .dashboard-kpis { grid-template-columns: 1fr; }
  .upload-card, .document-upload-card { min-height: 170px; }
  .current-media-card { grid-template-columns: 56px minmax(0, 1fr); }
  .current-media-card form { grid-column: 2; }
  .document-list article, .rights-report-list > article { grid-template-columns: 1fr; }
  .document-actions { justify-items: start; }
  .rights-report-actions { min-width: 0; }
}

/* Administration v2.9 — files de travail, filtres et actions directes */
.admin-workspace { display: grid; gap: 24px; padding-top: 58px; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.admin-page-heading > div { max-width: 820px; }
.admin-page-heading h1 { margin: 5px 0 12px; font-size: clamp(2.25rem, 5vw, 4.1rem); }
.admin-page-heading p:last-child { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.admin-page-heading > .button { flex: 0 0 auto; }

.dashboard-kpi[href] { color: inherit; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.dashboard-kpi[href]:hover { border-color: #9fc3e7; box-shadow: 0 14px 30px rgba(15,35,58,.1); transform: translateY(-2px); }
.dashboard-product-search { display: grid; grid-template-columns: minmax(230px,.7fr) minmax(420px,1.3fr); align-items: end; }
.dashboard-product-search small { display: block; margin-top: 4px; color: var(--muted); }

.admin-toolbar { display: grid; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.admin-toolbar > label, .admin-toolbar > div > label { color: var(--ink-strong); font-size: .82rem; font-weight: 850; }
.admin-search-row { display: flex; align-items: stretch; gap: 10px; }
.admin-search-row input { min-width: 0; flex: 1 1 auto; min-height: 50px; padding: 0 15px; color: var(--ink-strong); background: #f8fafc; border: 1px solid var(--line-strong); border-radius: 11px; }
.admin-search-row input:focus { background: #fff; border-color: var(--teal); outline: 3px solid rgba(37,99,235,.12); }

.admin-filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.admin-filter-tabs a { min-height: 42px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 13px; color: var(--muted); border-radius: 9px; font-size: .76rem; font-weight: 820; text-decoration: none; white-space: nowrap; }
.admin-filter-tabs a:hover { color: var(--teal-dark); background: var(--surface-soft); }
.admin-filter-tabs a.is-active { color: #fff; background: var(--navy); }
.admin-filter-tabs a strong { min-width: 23px; padding: 3px 7px; color: inherit; background: rgba(15,35,58,.07); border-radius: 999px; text-align: center; }
.admin-filter-tabs a.is-active strong { background: rgba(255,255,255,.16); }

.admin-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-inline: 3px; color: var(--muted); font-size: .8rem; }
.admin-results-heading strong { color: var(--ink-strong); }
.admin-batch-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; color: #fff; background: var(--navy); border-radius: 14px; box-shadow: var(--shadow-sm); }
.admin-batch-bar > div { min-width: 0; }
.admin-batch-bar strong, .admin-batch-bar span { display: block; }
.admin-batch-bar span { margin-top: 3px; color: #bad1e5; font-size: .75rem; }
.admin-batch-bar .button { flex: 0 0 auto; background: #fff; color: var(--navy); border-color: #fff; }
.admin-batch-bar .button:disabled { opacity: .45; cursor: not-allowed; }
.admin-empty-state { min-height: 190px; display: grid; align-content: center; justify-items: center; padding: 35px; text-align: center; }
.admin-empty-state h2, .admin-empty-state h3 { margin: 0 0 8px; font-size: 1.35rem; }
.admin-empty-state p { max-width: 560px; margin: 0; color: var(--muted); }

.admin-queue-table { width: 100%; min-width: 980px; border-collapse: collapse; background: #fff; }
.admin-queue-table th, .admin-queue-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-queue-table tr:last-child td { border-bottom: 0; }
.admin-queue-table th { color: #52677d; background: #f3f7fb; font-size: .67rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.admin-select-column { width: 58px; text-align: center !important; }
.admin-select-column label { display: grid; justify-items: center; gap: 3px; cursor: pointer; }
.admin-select-column label span { font-size: .58rem; }
.admin-select-column input { width: 20px; height: 20px; accent-color: var(--teal); cursor: pointer; }
.admin-queue-table tbody tr:hover { background: #fbfdff; }
.admin-queue-table td { color: var(--ink); font-size: .78rem; }
.admin-queue-table td > strong, .admin-queue-table td > span, .admin-queue-table td > small, .admin-queue-table td > code { display: block; }
.admin-queue-table td > span, .admin-queue-table td > small { margin-top: 4px; color: var(--muted); }
.admin-queue-table td > code { width: fit-content; margin-top: 7px; padding: 3px 6px; color: #315b80; background: #edf5fc; border-radius: 5px; font-size: .68rem; }
.admin-product-title { display: block; max-width: 320px; overflow: hidden; color: var(--ink-strong); font-weight: 900; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-title:hover { color: var(--teal-dark); text-decoration: underline; }
.admin-actions-column { width: 210px; }
.admin-row-actions { min-width: 190px; }
.admin-row-actions, .admin-row-actions form { gap: 7px; }
.admin-row-actions > .button, .admin-row-actions > form, .admin-row-actions > details { margin: 0 5px 5px 0; }
.button-small { min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: .7rem; box-shadow: none; }
.admin-more-actions { position: relative; display: inline-block; }
.admin-more-actions > summary { min-height: 36px; display: inline-flex; align-items: center; padding: 0 11px; color: var(--muted); background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; font-size: .7rem; font-weight: 850; cursor: pointer; list-style: none; }
.admin-more-actions > summary::-webkit-details-marker { display: none; }
.admin-more-actions[open] > div { position: absolute; z-index: 8; top: 42px; right: 0; width: min(320px, 80vw); display: grid; gap: 12px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(15,35,58,.16); }
.admin-more-actions form { display: grid; gap: 8px; }
.admin-more-actions label { display: grid; gap: 6px; color: var(--ink-strong); font-size: .7rem; font-weight: 800; }
.admin-more-actions input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; }

.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 8px; }
.admin-pagination a, .admin-pagination span { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; font-size: .76rem; font-weight: 830; text-decoration: none; }
.admin-pagination a { color: var(--teal-dark); background: #fff; border: 1px solid var(--line-strong); }
.admin-pagination span { color: var(--muted); }

.dashboard-breakdown > .is-link { padding-inline: 8px; border-radius: 8px; }
.dashboard-breakdown > .is-link:hover { background: var(--surface-soft); }
.dashboard-breakdown > .is-link a { color: inherit; text-decoration: none; }
.automation-list > a { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr) auto; align-items: center; gap: 12px; padding: 12px 8px; color: inherit; border-bottom: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.automation-list > a:hover { background: var(--surface-soft); }
.automation-list > a:last-child { border-bottom: 0; }

.admin-proposal-list { gap: 15px; }
.admin-media-page .dashboard-kpis { grid-template-columns: repeat(4, minmax(0,1fr)); }
.admin-proposal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-proposal-heading h2 { margin: 10px 0 7px; font-size: 1.35rem; }
.admin-card-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.admin-card-links a { color: var(--teal-dark); font-size: .77rem; font-weight: 850; }
.admin-review-history { margin: 18px 0 0; padding: 13px; color: var(--muted); background: var(--surface-soft); border-radius: 10px; font-size: .76rem; }
.admin-queue-section { display: grid; gap: 15px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.admin-operations-kpis { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 900px) {
  .admin-page-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-product-search { grid-template-columns: 1fr; }
  .admin-operations-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-media-page .dashboard-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .admin-workspace { padding-top: 38px; }
  .admin-page-heading > .button { width: 100%; }
  .admin-search-row { align-items: stretch; flex-direction: column; }
  .admin-search-row .button { width: 100%; }
  .admin-results-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .admin-batch-bar { position: sticky; z-index: 6; bottom: 10px; align-items: stretch; flex-direction: column; }
  .admin-batch-bar .button { width: 100%; }
  .admin-operations-kpis { grid-template-columns: 1fr; }
  .admin-media-page .dashboard-kpis { grid-template-columns: 1fr; }
  .automation-list > a { grid-template-columns: 1fr; gap: 5px; }
  .admin-table-wrap { overflow: visible; border: 0; }
  .admin-queue-table { min-width: 0; border-collapse: separate; border-spacing: 0 12px; background: transparent; }
  .admin-queue-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-queue-table tbody, .admin-queue-table tr, .admin-queue-table td { display: block; }
  .admin-queue-table tr { overflow: visible; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
  .admin-queue-table td { display: grid; grid-template-columns: minmax(105px,.38fr) minmax(0,.62fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .admin-queue-table td::before { content: attr(data-label); color: var(--muted); font-size: .66rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
  .admin-queue-table td:last-child { border-bottom: 0; }
  .admin-queue-table td > * { grid-column: 2; }
  .admin-row-actions { min-width: 0; }
  .admin-more-actions[open] > div { position: fixed; inset: auto 16px 16px; width: auto; }
}


/* Familles produit : une œuvre, plusieurs plateformes et éditions. */
.product-family {
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid var(--border, #d8e2ef);
    border-radius: 1.25rem;
    background: #f8fbff;
}
.family-platforms,
.family-platform {
    display: grid;
    gap: 1rem;
}
.family-platform + .family-platform {
    margin-top: 1.25rem;
}
.family-platform h3 {
    margin: 0;
    color: #102a43;
}
.family-edition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .85rem;
}
.family-edition-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: .85rem;
    align-items: center;
    min-height: 96px;
    padding: .75rem;
    border: 1px solid #d8e2ef;
    border-radius: 1rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.family-edition-card:hover,
.family-edition-card:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 .5rem 1.5rem rgba(15, 42, 67, .10);
    transform: translateY(-1px);
}
.family-edition-card.is-current {
    border: 2px solid #2563eb;
    background: #eff6ff;
}
.family-edition-image {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: .75rem;
    background: #edf2f7;
    color: #2563eb;
    font-weight: 800;
}
.family-edition-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.family-edition-copy {
    display: grid;
    gap: .2rem;
    min-width: 0;
}
.family-edition-copy strong,
.family-edition-copy small,
.family-edition-copy code {
    overflow-wrap: anywhere;
}
.family-edition-copy code {
    font-size: .76rem;
    color: #52667a;
}
.family-edition-copy em {
    width: max-content;
    padding: .18rem .45rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: .72rem;
    font-style: normal;
    font-weight: 700;
}
@media (max-width: 560px) {
    .product-family {
        padding: 1rem;
    }
    .family-edition-grid {
        grid-template-columns: 1fr;
    }
}


/* Partenaires commerciaux : visibles sans masquer le catalogue. */
.partner-marketplaces {
    margin: 1.25rem 0 1.75rem;
}
.partner-marketplaces-label {
    margin: 0 0 .65rem;
    color: var(--muted, #5f7187);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.partner-marketplaces-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}
.partner-card {
    position: relative;
    display: grid;
    gap: .3rem;
    min-height: 142px;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(16,42,67,.12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.partner-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -42px;
    bottom: -72px;
    border: 24px solid rgba(255,255,255,.12);
    border-radius: 50%;
}
.partner-card:hover,
.partner-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(16,42,67,.2);
}
.partner-card-9okz {
    background: linear-gradient(135deg, #102a43 0%, #1261a0 58%, #2f80ed 100%);
}
.partner-card-thizk {
    background: linear-gradient(135deg, #25134f 0%, #6a2fb8 56%, #d64b8e 100%);
}
.partner-card-kicker {
    position: relative;
    z-index: 1;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: .82;
    text-transform: uppercase;
}
.partner-card strong {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
}
.partner-card > span:not(.partner-card-kicker) {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    color: rgba(255,255,255,.9);
}
.partner-card em {
    position: relative;
    z-index: 1;
    margin-top: auto;
    font-style: normal;
    font-weight: 800;
}
.partner-marketplaces > small {
    display: block;
    margin-top: .55rem;
    color: var(--muted, #5f7187);
}
@media (max-width: 760px) {
    .partner-marketplaces-grid { grid-template-columns: 1fr; }
    .partner-card { min-height: 126px; }
}


/* Vitrines partenaires v2.22 — élégantes, lisibles et orientées découverte. */
.partner-marketplaces {
  margin: 2rem 0 2.25rem;
  padding: 1.35rem;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(242,247,252,.92));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15,35,58,.08);
}
.partner-marketplaces-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.partner-marketplaces-heading > div { display: grid; gap: .18rem; }
.partner-marketplaces-eyebrow {
  color: var(--teal-dark);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.partner-marketplaces-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -.025em;
}
.partner-marketplaces-note {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 720;
}
.partner-marketplaces-grid { gap: 1rem; }
.partner-card {
  grid-template-columns: auto minmax(0,1fr);
  grid-template-rows: 1fr auto;
  gap: .85rem 1rem;
  min-height: 220px;
  padding: 1.45rem;
  color: var(--ink-strong);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 9px 26px rgba(15,35,58,.07);
}
.partner-card::after {
  width: 190px;
  height: 190px;
  right: -105px;
  bottom: -120px;
  border: 0;
  opacity: .14;
  background: currentColor;
}
.partner-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: currentColor;
}
.partner-card-9okz { color: #145fa2; background: linear-gradient(145deg,#fff 35%,#eff7ff); }
.partner-card-thizk { color: #7b2faf; background: linear-gradient(145deg,#fff 35%,#fbf2ff); }
.partner-card:hover,
.partner-card:focus-visible {
  border-color: currentColor;
  box-shadow: 0 18px 42px rgba(15,35,58,.14);
  transform: translateY(-4px);
}
.partner-card-visual {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: currentColor;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(15,35,58,.15);
}
.partner-card-visual svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}
.partner-card-content {
  display: grid;
  align-content: start;
  gap: .28rem;
  min-width: 0;
}
.partner-card-kicker { color: currentColor; opacity: 1; }
.partner-card strong { color: var(--ink-strong); font-size: 1.55rem; letter-spacing: -.035em; }
.partner-card > .partner-card-content > span:not(.partner-card-kicker):not(.partner-card-benefits) {
  color: var(--muted);
  line-height: 1.45;
}
.partner-card-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .4rem;
}
.partner-card-benefits i {
  padding: .27rem .55rem;
  color: currentColor;
  background: color-mix(in srgb, currentColor 9%, white);
  border: 1px solid color-mix(in srgb, currentColor 18%, white);
  border-radius: 999px;
  font-size: .65rem;
  font-style: normal;
  font-weight: 800;
}
.partner-card em {
  grid-column: 1 / -1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: .2rem;
  padding: .72rem 1rem;
  color: #fff;
  background: currentColor;
  border-radius: 11px;
  box-shadow: 0 8px 18px color-mix(in srgb, currentColor 22%, transparent);
  font-size: .78rem;
}
.partner-card em b { font-size: 1.05rem; transition: transform .18s ease; }
.partner-card:hover em b { transform: translateX(4px); }
.partner-marketplaces > small { margin: .8rem .1rem 0; font-size: .68rem; }
@media (max-width: 760px) {
  .partner-marketplaces { margin-inline: -.25rem; padding: .9rem; border-radius: 18px; }
  .partner-marketplaces-heading { align-items: start; flex-direction: column; gap: .35rem; }
  .partner-card { min-height: 0; padding: 1.15rem; }
  .partner-card-visual { width: 50px; height: 50px; border-radius: 14px; }
  .partner-card strong { font-size: 1.35rem; }
}


/* Vitrines partenaires illustrées v2.23. */
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink-strong);
  background: #fff;
}
.partner-card::before,
.partner-card::after { display: none; }
.partner-card-image {
  position: relative;
  width: 100%;
  height: 190px;
  display: block;
  overflow: hidden;
  background: #102a43;
}
.partner-card-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(to top, rgba(4,18,35,.45), transparent);
}
.partner-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}
.partner-card:hover .partner-card-image img { transform: scale(1.025); }
.partner-card-content {
  width: 100%;
  display: grid;
  gap: .32rem;
  padding: 1.15rem 1.2rem .75rem;
}
.partner-card-9okz .partner-card-kicker { color: #145fa2; }
.partner-card-thizk .partner-card-kicker { color: #8b2eb1; }
.partner-card > em {
  align-self: flex-start;
  margin: 0 1.2rem 1.2rem;
}
.partner-card-9okz > em { color: #fff; background: #145fa2; }
.partner-card-thizk > em { color: #fff; background: #8b2eb1; }
.partner-card-benefits i { background: #f3f7fb; border-color: var(--line); }
@media (max-width: 760px) {
  .partner-card-image { height: 160px; }
}


/* Regroupements d’éditions */
.family-review-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.family-review-card {
  overflow: hidden;
  border: 1px solid var(--line, #d9e2ec);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(16, 42, 67, 0.08);
}
.family-review-card > header,
.family-review-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-soft);
}
.family-review-card > header p,
.family-review-card > footer small {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.family-review-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
}
.family-review-comparison section {
  min-width: 0;
}
.family-review-comparison h2 {
  margin: 0.35rem 0;
  font-size: 1.15rem;
}
.family-review-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 170px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 16px;
  background: #eef3f9;
  color: var(--muted);
}
.family-review-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.family-review-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}
.family-review-card > footer form {
  display: flex;
  gap: 0.75rem;
}
.status-pending { background: #fff1c7; color: #8a5a00; }
.status-accepted { background: #dff7eb; color: #176b48; }
.status-rejected { background: #fde7e7; color: #9b2c2c; }

@media (max-width: 760px) {
  .family-review-comparison {
    grid-template-columns: 1fr;
  }
  .family-review-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .family-review-card > header,
  .family-review-card > footer {
    align-items: stretch;
    flex-direction: column;
  }
  .family-review-card > footer form {
    flex-direction: column;
  }
}


.family-detach-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.family-detach-form small {
    color: var(--muted);
    max-width: 42rem;
}


.product-admin-provenance {
    margin-top: 1.5rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 92%, var(--primary) 8%);
}

.product-admin-provenance .admin-table-wrap {
    margin-top: 1rem;
}

.product-provenance-table td,
.product-provenance-table th {
    vertical-align: top;
}


/* Collections > œuvres > éditions */
.product-collection {
    margin: 2rem 0;
    padding: 1.4rem;
    border: 1px solid #cbd9e8;
    border-radius: 22px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
}
.collection-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .85rem;
}
.collection-work-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
    min-height: 96px;
    padding: .8rem;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid #d3dfec;
    border-radius: 16px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.collection-work-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(16, 42, 67, .10);
}
.collection-work-card.is-current {
    border: 2px solid var(--accent);
    background: #eef5ff;
}
.collection-work-image {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border-radius: 12px;
    background: #edf2f7;
    color: var(--accent);
    font-weight: 800;
}
.collection-work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.collection-work-copy {
    display: grid;
    gap: .22rem;
    min-width: 0;
}
.collection-work-copy strong {
    line-height: 1.22;
}
.collection-work-copy small,
.collection-work-copy span {
    color: var(--muted);
}
.collection-work-copy em {
    width: max-content;
    padding: .18rem .5rem;
    color: #fff;
    font-size: .75rem;
    font-style: normal;
    font-weight: 800;
    border-radius: 999px;
    background: var(--accent);
}
@media (max-width: 640px) {
    .product-collection { padding: 1rem; }
    .collection-work-grid { grid-template-columns: 1fr; }
}


/* Passeport produit QR et vidéos officielles */
.product-passport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(35, 112, 95, .22);
  border-radius: 22px;
  background: linear-gradient(135deg, #f0fbf7 0%, #f5f8ff 100%);
}
.product-passport h2,
.product-videos h2 { margin: .15rem 0 .45rem; }
.product-passport p { margin: .25rem 0 .8rem; }
.product-passport-qr,
.product-qr-label-code [data-product-qr] {
  display: grid;
  place-items: center;
  padding: .65rem;
  background: #fff;
  border: 1px solid #d7e2e9;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, .09);
}
[data-product-qr] svg,
[data-product-qr] canvas,
[data-product-qr] img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
[data-product-qr].is-unavailable {
  min-width: 9rem;
  min-height: 9rem;
  color: #7b8794;
  font-size: .86rem;
  text-align: center;
}
.product-passport-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.button-quiet {
  color: #102a43;
  background: #fff;
  border: 1px solid #c7d4df;
}
.share-status {
  min-height: 1.35rem;
  color: #486581;
  font-size: .84rem;
}
.product-videos {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3eaf0;
}
.product-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .85rem;
}
.product-video-card {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding: 1rem;
  color: #102a43;
  text-decoration: none;
  border: 1px solid #d7e2e9;
  border-radius: 16px;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-video-card:hover,
.product-video-card:focus-visible {
  transform: translateY(-2px);
  border-color: #d72525;
  box-shadow: 0 12px 28px rgba(16, 42, 67, .1);
}
.product-video-card > span:last-child {
  display: grid;
  gap: .2rem;
}
.product-video-card small { color: #b42318; font-weight: 750; }
.product-video-card em { color: #627d98; font-size: .83rem; font-style: normal; }
.product-video-play {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: #fff;
  background: #d72525;
  border-radius: 50%;
}
.video-submission-card .checkbox-line { margin-top: 1rem; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.admin-row-actions form { margin: 0; }

.product-label-page { max-width: 920px; }
.label-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-bottom: 1rem;
}
.product-qr-label {
  overflow: hidden;
  border: 2px solid #102a43;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 42, 67, .12);
}
.product-qr-label-brand {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: .65rem 1rem;
  color: #fff;
  background: #102a43;
}
.product-qr-label-brand .brand-mark {
  width: 2rem;
  height: 2rem;
}
.product-qr-label-brand .brand-mark path { stroke: #fff; }
.product-qr-label-main {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 220px;
  gap: 1.1rem;
  align-items: center;
  padding: 1.25rem;
}
.product-qr-label-image {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}
.product-qr-label-copy h1 {
  margin: .2rem 0 .45rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.12;
}
.product-qr-label-copy code { font-size: 1rem; }
.product-qr-label-footer {
  display: grid;
  gap: .18rem;
  padding: .85rem 1.25rem 1rem;
  border-top: 1px solid #d7e2e9;
  text-align: center;
}
.product-qr-label-footer small {
  overflow-wrap: anywhere;
  color: #627d98;
}
.label-print-help { text-align: center; color: #627d98; }

@media (max-width: 700px) {
  .product-passport {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-passport-qr {
    width: 176px;
    margin-inline: auto;
  }
  .product-passport-actions { justify-content: center; }
  .product-qr-label-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-qr-label-image { max-height: 130px; }
  .product-qr-label-code {
    width: 210px;
    margin-inline: auto;
  }
}

@media print {
  @page { margin: 8mm; }
  .site-header,
  .admin-command-bar,
  .site-footer,
  .no-print,
  .product-label-page + * { display: none !important; }
  body,
  main,
  .section,
  .product-label-page {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background: #fff !important;
  }
  .product-qr-label {
    width: 148mm;
    margin: 0 auto;
    break-inside: avoid;
    box-shadow: none;
  }
  .product-qr-label-main {
    grid-template-columns: 28mm 1fr 42mm;
    gap: 5mm;
    padding: 5mm;
  }
  .product-qr-label-code [data-product-qr] { padding: 2mm; box-shadow: none; }
  .product-qr-label-footer { padding: 3mm 5mm 4mm; }
}


/* Expérience de découverte activée uniquement après un scan QR */
.qr-arrival-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 310px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(63, 208, 172, .38), transparent 34%),
    linear-gradient(135deg, #0b2035 0%, #123f55 58%, #176a61 100%);
  box-shadow: 0 22px 55px rgba(16, 42, 67, .24);
}
.qr-arrival-hero::after {
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 270px;
  height: 270px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 255, 255, .035), 0 0 0 70px rgba(255, 255, 255, .025);
}
.qr-arrival-visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 270px;
  place-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.qr-arrival-visual img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
}
.qr-arrival-visual.is-missing .brand-mark {
  width: 7rem;
  height: 7rem;
}
.qr-arrival-visual.is-missing .brand-mark path { stroke: #176a61; }
.qr-arrival-copy { position: relative; z-index: 1; }
.qr-arrival-copy .eyebrow { color: #9ef0d8; }
.qr-arrival-copy h1 {
  max-width: 820px;
  margin: .25rem 0 .35rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.qr-arrival-brand {
  margin: 0 0 1rem;
  color: #d9f7ee;
  font-size: 1.08rem;
  font-weight: 700;
}
.qr-arrival-success {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  margin: 0 0 .8rem;
  padding: .45rem .75rem;
  color: #d9fff3;
  border: 1px solid rgba(158, 240, 216, .45);
  border-radius: 999px;
  background: rgba(21, 118, 96, .35);
  font-size: .85rem;
  font-weight: 750;
}
.qr-arrival-success span {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  color: #0b493c;
  border-radius: 50%;
  background: #9ef0d8;
}
.qr-arrival-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 1.15rem;
}
.qr-arrival-facts span {
  padding: .45rem .7rem;
  color: #eafcf7;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .82rem;
}
.qr-arrival-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.qr-arrival-actions .button {
  color: #123b36;
  background: #9ef0d8;
  border-color: #9ef0d8;
}
.qr-arrival-actions .button-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .48);
}
.qr-mobile-dock { display: none; }

@media (max-width: 760px) {
  .qr-arrival-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-inline: -.25rem;
    padding: 1rem 1rem 1.25rem;
    border-radius: 22px;
  }
  .qr-arrival-visual {
    min-height: 210px;
    max-height: 260px;
  }
  .qr-arrival-visual img { max-height: 225px; }
  .qr-arrival-copy h1 { font-size: clamp(2rem, 11vw, 3.35rem); }
  .qr-arrival-facts { gap: .35rem; }
  .qr-arrival-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .qr-arrival-actions .button { width: 100%; text-align: center; }
  .product-page:has(.qr-mobile-dock) { padding-bottom: 5rem; }
  .qr-mobile-dock {
    position: fixed;
    z-index: 40;
    right: .75rem;
    bottom: max(.75rem, env(safe-area-inset-bottom));
    left: .75rem;
    display: flex;
    justify-content: space-around;
    padding: .45rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background: rgba(11, 32, 53, .94);
    box-shadow: 0 14px 35px rgba(11, 32, 53, .32);
    backdrop-filter: blur(14px);
  }
  .qr-mobile-dock a {
    display: grid;
    gap: .15rem;
    min-width: 4.5rem;
    padding: .35rem .55rem;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
  }
  .qr-mobile-dock a span { color: #9ef0d8; font-size: 1rem; }
}


/* Autocollant QR compact : aperçu x10, impression physique 30 × 20 mm */
.label-preview-heading {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  text-align: center;
}
.product-qr-label-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 1.5rem;
  border-radius: 22px;
  background:
    linear-gradient(45deg, #edf2f7 25%, transparent 25%, transparent 75%, #edf2f7 75%),
    linear-gradient(45deg, #edf2f7 25%, #f8fafc 25%, #f8fafc 75%, #edf2f7 75%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}
.product-qr-label.product-qr-label-compact {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 2px;
  align-items: center;
  overflow: hidden;
  width: 300px;
  height: 200px;
  box-sizing: border-box;
  padding: 3px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 42, 67, .2);
}
.product-qr-label-compact .product-qr-label-code {
  display: grid;
  width: 192px;
  min-width: 0;
  max-width: 192px;
  height: 192px;
  margin: 0;
  place-items: center;
  overflow: hidden;
}
.product-qr-label-compact .product-qr-label-code [data-product-qr] {
  width: 192px;
  height: 192px;
  box-sizing: border-box;
  padding: 19px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.product-qr-label-scan-visual {
  display: grid;
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 100px;
  height: 190px;
  place-items: center;
  overflow: hidden;
  color: #102a43;
}
.product-qr-label-scan-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Carte QR à emporter : aperçu fidèle aux exports PNG 1080 × 1350 et SVG. */
.qr-card-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  margin-top: 4rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid #d8e5ec;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(158, 240, 216, .32), transparent 25%),
    linear-gradient(145deg, #ffffff 0%, #f3f8fb 100%);
  box-shadow: 0 24px 65px rgba(16, 42, 67, .1);
}
.qr-card-studio-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
}
.qr-card-studio-copy > p:not(.eyebrow, .share-status) {
  max-width: 620px;
  color: #486581;
  font-size: 1.02rem;
  line-height: 1.65;
}
.qr-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}
.qr-card-actions .button {
  min-height: 48px;
  padding-inline: 1rem;
}
.qr-card-actions .button:disabled {
  opacity: .52;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.qr-card-actions .share-status {
  flex: 1 0 100%;
  margin: .15rem 0 0;
}
.share-url-fallback {
  flex: 1 0 100%;
  display: grid;
  gap: .4rem;
  color: #334e68;
  font-size: .78rem;
  font-weight: 800;
}
.share-url-fallback[hidden] { display: none; }
.share-url-fallback input {
  width: 100%;
  min-height: 44px;
  padding: .65rem .75rem;
  color: #102a43;
  background: #fff;
  border: 1px solid #9fb3c8;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
}
.qr-card-benefits {
  display: grid;
  gap: .55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  color: #334e68;
  font-size: .9rem;
  list-style: none;
}
.qr-card-benefits li {
  position: relative;
  padding-left: 1.4rem;
}
.qr-card-benefits li::before {
  position: absolute;
  top: .48em;
  left: 0;
  width: .55rem;
  height: .55rem;
  content: "";
  background: #2dd4bf;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .14);
}
.qr-share-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  padding: clamp(1.35rem, 4vw, 2rem);
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(45, 212, 191, .35), transparent 27%),
    linear-gradient(145deg, #071c31 0%, #0c4050 58%, #107166 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(8, 34, 53, .3);
}
.qr-share-card-orbit {
  position: absolute;
  z-index: -1;
  right: -28%;
  bottom: -12%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(158, 240, 216, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(158, 240, 216, .06), 0 0 0 72px rgba(158, 240, 216, .035);
}
.qr-share-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.qr-share-card-brand {
  color: #9ef0d8;
  font-size: .92rem;
  letter-spacing: -.01em;
  text-transform: none;
}
.qr-share-card-product {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 0;
  overflow: hidden;
  padding-top: clamp(1.35rem, 5vw, 2.4rem);
}
.qr-share-card-mark {
  display: grid;
  width: clamp(4.2rem, 18vw, 5rem);
  aspect-ratio: 1;
  margin-bottom: 1.1rem;
  place-items: center;
  color: #08283d;
  background: linear-gradient(145deg, #ffffff, #9ef0d8);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(2, 16, 29, .22);
  font-size: clamp(2rem, 7vw, 2.7rem);
  font-weight: 920;
}
.qr-share-card-category {
  display: inline-flex;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: .75rem;
  padding: .35rem .7rem;
  color: #9ef0d8;
  background: rgba(7, 28, 49, .45);
  border: 1px solid rgba(158, 240, 216, .28);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.qr-share-card-product h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 5vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.qr-share-card-product p {
  overflow: hidden;
  max-width: 100%;
  margin: .55rem 0 0;
  color: #c8eee5;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qr-share-card-footer {
  position: relative;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(6.5rem, 26vw, 7.4rem);
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  color: #102a43;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(2, 16, 29, .24);
}
.qr-share-card-cta {
  display: grid;
  gap: .35rem;
  min-width: 0;
}
.qr-share-card-cta strong {
  color: #0b3547;
  font-size: clamp(1rem, 4vw, 1.35rem);
  line-height: 1.05;
}
.qr-share-card-cta span {
  color: #486581;
  font-size: .72rem;
  line-height: 1.35;
}
.qr-share-card-cta small {
  margin-top: .3rem;
  color: #176a61;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .035em;
}
.qr-share-card-code {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: .65rem;
  background: #fff;
  border: 1px solid #d8e5ec;
  border-radius: 16px;
}
.qr-share-card-code [data-product-qr],
.qr-share-card-code [data-product-qr] svg,
.qr-share-card-code [data-product-qr] canvas,
.qr-share-card-code [data-product-qr] img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 760px) {
  .label-toolbar,
  .qr-card-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .label-toolbar .button,
  .qr-card-actions .button { width: 100%; }
  .qr-card-studio {
    grid-template-columns: 1fr;
    padding: 1rem;
    border-radius: 22px;
  }
  .qr-share-card { order: -1; }
  .qr-share-card-footer {
    grid-template-columns: minmax(0, 1fr) 7.1rem;
    gap: .7rem;
    padding: .75rem;
  }
  .qr-share-card-cta span { display: none; }
}

@media (max-width: 480px) {
  .qr-share-card { padding: 1rem; }
  .qr-share-card-header { font-size: .58rem; }
  .qr-share-card-brand { font-size: .78rem; }
  .qr-share-card-product { padding-top: .8rem; }
  .qr-share-card-mark {
    width: 3.8rem;
    margin-bottom: .65rem;
    border-radius: 17px;
    font-size: 2rem;
  }
  .qr-share-card-category {
    margin-bottom: .5rem;
    padding: .25rem .5rem;
    font-size: .57rem;
  }
  .qr-share-card-product h3 {
    font-size: 1.5rem;
    line-height: 1;
    -webkit-line-clamp: 2;
  }
  .qr-share-card-product p {
    margin-top: .35rem;
    font-size: .76rem;
  }
  .qr-share-card-footer {
    grid-template-columns: minmax(0, 1fr) 6.2rem;
    gap: .55rem;
    padding: .55rem;
    border-radius: 16px;
  }
  .qr-share-card-cta strong { font-size: .86rem; }
  .qr-share-card-cta small { font-size: .56rem; }
  .qr-share-card-code { padding: .4rem; border-radius: 12px; }
}

@media (max-width: 360px) {
  .qr-card-studio { padding: .6rem; }
  .qr-share-card-mark { display: none; }
}

@media print {
  @page { size: 30mm 20mm; margin: 0; }
  html,
  body {
    width: 30mm !important;
    min-width: 0 !important;
    height: 20mm !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .product-label-page,
  .product-qr-label-preview {
    width: 30mm !important;
    max-width: 30mm !important;
    height: 20mm !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .product-qr-label-preview {
    display: block;
    padding: 0;
    background: #fff;
  }
  .product-qr-label.product-qr-label-compact {
    grid-template-columns: 19.2mm minmax(0, 1fr);
    gap: .2mm;
    width: 30mm;
    max-width: 30mm;
    height: 20mm;
    margin: 0;
    padding: .3mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }
  .product-qr-label-compact .product-qr-label-code {
    width: 19.2mm;
    min-width: 0;
    max-width: 19.2mm;
    height: 19.2mm;
    margin: 0;
    overflow: hidden;
  }
  .product-qr-label-compact .product-qr-label-code [data-product-qr] {
    width: 19.2mm;
    height: 19.2mm;
    padding: 1.9mm;
    overflow: hidden;
    border-radius: 0;
  }
  .product-qr-label-scan-visual {
    min-width: 0;
    max-width: 10mm;
    height: 19mm;
    overflow: hidden;
    color: #000;
  }
}

/* Contribution progressive : le strict nécessaire reste visible, le reste se déplie à la demande. */
.contribution-form {
    display: grid;
    gap: 1.25rem;
}

.contribution-minimum-intro {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(35, 104, 168, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(35, 104, 168, 0.09), rgba(80, 191, 153, 0.08));
    color: var(--text, #183149);
}

.contribution-minimum-intro p {
    margin: 0;
    line-height: 1.6;
}

.contribution-minimum-badge {
    justify-self: start;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: #176b55;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contribution-essential,
.contribution-form > .classification-fieldset,
.contribution-form > .simple-media-fieldset {
    margin: 0;
}

.contribution-rollups {
    display: grid;
    gap: 0.8rem;
}

.contribution-rollup {
    overflow: clip;
    border: 1px solid rgba(24, 49, 73, 0.16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 49, 73, 0.06);
}

.contribution-rollup[open] {
    border-color: rgba(35, 104, 168, 0.35);
}

.contribution-rollup > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: 0.95rem 1.05rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.contribution-rollup > summary::-webkit-details-marker {
    display: none;
}

.contribution-rollup > summary::after {
    content: "+";
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(35, 104, 168, 0.1);
    color: #2368a8;
    font-size: 1.35rem;
    font-weight: 700;
}

.contribution-rollup[open] > summary::after {
    content: "−";
    background: #2368a8;
    color: #fff;
}

.contribution-rollup > summary span {
    display: grid;
    gap: 0.2rem;
}

.contribution-rollup > summary strong {
    color: var(--text, #183149);
    font-size: 1rem;
}

.contribution-rollup > summary small {
    color: var(--muted, #5f7182);
    font-size: 0.84rem;
    line-height: 1.4;
}

.contribution-rollup > fieldset,
.contribution-rollup > .document-upload-details {
    margin: 0;
    padding: 0 1.05rem 1.1rem;
    border: 0;
    border-top: 1px solid rgba(24, 49, 73, 0.1);
    border-radius: 0;
}

.contribution-rollup > fieldset > legend {
    padding-top: 1rem;
}

.contribution-rollup .document-upload-details > fieldset {
    margin: 0;
    border: 0;
}

@media (max-width: 640px) {
    .contribution-minimum-intro {
        border-radius: 14px;
    }

    .contribution-rollup > summary {
        align-items: flex-start;
        min-height: 0;
        padding: 0.9rem;
    }

    .contribution-rollup > summary::after {
        width: 1.8rem;
        height: 1.8rem;
        flex-basis: 1.8rem;
    }

    .contribution-rollup > fieldset,
    .contribution-rollup > .document-upload-details {
        padding-inline: 0.85rem;
    }
}

/* Passeport produit scanné : lecture stable, contenu d’abord, achat ensuite. */
[data-qr-arrival],
#product-overview,
#product-videos-title,
#product-editions,
#product-marketplaces {
  scroll-margin-top: 112px;
}
.qr-arrival-actions .button-shop {
  color: #2b1a00;
  border-color: #ffd27a;
  background: linear-gradient(135deg, #ffd778, #ffb84d);
  box-shadow: 0 10px 24px rgba(255, 184, 77, .22);
}
.qr-arrival-actions .button-shop:hover,
.qr-arrival-actions .button-shop:focus-visible {
  color: #201300;
  border-color: #ffe2a6;
  background: linear-gradient(135deg, #ffe19a, #ffc45e);
}
.product-videos {
  margin-top: 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  border: 1px solid #dbe5ed;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f7fafc);
  box-shadow: 0 14px 36px rgba(16, 42, 67, .07);
}
.product-video-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-video-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-color: #d7e2e9;
  border-radius: 18px;
  background: #102a43;
}
.product-video-card:hover,
.product-video-card:focus-within {
  transform: translateY(-2px);
  border-color: #d72525;
  box-shadow: 0 14px 32px rgba(16, 42, 67, .14);
}
.product-video-cover {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  width: 100%;
  min-height: 172px;
  padding: 1.35rem;
  color: #fff;
  text-align: left;
  border: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(215, 37, 37, .36), transparent 34%),
    linear-gradient(135deg, #102a43 0%, #173f5f 68%, #5e2027 100%);
  cursor: pointer;
}
.product-video-cover:hover .product-video-play,
.product-video-cover:focus-visible .product-video-play {
  transform: scale(1.08);
  box-shadow: 0 0 0 9px rgba(255,255,255,.11);
}
.product-video-cover:focus-visible {
  outline: 3px solid #9ef0d8;
  outline-offset: -4px;
}
.product-video-cover .product-video-play {
  width: 3.5rem;
  height: 3.5rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-video-copy {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
.product-video-copy small {
  color: #ffb6b1;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-video-copy strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.25;
}
.product-video-copy em {
  color: #d9e8f5;
  font-size: .82rem;
  font-style: normal;
}
.product-video-consent {
  margin-top: .35rem;
  color: #9ef0d8;
  font-size: .76rem;
  font-weight: 750;
}
.product-video-frame {
  display: grid;
  background: #0b2035;
}
.product-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.product-video-frame > a {
  padding: .7rem 1rem;
  color: #fff;
  text-align: center;
  font-size: .78rem;
  font-weight: 750;
}
.product-video-privacy {
  margin: .85rem 0 0;
  color: #627d98;
  font-size: .78rem;
}
.product-video-empty {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  color: #486581;
  border: 1px dashed #bdcbd8;
  border-radius: 16px;
  background: #fff;
}
.product-video-empty p { margin: 0; }
.product-video-empty .product-video-play { flex: 0 0 auto; }
.product-layout + .partner-marketplaces {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
@media (max-width: 760px) {
  [data-qr-arrival],
  #product-overview,
  #product-videos-title,
  #product-editions,
  #product-marketplaces {
    scroll-margin-top: 88px;
  }
  .qr-mobile-dock { overflow-x: auto; justify-content: flex-start; }
  .qr-mobile-dock a { flex: 1 0 4.35rem; }
  .product-videos { padding: 1rem; border-radius: 18px; }
  .product-video-grid { grid-template-columns: 1fr; }
  .product-video-cover { min-height: 150px; padding: 1.1rem; }
}

/* Mes objets EANpedia — espace personnel synchronisé */

/* Tableau de bord fluide pour Mes objets */
.saved-products-toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto minmax(11rem, 0.35fr);
    gap: 1rem;
    align-items: end;
    padding: 1.2rem;
    border: 1px solid #dce8ed;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(13, 48, 68, 0.07);
}

.saved-products-toolbar-heading,
.saved-products-toolbar-footer {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
}

.saved-products-toolbar-heading .eyebrow {
    margin-bottom: 0.2rem;
}

.saved-products-toolbar-heading h2 {
    margin: 0;
    color: #082f46;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.saved-products-toolbar-heading > p,
.saved-products-toolbar-footer p {
    margin: 0;
    color: #617882;
    font-size: 0.88rem;
}

.saved-products-search,
.saved-products-sort {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    color: #3e5f6b;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.saved-products-search-field {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    min-height: 3rem;
    padding: 0 0.9rem;
    border: 1px solid #cfdde3;
    border-radius: 0.95rem;
    background: #f8fbfc;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.saved-products-search-field:focus-within {
    border-color: #2ca88d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(44, 168, 141, 0.14);
}

.saved-products-search-field > span {
    color: #167463;
    font-size: 1.35rem;
    line-height: 1;
}

.saved-products-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: #163b49;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.saved-products-filters {
    display: flex;
    gap: 0.45rem;
    padding: 0.28rem;
    border: 1px solid #dce8ed;
    border-radius: 1rem;
    background: #f4f8fa;
}

.saved-products-filters button {
    min-height: 2.45rem;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    color: #486670;
    background: transparent;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.saved-products-filters button span {
    display: inline-grid;
    min-width: 1.3rem;
    height: 1.3rem;
    margin-left: 0.25rem;
    place-items: center;
    border-radius: 999px;
    color: #55717b;
    background: #e3ecef;
    font-size: 0.68rem;
}

.saved-products-filters button.is-active {
    color: #073f43;
    background: #8ff0d5;
    box-shadow: 0 5px 14px rgba(26, 122, 103, 0.15);
}

.saved-products-filters button.is-active span {
    color: #fff;
    background: #116b64;
}

.saved-products-sort select {
    min-height: 3rem;
    padding: 0.65rem 2.1rem 0.65rem 0.8rem;
    border: 1px solid #cfdde3;
    border-radius: 0.95rem;
    color: #163b49;
    background-color: #f8fbfc;
    font-size: 0.9rem;
    font-weight: 750;
}

.saved-products-toolbar-footer {
    align-items: center;
    min-height: 1.5rem;
    padding-top: 0.15rem;
}

.saved-products-toolbar-footer .link-button {
    border: 0;
    color: #176b61;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.saved-product-followed {
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    color: #0f5960;
    background: #e5f3f2;
    font-size: 0.66rem;
}

.saved-product-date {
    margin: 0.45rem 0 0;
    color: #789098;
    font-size: 0.72rem;
}

.saved-product-card[hidden],
.saved-products-no-results[hidden] {
    display: none;
}

.saved-products-no-results {
    min-height: 20rem;
}

.saved-products-filters button:focus-visible,
.saved-products-toolbar-footer .link-button:focus-visible {
    outline: 3px solid rgba(20, 138, 115, 0.35);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .saved-products-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.45fr);
    }

    .saved-products-filters {
        grid-column: 1 / -1;
        grid-row: 3;
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .saved-products-toolbar {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }

    .saved-products-toolbar-heading,
    .saved-products-toolbar-footer,
    .saved-products-filters {
        grid-column: 1;
    }

    .saved-products-toolbar-heading {
        display: grid;
    }

    .saved-products-toolbar-heading > p {
        display: none;
    }

    .saved-products-filters {
        grid-row: auto;
    }

    .saved-products-filters button {
        flex: 1 0 auto;
    }

    .saved-products-sort {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .saved-products-search-field {
        transition: none;
    }
}


.nav-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    color: #072f42;
    background: #8ff0d5;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.saved-products-page {
    display: grid;
    gap: 1.4rem;
}

.saved-products-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(1.7rem, 5vw, 4.2rem);
    border-radius: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at 92% 16%, rgba(143, 240, 213, 0.22), transparent 29%),
        radial-gradient(circle at 8% 100%, rgba(255, 196, 99, 0.15), transparent 32%),
        linear-gradient(135deg, #082f46 0%, #0b4c5a 58%, #116b64 100%);
    box-shadow: 0 28px 65px rgba(10, 49, 70, 0.2);
}

.saved-products-hero::after {
    content: "";
    position: absolute;
    width: 18rem;
    height: 18rem;
    right: -7rem;
    bottom: -10rem;
    border: 1px solid rgba(143, 240, 213, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(143, 240, 213, 0.05), 0 0 0 4.5rem rgba(143, 240, 213, 0.04);
    pointer-events: none;
}

.saved-products-hero > * {
    position: relative;
    z-index: 1;
}

.saved-products-hero .eyebrow {
    color: #8ff0d5;
}

.saved-products-hero h1 {
    max-width: 12ch;
    margin: 0.2rem 0 0.8rem;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 0.98;
}

.saved-products-hero p:not(.eyebrow) {
    max-width: 46rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.saved-products-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.saved-products-hero .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.08);
}

.saved-products-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.saved-products-kpis div {
    padding: 1.15rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.15rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
}

.saved-products-kpis dt {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.saved-products-kpis dd {
    margin: 0.3rem 0 0;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
}

.saved-products-privacy {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border: 1px solid #cce9e2;
    border-radius: 1.1rem;
    color: #174b50;
    background: linear-gradient(90deg, #effbf7, #f8fffd);
}

.saved-products-privacy > span {
    display: grid;
    flex: 0 0 2rem;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #073f43;
    background: #8ff0d5;
    font-weight: 900;
}

.saved-products-privacy p {
    margin: 0.15rem 0 0;
    color: #557275;
    font-size: 0.9rem;
}

.saved-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.saved-product-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    border: 1px solid #dce6ec;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 16px 38px rgba(13, 48, 68, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.saved-product-card:hover {
    transform: translateY(-2px);
    border-color: #9edfd0;
    box-shadow: 0 20px 44px rgba(13, 48, 68, 0.13);
}

.saved-product-card.has-update {
    border-color: #66cdb4;
    box-shadow: 0 18px 44px rgba(24, 137, 112, 0.15);
}

.saved-product-visual {
    position: relative;
    display: grid;
    min-height: 12rem;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(145deg, #082f46, #116b64);
}

.saved-product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saved-product-visual.is-missing span {
    font-size: 3rem;
    font-weight: 900;
}

.saved-product-visual.is-missing small {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.7rem;
    text-align: center;
}

.saved-product-copy {
    min-width: 0;
    padding: 1.15rem 1.15rem 5.4rem;
}

.saved-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.55rem;
    color: #54707b;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.saved-product-update {
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    color: #073f43;
    background: #8ff0d5;
    font-size: 0.66rem;
}

.saved-product-copy h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.18;
}

.saved-product-copy h2 a {
    color: #082f46;
    text-decoration: none;
}

.saved-product-brand {
    margin: 0.42rem 0;
    color: #54707b;
}

.saved-product-copy code {
    color: #46616c;
    font-size: 0.76rem;
}

.saved-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.saved-product-actions form {
    margin: 0;
}

.saved-product-preferences {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 9.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 0.75rem 1.1rem;
    border-top: 1px solid #e8eff3;
    background: #f8fbfc;
}

.saved-product-alert-form {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
}

.saved-product-alert-form label {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.saved-product-alert-form input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #148a73;
}

.saved-product-alert-form span {
    display: grid;
    min-width: 0;
}

.saved-product-alert-form strong {
    color: #173e4a;
    font-size: 0.78rem;
}

.saved-product-alert-form small {
    overflow: hidden;
    max-width: 15rem;
    color: #6b7f87;
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-product-alert-form .link-button,
.saved-product-remove {
    border: 0;
    color: #176b61;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.saved-product-remove {
    color: #8a3d45;
}

.saved-products-empty {
    padding: clamp(2.5rem, 8vw, 6rem) 1.5rem;
    border: 1px dashed #b9cdd6;
    border-radius: 1.5rem;
    text-align: center;
    background: #fff;
}

.saved-products-empty > span {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 1.2rem;
    color: #073f43;
    background: #8ff0d5;
    font-size: 2rem;
}

.saved-products-empty h2 {
    margin-bottom: 0.4rem;
}

.saved-products-empty p {
    max-width: 38rem;
    margin: 0 auto 1.2rem;
    color: #617882;
}

.qr-account-invite {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(143, 240, 213, 0.42);
    border-radius: 1rem;
    color: #fff;
    background: rgba(4, 35, 52, 0.48);
}

.qr-account-invite[hidden] {
    display: none;
}

.qr-account-invite > span {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 50%;
    color: #073f43;
    background: #8ff0d5;
}

.qr-account-invite p {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.qr-saved-products-account {
    display: inline-flex;
    margin: 0.5rem 0.8rem 0.75rem;
    color: #8ff0d5;
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 980px) {
    .saved-products-hero,
    .saved-products-grid {
        grid-template-columns: 1fr;
    }

    .saved-products-kpis {
        max-width: 32rem;
    }
}

@media (max-width: 640px) {
    .saved-products-page {
        gap: 1rem;
    }

    .saved-products-hero {
        padding: 1.4rem;
        border-radius: 1.35rem;
    }

    .saved-products-hero h1 {
        font-size: 2.45rem;
    }

    .saved-products-hero-actions .button {
        flex: 1 1 100%;
    }

    .saved-products-kpis div {
        padding: 0.85rem 0.45rem;
    }

    .saved-product-card {
        grid-template-columns: 7.25rem minmax(0, 1fr);
    }

    .saved-product-visual {
        min-height: 11rem;
    }

    .saved-product-copy {
        padding: 1rem 0.9rem 7.2rem;
    }

    .saved-product-preferences {
        left: 0;
        align-items: flex-end;
    }

    .saved-product-alert-form {
        display: grid;
    }

    .saved-product-alert-form small {
        max-width: 12rem;
    }

    .qr-account-invite {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .qr-account-invite .button {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .saved-product-card {
        transition: none;
    }
}



.saved-products-import-banner[hidden] {
    display: none;
}

.saved-products-import-banner {
    position: relative;
    z-index: 45;
    border-bottom: 1px solid rgba(20, 76, 99, .16);
    background:
        radial-gradient(circle at 12% 0, rgba(83, 228, 190, .18), transparent 42%),
        linear-gradient(110deg, #f8fffd 0%, #f3f8ff 68%, #fff9ed 100%);
    box-shadow: 0 12px 34px rgba(17, 52, 72, .08);
}

.saved-products-import-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: .7rem 1.2rem;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.saved-products-import-copy .eyebrow {
    margin: 0 0 .22rem;
}

.saved-products-import-copy strong {
    display: block;
    color: var(--navy);
    font-size: 1.03rem;
}

.saved-products-import-copy p {
    margin: .28rem 0 0;
    color: var(--muted);
}

.saved-products-import-legacy[hidden] {
    display: none;
}

.saved-products-import-legacy {
    padding: .48rem .65rem;
    border: 1px solid rgba(147, 64, 30, .2);
    border-radius: .7rem;
    background: rgba(255, 249, 237, .82);
    color: #74361e !important;
}

.saved-products-import-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem;
}

.saved-products-import-actions .button-link {
    color: #93401e;
}

.saved-products-import-status {
    grid-column: 1 / -1;
    min-height: 1.2em;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 760px) {
    .saved-products-import-inner {
        grid-template-columns: 1fr;
    }

    .saved-products-import-actions {
        justify-content: flex-start;
    }

    .saved-products-import-actions .button {
        flex: 1 1 12rem;
        text-align: center;
    }
}

/* Public B9 offer: exact code, isolated from product facts and QR visitor mode. */
.product-b9-offer[hidden] { display: none !important; }
.product-b9-offer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.15rem 0;
    padding: 1.1rem 1.15rem;
    border: 1px solid #d9e5fb;
    border-radius: 1rem;
    background: linear-gradient(115deg, #fff 30%, #f2f6ff);
    box-shadow: 0 5px 18px rgba(20, 52, 100, .045);
}
.product-b9-offer-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.product-b9-offer-main { display: flex; align-items: center; gap: .85rem; min-width: 0; flex: 1 1 17rem; }
.product-b9-offer-logo {
    display: grid;
    place-items: center;
    flex: 0 0 2.65rem;
    height: 2.65rem;
    border-radius: .8rem;
    background: #142b4b;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.06em;
    box-shadow: 0 3px 8px rgba(20, 43, 75, .14);
}
.product-b9-offer-copy { min-width: 0; }
.product-b9-offer-heading { display: flex; align-items: center; gap: .4rem; color: #425875; font-size: .78rem; font-weight: 600; line-height: 1.5; }
.product-b9-offer-dot { width: .38rem; height: .38rem; flex: 0 0 .38rem; border-radius: 50%; background: #16845e; }
.product-b9-offer-details { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; margin: .25rem 0 .3rem; }
.product-b9-offer-price { color: #142b4b; font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-b9-offer-condition { max-width: 100%; padding: .22rem .55rem; border: 1px solid #e0e7f0; border-radius: 999px; background: #fff; color: #425875; font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
.product-b9-offer-condition[hidden] { display: none; }
.product-b9-offer small { display: block; color: #526176; font-size: .7rem; line-height: 1.5; }
.product-b9-offer .product-b9-offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: .65rem .9rem;
    border-radius: .65rem;
    background: #2455db;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(36, 85, 219, .14);
    transition: background .15s ease, box-shadow .15s ease;
}
.product-b9-offer .product-b9-offer-button:hover { background: #1943bb; color: #fff; box-shadow: 0 4px 12px rgba(36, 85, 219, .2); }
.product-b9-offer .product-b9-offer-button:focus-visible { outline: 3px solid #142b4b; outline-offset: 3px; }
.product-b9-offer-button span { font-size: 1.1rem; line-height: 1; }
@media (max-width: 540px) {
    .product-b9-offer { padding: 1rem; gap: .9rem; }
    .product-b9-offer-main { flex-basis: 100%; }
    .product-b9-offer .product-b9-offer-button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .product-b9-offer .product-b9-offer-button { transition: none; }
}
