/* Click2Buy Insights Gateway — back-office. Charte Click2Buy : orange #EA5631, marine #242D59. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #ea5631;
  --orange-strong: #d2421e;
  --orange-soft: #fdeee9;
  --orange-glow: rgba(234, 86, 49, 0.18);
  --navy: #242d59;
  --navy-strong: #171d3d;
  --ink: #242d59;
  --ink-2: #4a5175;
  --muted: #7c819b;
  --bg: #f5f5f9;
  --surface: #ffffff;
  --surface-2: #fafafd;
  --border: #e7e8f0;
  --border-strong: #d6d8e6;
  --good: #12a861;
  --good-soft: #e5f7ee;
  --warn: #c86a00;
  --warn-soft: #fff3e2;
  --bad: #e04848;
  --bad-soft: #fdecec;
  --teal: #0f9d8f;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(23, 29, 61, 0.05);
  --shadow: 0 10px 30px -14px rgba(23, 29, 61, 0.22);
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); font-feature-settings: 'ss01'; }
a { color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.is-bad { color: var(--bad) !important; }
.is-warn { color: var(--warn) !important; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark img { height: 24px; width: auto; }
.product { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; padding-left: 12px; border-left: 1px solid var(--border-strong); }
.product small { font-weight: 600; color: var(--orange); font-size: 13px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 13px; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--navy); color: #fff; }
.user { display: flex; align-items: center; gap: 10px; margin: 0; flex: none; }
.user-name { font-weight: 600; font-size: 14px; }

/* ---------- Layout ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 30px 24px 70px; display: grid; gap: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head .lead { margin: 8px 0 0; }
.lead { color: var(--ink-2); font-size: 16px; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin-bottom: 12px; border-radius: 99px; background: var(--orange-soft); color: var(--orange); font-weight: 700; font-size: 12.5px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.back:hover { color: var(--orange); }
.back + .eyebrow { display: flex; width: fit-content; }
.title-row { display: flex; align-items: center; gap: 16px; }
.title-row .pills { margin-top: 8px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.head-actions form { margin: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); min-width: 0; }
.card > h2 { margin-bottom: 14px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.link { color: var(--orange); font-weight: 600; font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; }
.empty { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 40px 24px; }
.empty p { color: var(--ink-2); max-width: 520px; margin: 0; }
.empty-inline { padding: 24px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.kpi-label { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; }
.kpi-value small { font-size: 16px; color: var(--muted); font-weight: 600; }
.kpi-sub { color: var(--muted); font-size: 12.5px; }
.kpi-hero { background: linear-gradient(140deg, var(--navy-strong), #2f3a72); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.kpi-hero .kpi-label, .kpi-hero .kpi-sub { color: rgba(255, 255, 255, 0.72); }
.kpi-hero-orange { background: linear-gradient(140deg, var(--orange), #f07a4f); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -14px rgba(234, 86, 49, 0.6); }
.kpi-hero-orange .kpi-label, .kpi-hero-orange .kpi-sub { color: rgba(255, 255, 255, 0.85); }
.kpi-clicky:not(.kpi-hero-orange) { border-color: #f8d3c7; background: linear-gradient(180deg, #fff, var(--orange-soft)); }

/* ---------- Chart ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--font); }
.chart .bar rect:not(.hit) { transition: opacity 0.15s; }
.chart .hit { fill: transparent; }
.chart .bar:hover rect:not(.hit) { opacity: 0.8; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i, .api-tag i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.api-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.card-flush .table th { background: var(--surface-2); padding: 12px 16px; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.card-flush .table td { padding: 12px 16px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td small { display: block; color: var(--muted); }
.table td a { text-decoration: none; }
.table td a:hover strong, .table td a:hover > span:last-child { color: var(--orange); }
.table-dense td { padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.table .clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.table .clip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.is-off td { opacity: 0.6; }
tr.is-warn-row td { background: var(--warn-soft); }
.row-link { cursor: pointer; }
.cell-bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; margin-right: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.cell-bar i { display: block; height: 100%; border-radius: 99px; background: var(--orange); }
.brand-cell { display: flex; align-items: center; gap: 12px; }
.brand-cell strong { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Pills, avatars, statuses ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-muted { background: var(--bg); color: var(--ink-2); }
.pill-orange { background: var(--orange-soft); color: var(--orange); }
.verdict { background: var(--navy); color: #fff; }
.verdict-excellent { background: var(--good); }
.verdict-bon { background: var(--teal); }
.verdict-a_ameliorer { background: #f2a541; color: var(--navy-strong); }
.verdict-critique { background: var(--bad); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--orange-soft); color: var(--orange); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.avatar-sm { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; }
.status { display: inline-grid; place-items: center; min-width: 40px; height: 22px; padding: 0 7px; border-radius: 7px; font: 700 12px var(--mono); }
.status-good { background: var(--good-soft); color: var(--good); }
.status-warn { background: var(--warn-soft); color: var(--warn); }
.status-bad { background: var(--bad-soft); color: var(--bad); }
.status-muted { background: var(--bg); color: var(--ink-2); }

/* ---------- Feeds ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: 0; }
.feed a, .feed-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; }
.feed a:hover strong { color: var(--orange); }
.feed-main { flex: 1; min-width: 0; display: grid; }
.feed-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.feed-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-empty { padding: 14px 0; }
.feed-icon { display: inline-grid; place-items: center; min-width: 78px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: var(--bg); color: var(--ink-2); flex: none; }
.scope-widget { background: var(--orange-soft); color: var(--orange); }
.scope-campagnes { background: #ecebfd; color: #5a4fd6; }
.scope-marque { background: #e8eaf6; color: var(--navy); }
.scope-alerte { background: var(--warn-soft); color: var(--warn); }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.versions li { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.versions li .mono { flex: 1; font-size: 14px; }
.versions li b { font-size: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.timeline .when { display: inline-block; min-width: 92px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline small { color: var(--muted); }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; }
.facts > div { display: grid; gap: 3px; align-content: start; min-width: 0; }
.facts small { color: var(--muted); }
.fact-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.fact-wide { grid-column: 1 / -1; }
.notes { white-space: pre-wrap; color: var(--ink-2); }

/* ---------- Segmented control, filters ---------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.seg a { padding: 7px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current='true'] { background: var(--navy-strong); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; min-width: 190px; }
.pager { display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 700 14px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, box-shadow 0.15s, transform 0.1s, color 0.15s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, .switch:focus-visible { outline: 3px solid var(--orange-glow); outline-offset: 2px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -10px rgba(234, 86, 49, 0.75); }
.btn-primary:hover { background: var(--orange-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-danger { background: var(--surface); color: var(--bad); border-color: #f3c4c4; }
.btn-ghost-danger:hover { background: var(--bad-soft); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #c93636; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-layout { display: grid; gap: 18px; max-width: 820px; }
.form-layout .card { display: grid; gap: 16px; }
.form-layout .card > h2 { margin: 0; }
.hint { margin: -8px 0 0; color: var(--muted); font-size: 13.5px; }
.field-label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
.field-label small { font-weight: 500; color: var(--muted); }
.field-help { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.field-error { font-weight: 600; font-size: 13px; color: var(--bad); }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: #fff; color: var(--ink); font: 500 15px var(--font); transition: border-color 0.15s, box-shadow 0.15s; }
.input.mono { font: 500 14px var(--mono); }
.input:hover { border-color: #b9bdd2; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow); outline: none; }
textarea.input { resize: vertical; }
select.input { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237c819b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--orange); }
.switch-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.switch-row:hover { border-color: var(--border-strong); }
.switch-row span { display: grid; gap: 4px; }
.switch-row small { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.switch { appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 99px; background: var(--border-strong); cursor: pointer; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23, 29, 61, 0.3); transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.switch:checked { background: var(--orange); }
.switch:checked::after { transform: translateX(20px); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 240px; }

/* ---------- Flash, callouts ---------- */
.flash { padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.flash-ok { background: var(--good-soft); color: #0b7a46; border: 1px solid #c4ead6; }
.flash-err { background: var(--bad-soft); color: #b42f2f; border: 1px solid #f3c4c4; }
.callout { padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); font-size: 14px; }
.callout strong { color: var(--ink); }
.callout-warn { background: var(--warn-soft); border-color: #f6dcb6; }
.callout-bad { background: var(--bad-soft); border-color: #f3c4c4; }
.danger { border-color: #f3c4c4; }
.danger h2 { color: var(--bad); margin-bottom: 6px; }
.danger p { color: var(--ink-2); margin: 0 0 14px; font-size: 14px; }

/* ---------- Insights key ---------- */
.key-reveal { display: grid; place-items: center; padding-top: 20px; }
.card-key { max-width: 720px; width: 100%; display: grid; gap: 16px; padding: 32px; box-shadow: var(--shadow); }
.card-key .eyebrow { width: fit-content; margin: 0; }
.card-key .lead { margin: 0; }
.key-box { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--navy-strong); }
.key-box code { flex: 1; color: #fff; font: 600 15px var(--mono); word-break: break-all; user-select: all; }
.key-facts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); }
.key-facts b { color: var(--ink); }

/* ---------- Clicky advice ---------- */
.advice { display: grid; gap: 4px; }
.advice-head { display: flex; align-items: center; gap: 14px; }
.advice-head .eyebrow { margin: 0 8px 0 0; }
.advice-summary { font-size: 16px; color: var(--ink-2); margin: 14px 0 0; }
.checks, .caveats { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.actions { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: act; }
.action { position: relative; padding: 16px 18px 14px 56px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); display: grid; gap: 8px; counter-increment: act; }
.action::before { content: counter(act); position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; }
.action p { margin: 0; color: var(--ink-2); font-size: 14px; }
.advice .callout { margin-top: 16px; }
details summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
details summary::-webkit-details-marker { display: none; }
details summary h2::before { content: '▸ '; color: var(--orange); }
details[open] summary h2::before { content: '▾ '; }
.code { margin: 16px 0 0; padding: 18px; border-radius: 14px; background: var(--navy-strong); color: #dfe3ff; font: 12.5px/1.55 var(--mono); overflow: auto; max-height: 620px; }

/* ---------- Login ---------- */
body.is-login { min-height: 100vh; background: radial-gradient(900px 500px at 85% -10%, rgba(234, 86, 49, 0.16), transparent 60%), radial-gradient(800px 600px at -10% 110%, rgba(36, 45, 89, 0.14), transparent 60%), var(--bg); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(420px, 100%); display: grid; gap: 18px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 34px 30px 30px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.login-logo { height: 34px; width: auto; }
.login-card h1 { font-size: 28px; margin-top: 8px; }
.login-card h1 span { color: var(--orange); }
.login-card .lead { margin: -6px 0 6px; font-size: 15px; }
.login-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2, .grid-wide-left { grid-template-columns: minmax(0, 1fr); }
  .topbar-inner { flex-wrap: wrap; gap: 12px 20px; padding: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  .user { margin-left: auto; }
}
@media (max-width: 600px) {
  .page { padding: 20px 16px 50px; }
  .card { padding: 18px 16px; }
  .user-name, .product small { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .filters .input { min-width: 0; flex: 1 1 100%; }
  .key-box { flex-direction: column; align-items: stretch; padding: 14px; }
  .card-key { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Users ---------- */
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.row-actions form { margin: 0; }
.user-link { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 3px 10px 3px 3px; border-radius: 99px; }
.user-link:hover, .user-link[aria-current='page'] { background: var(--bg); }
.form-layout + .callout, .page-head + .callout { max-width: 820px; }
