/* TCGMarket3000, direction « Classeur » : sobre, lisible, une seule couleur d'accent (rouge Pokédex).
   Conçu d'abord pour le téléphone, élargi pour l'ordinateur (à partir de 761 px). */
/* Police hébergée sur le site (pas d'appel à Google Fonts : rien n'est envoyé à un tiers). Licence OFL : fonts/LICENSE-OFL.txt */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/schibsted-grotesk-latin-wght-normal.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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
  /* Un seul thème : sombre */
  color-scheme: dark;
  --bg: #0f1114;
  --surface: #1a1d22;
  --surface-2: #22262c;
  --ink: #eceef2;
  --muted: #9aa1ad;
  --line: #2a2e35;
  --line-strong: #3a3f48;
  --brand: #ff6b58; /* remplissages (boutons, barres) */
  --brand-ink: #0f1114; /* texte sur le rouge */
  --brand-text: #ff7a68; /* rouge lisible en texte */
  --brand-soft: #3a1f1b;
  --green: #4ade9b;
  --green-soft: #133526;
  --amber: #f0b45a;
  --amber-soft: #3a2c12;
  --red: #ff7b72;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
  --float: 0 8px 24px rgba(0, 0, 0, 0.45);
  --sleeve: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 34%);
  --sleeve-edge: rgba(255, 255, 255, 0.08);
  --tag-bg: rgba(15, 17, 20, 0.86);
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 64px;
  --nav-gap: 12px;
  /* hauteur réservée en bas par la barre d'onglets flottante */
  --bottom: calc(var(--nav-h) + var(--nav-gap) + var(--safe-b) + 8px);
  /* courbes d'animation (Emil Kowalski) : sortie franche pour l'interface, courbe iOS pour les feuilles */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
::selection { background: var(--brand-soft); color: var(--ink); }
input, textarea { caret-color: var(--brand); }
::placeholder { color: var(--muted); opacity: 1; }
/* Ce qui se touche est une commande, pas du texte : pas de sélection ni de menu « Enregistrer l'image » à l'appui long */
button, a, [role='button'], .tile, .pocket, .pick, .nav a {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--font);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4, h3.h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand-text); text-decoration: none; }
small, .small { font-size: 0.82rem; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.green { color: var(--green); }
.amber { color: var(--amber); }
.num, .val { font-variant-numeric: tabular-nums; }
.warn-text { color: var(--amber); padding: 10px 0; }
.grow { flex: 1; min-width: 0; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Affichage selon l'écran */
@media (max-width: 760px) {
  .desk-only { display: none !important; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 14px 16px calc(var(--bottom) + 84px); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: var(--safe-t); }
.bar { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 10px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); margin-right: auto; }
.logo.big { font-size: 1.6rem; justify-content: center; margin: 0 0 2px; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12); flex: none; }
.logo.big .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.profile { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; border-radius: 99px; padding: 2px; }
.profile.on .avatar { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; flex: none; }
.avatar.sm { width: 40px; height: 40px; border-radius: 50%; font-size: 0.95rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 56px; height: 56px; border-radius: 50%; font-size: 1.4rem; }
.avatar.xl { width: 84px; height: 84px; border-radius: 50%; font-size: 2rem; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.member .avatar { border-radius: 50%; }
.who-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-head > div { min-width: 0; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }

/* ---------- Barre d'onglets flottante (téléphone) ---------- */
.nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-gap) + var(--safe-b)); z-index: 30;
  height: var(--nav-h); padding: 0 4px; border-radius: 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--surface); box-shadow: var(--float), inset 0 0 0 1px var(--line);
}
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: var(--muted); font-size: 0.74rem; font-weight: 600; min-width: 0; transition: transform 160ms var(--ease-out); }
.nav a:active { transform: scale(0.94); }
.nav a span { white-space: nowrap; }
.nav a.on { color: var(--brand-text); }
.nav a.on .ic { stroke-width: 2.3; }
.nav em { position: absolute; top: 6px; left: calc(50% + 6px); font-style: normal; background: var(--brand); color: var(--brand-ink); font-size: 0.68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Titres de page, statistiques ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head .muted { margin-top: 4px; max-width: 62ch; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.back .ic { width: 18px; height: 18px; }
.stats { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.stat { display: grid; gap: 1px; }
.stat b { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.stat span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Boutons et champs ---------- */
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.grow input { flex: 1; min-width: 0; }
.row.split > * { flex: 1 1 auto; }
.btn { appearance: none; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); color: var(--ink); min-height: 46px; padding: 10px 16px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; transition: background 0.15s, box-shadow 0.15s, transform 160ms var(--ease-out); touch-action: manipulation; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.primary { background: var(--brand); box-shadow: none; color: var(--brand-ink); }
.btn.danger { color: var(--red); }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: 0.88rem; border-radius: 11px; }
.btn.wide { width: 100%; }
.link { appearance: none; background: none; border: 0; padding: 6px 0; color: var(--brand-text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.danger-link { color: var(--red); justify-self: start; font-size: 0.9rem; }
/* 16 px minimum : sinon l'iPhone zoome à chaque saisie */
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 46px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type='checkbox'] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); flex: none; }
input[type='file'] { padding: 8px; font-size: 14px; }
label { display: grid; gap: 5px; font-weight: 600; font-size: 0.9rem; }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
label.check.pad { align-self: end; }
label.inline { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.small-check { font-size: 0.88rem; min-height: 36px; margin-bottom: 6px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.pw-eye { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.stack { display: grid; gap: 12px; }
.stack.tight { gap: 3px; }
.stackl { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two.vc { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters input { flex: 1; }
.filters select { width: auto; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; font-size: 0.92rem; }

/* Sélecteur à deux ou trois choix */
.seg { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; padding: 8px; border-radius: 10px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg em { font-style: normal; font-size: 0.78rem; min-width: 22px; height: 22px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; padding: 0 6px; }
.sticky-seg { position: sticky; top: calc(56px + var(--safe-t) + 8px); z-index: 10; margin-bottom: 12px; box-shadow: var(--shadow); }
.view-seg { margin: 14px 0 12px; }

/* ---------- Cartes : pochettes de classeur ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; background: var(--surface); border-radius: 12px; padding: 5px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.tile:active, .pocket:active, .pick:active, .setrow:active, .member:active, .set:active { transform: scale(0.97); }
.pocket, .pick, .setrow, .member, .set { transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.fab:active { transform: scale(0.94); }
.tile.sel { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 3px var(--brand-soft); }
/* reflet de la pochette plastique : l'élément signature, discret */
.art { position: relative; border-radius: 7px; overflow: hidden; background: var(--surface-2); aspect-ratio: 245 / 337; }
.art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.art::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: var(--sleeve); box-shadow: inset 0 0 0 1px var(--sleeve-edge); }
.price { position: absolute; right: 4px; bottom: 4px; z-index: 1; font-size: 0.7rem; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 6px; background: var(--tag-bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.price.none { color: var(--amber); }
.count { position: absolute; left: 4px; bottom: 4px; z-index: 1; font-size: 0.7rem; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.keep { position: absolute; left: 50%; top: 42%; z-index: 1; transform: translate(-50%, -50%); font-size: 0.72rem; font-weight: 700; background: var(--surface); color: var(--amber); padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow); white-space: nowrap; }
.is-kept .art img { opacity: 0.5; }
.tick { position: absolute; top: 4px; right: 4px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: none; place-items: center; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); }
.tile.sel .tick { display: grid; }
.meta { padding: 6px 3px 2px; display: grid; gap: 1px; min-width: 0; }
.meta b { font-size: 0.82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta small { color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta .who { color: var(--brand-text); font-weight: 600; }

.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 30px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty b { color: var(--ink); font-size: 1.1rem; }

/* ---------- Classeurs (par extension) ---------- */
.prog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.setrows { display: grid; gap: 10px; }
.setrow { display: grid; gap: 8px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; color: var(--ink); }
.setrow header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.setrow header b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setrow header span { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.setrow header span strong { color: var(--ink); }
.setrow footer { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.binder-head { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 12px; }
.binder-head header { display: flex; justify-content: space-between; align-items: baseline; }
.binder { background: var(--surface-2); border-radius: 16px; padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pocket { position: relative; background: var(--surface); border-radius: 10px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; border: 0; font: inherit; color: inherit; text-align: left; min-width: 0; }
.pocket.miss { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); padding: 0; display: grid; }
.pocket.miss .slot { aspect-ratio: 245 / 337; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; text-align: center; color: var(--muted); }
.pocket.miss .slot b { font-size: 0.86rem; color: var(--muted); }
.pocket.miss .slot small { font-size: 0.72rem; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pocket.miss.wished { border-color: var(--brand); }
.pocket.miss.wished .slot { color: var(--brand-text); }
.pocket.miss .heart { width: 16px; height: 16px; margin-top: 3px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.pager .btn { min-width: 46px; padding: 0; }
.pager span { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Bouton + flottant (téléphone) */
.fab { position: fixed; right: 16px; bottom: calc(var(--bottom) + 10px); z-index: 25; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); cursor: pointer; transition: transform 160ms var(--ease-out); }
.fab .ic { width: 26px; height: 26px; stroke-width: 2.4; }

/* ---------- Fenêtres : feuille qui monte du bas sur téléphone ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 14, 0.55); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s var(--ease-out); }
.modal { position: relative; background: var(--surface); width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 22px 16px calc(20px + var(--safe-b)); display: grid; gap: 14px; align-content: start; animation: rise 0.32s var(--ease-sheet); }
.modal.tall { min-height: 70dvh; }
.modal h2 { margin: 0; padding-right: 44px; }
.grab { position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-strong); }
.x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1rem; z-index: 2; }
@keyframes rise { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.card-view { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.card-view figure { margin: 0; text-align: center; flex: 0 1 230px; min-width: 0; }
.card-view img { width: 100%; max-width: 230px; border-radius: 12px; display: block; margin: 0 auto; }
.card-view:not(.two-up) img { max-width: 210px; }
.card-view figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.facts span { font-size: 0.8rem; color: var(--muted); }
.facts b { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts .mine { background: var(--brand-soft); }
.facts .mine b { color: var(--brand-text); }
.note { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.src { font-size: 0.76rem; color: var(--muted); }

/* Estimation par le propriétaire */
.estimate { display: grid; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.estimate .ref { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.86rem; color: var(--muted); }
.estimate .ref b { color: var(--ink); font-variant-numeric: tabular-nums; }
.estimate .amount input { width: 130px; }

.chosen { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--brand-soft); padding: 8px 14px; border-radius: 12px; }
.setlist { display: grid; gap: 6px; max-height: 48dvh; overflow-y: auto; overscroll-behavior: contain; }
.set { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 52px; padding: 8px 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.set img, .set i { width: 28px; height: 28px; object-fit: contain; flex: none; }
.set span { display: grid; }
.set small { color: var(--muted); }
.pick { display: grid; gap: 3px; text-align: left; padding: 5px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.pick img { width: 100%; border-radius: 7px; aspect-ratio: 245 / 337; object-fit: contain; background: var(--surface-2); }
.pick b { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .num { color: var(--ink); font-weight: 600; }
.pick.busy { opacity: 0.6; pointer-events: none; position: relative; }
.pick.busy::after { content: 'Chargement…'; position: absolute; inset: auto 0 6px; text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }

/* États des cartes : couleurs de l'échelle Cardmarket */
.cond { display: inline-block; min-width: 24px; padding: 2px 5px; border-radius: 99px; font-size: 0.7rem; font-weight: 800; line-height: 1.25; letter-spacing: 0.02em; text-align: center; vertical-align: 1px; color: #fff; background: var(--muted); flex: none; white-space: nowrap; }
.cond.c-MT { background: #2b7a93; }
.cond.c-NM { background: #2b7f40; }
.cond.c-EX { background: #676c1d; }
.cond.c-GD { background: #f2c230; color: #2b2100; }
.cond.c-LP { background: #f08a3c; color: #2b1200; }
.cond.c-PL { background: #c4404e; }
.cond.c-PO { background: #a8222b; }

/* Ajout : la carte choisie, assez grande pour vérifier que c'est la bonne */
.preview.add { grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.preview.add > img { width: 96px; max-width: none; border-radius: 8px; margin: 0; }
.preview.add .link { padding: 4px 0; font-size: 0.88rem; }
.estimate .cm-link { justify-self: start; }
.cm-link .ic { width: 16px; height: 16px; }
.hint { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: 0.92rem; }
.hint .link { padding: 2px 0; }
.preview { display: grid; gap: 14px; }
.preview > img { width: 100%; max-width: 170px; border-radius: 12px; margin: 0 auto; }
.preview.mini { grid-template-columns: 60px 1fr; gap: 12px; align-items: center; }
.preview.mini > img { border-radius: 6px; margin: 0; }

.sheet-actions { position: sticky; bottom: calc(-20px - var(--safe-b)); z-index: 3; display: grid; gap: 8px; margin: 4px -16px calc(-20px - var(--safe-b)); padding: 12px 16px calc(12px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.lbl { font-weight: 600; font-size: 0.9rem; }
.filebtn { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; border: 1.5px dashed var(--line-strong); border-radius: 12px; color: var(--brand-text); font-weight: 600; cursor: pointer; margin-top: 6px; }
.filebtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filebtn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; min-height: 0; }
.filebtn:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.filebtn.has-file { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.filebtn.off { opacity: 0.45; pointer-events: none; }

/* ---------- Wishlist, membres ---------- */
.wishgrid { display: grid; gap: 10px; }
.wish { display: grid; grid-template-columns: 80px 1fr; gap: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; align-items: start; }
.wish img { width: 100%; border-radius: 8px; }
.holders { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 0.9rem; }
.holders li { display: flex; align-items: center; gap: 8px; }
.holders li > span { color: var(--muted); flex: 1; font-size: 0.82rem; }
.members { display: grid; gap: 10px; }
.member { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; color: var(--ink); min-height: 64px; }
.pill { font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.st-pending { background: var(--amber-soft); color: var(--amber); }
.pill.st-accepted { background: var(--green-soft); color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-l { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 99px; padding: 6px 12px; font-size: 0.88rem; }
.chip-l small { color: var(--muted); }
.chip-l.hit { box-shadow: inset 0 0 0 1px var(--green); background: var(--green-soft); }

/* ---------- Matchs et échanges ---------- */
.cols { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; min-width: 0; }
.cols > * { min-width: 0; }
.cols.tight { grid-template-columns: 1fr; gap: 10px; }
.match, .trade { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; display: grid; gap: 12px; }
.match header, .trade header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.match header b, .trade header b, .match header .card-title { font-size: 1.05rem; font-weight: 700; margin: 0; letter-spacing: 0; }
.trade .date { margin-left: auto; }
.match footer, .trade footer { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.trade .actions { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.trade .actions .btn.primary { grid-column: 1 / -1; }
.trade.declined .mini img, .trade.cancelled .mini img, .trade.countered .mini img { opacity: 0.55; }
.quote { color: var(--muted); font-style: italic; }
.mini { display: flex; align-items: center; gap: 10px; padding: 4px 0; min-width: 0; }
.mini img { width: 36px; border-radius: 4px; flex: none; }
.mini > span { display: grid; font-weight: 600; font-size: 0.9rem; min-width: 0; flex: 1; }
.mini > span, .mini > span > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini > span > small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.mini > b { font-size: 0.92rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* jauge d'équilibre : ce que je donne / ce que je reçois / le cash */
.gauge { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.gauge i { display: block; min-width: 2px; }
.gauge .g-give { background: var(--brand); }
.gauge .g-get { background: var(--ink); opacity: 0.85; }
.gauge .g-cash { background: var(--ink); opacity: 0.35; }

/* ---------- Proposition : un côté à la fois sur téléphone ---------- */
.propose[data-side='give'] .side-get, .propose[data-side='get'] .side-give { display: none; }
/* Le dock de proposition est plus haut que la marge normale : sans ça, les derniers scellés passent dessous. */
.wrap:has(.dock) { padding-bottom: calc(var(--bottom) + 150px); }
.dock { position: fixed; left: 10px; right: 10px; bottom: var(--bottom); z-index: 15; background: var(--surface); border-radius: 18px; box-shadow: var(--float), inset 0 0 0 1px var(--line); }
.dock-in { max-width: 1120px; margin: 0 auto; padding: 10px 12px; display: grid; gap: 8px; }
.pstat { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.86rem; }
.dock-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.amount { flex-wrap: nowrap; }
.amount input { width: 110px; flex: none; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.amount span { font-weight: 700; margin-right: auto; }
.review .mini { padding: 2px 0; }

/* ---------- Réglages ---------- */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; margin-bottom: 12px; display: grid; gap: 10px; }
.panel h2 { margin: 0; }
.panel p { max-width: 60ch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }

/* ---------- Connexion, chargement, notifications ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); }
.auth-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 26px 20px; width: min(420px, 100%); display: grid; gap: 14px; }
.auth-card h1 { font-size: 1.35rem; }
.tagline { text-align: center; margin-top: -6px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msg { min-height: 1.2em; font-weight: 600; }
.msg.warn { color: var(--amber); }
.msg.ok { color: var(--green); }
.splash { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; color: var(--muted); }
.splash b { color: var(--ink); font-size: 1.2rem; }
.spin { animation: wob 0.9s ease-in-out infinite alternate; }
@keyframes wob { to { transform: rotate(8deg); } }
#toasts { position: fixed; left: 50%; top: calc(var(--safe-t) + 64px); transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; font-size: 0.92rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); font-weight: 600; animation: rise 0.24s var(--ease-out); }
.toast.ok { background: var(--green); color: var(--surface); }
.toast.bad { background: var(--red); color: var(--surface); }

/* Écrans très étroits (petits Android, iPhone SE) */
@media (max-width: 370px) {
  .nav a { font-size: 0.7rem; }
  .stats { gap: 14px; }
  .stat b { font-size: 1.15rem; }
}

/* Tablettes en largeur moyenne */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .grid.small { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .members, .wishgrid, .setrows { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .facts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .cols.tight { grid-template-columns: 1fr 1fr; gap: 16px; }
  .binder, .binder-head, .pager { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 761px) {
  :root { --bottom: 0px; }
  .mob-only { display: none !important; }
  h1 { font-size: 2.1rem; }
  .wrap { padding: 24px 24px 140px; }
  .bar { height: 64px; padding: 0 24px; gap: 16px; }
  .logo { margin-right: 8px; }
  .nav { position: static; height: auto; padding: 0; display: flex; gap: 4px; background: none; box-shadow: none; border-radius: 0; flex: 1; }
  .nav a { flex-direction: row; gap: 8px; height: auto; font-size: 0.93rem; padding: 9px 12px; border-radius: 10px; }
  .nav a .ic { width: 19px; height: 19px; }
  .nav a.on { background: var(--brand-soft); }
  .nav em { position: static; box-shadow: none; }
  .profile { padding: 3px 12px 3px 3px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
  .profile .avatar.sm { width: 34px; height: 34px; box-shadow: none; background: var(--surface-2); }
  .profile.on .avatar.sm { background: var(--brand); color: var(--brand-ink); }
  .profile.on { color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand); }
  .page-head { margin-bottom: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
  .grid.small { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .propose[data-side] .side-get, .propose[data-side] .side-give { display: block; }
  .propose h2 { margin-top: 0; }
  .match footer, .trade footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .actions, .trade .actions { display: flex; grid-template-columns: none; }
  .trade .actions .btn.primary { order: 3; }
  .dock { left: 0; right: 0; bottom: 0; border-radius: 0; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35); border-top: 1px solid var(--line); }
  .dock-in { grid-template-columns: 1fr auto; align-items: center; padding: 12px 24px; }
  .pstat { font-size: 0.95rem; gap: 4px 20px; }
  .dock-actions { grid-template-columns: auto auto; }
  .fab { display: none; }
  .modal-back { align-items: center; padding: 24px; }
  .modal { width: min(500px, 100%); max-height: calc(100dvh - 48px); border-radius: 22px; padding: 24px; }
  .modal.wide { width: min(740px, 100%); }
  .modal.tall { min-height: 0; }
  .grab { display: none; }
  .sheet-actions { position: static; margin: 4px 0 0; padding: 0; border: 0; background: none; }
  .preview > img { max-width: none; }
  .preview { grid-template-columns: 240px 1fr; align-items: start; gap: 22px; }
  .row.split > * { flex: 0 1 auto; }
  .auth-card { padding: 32px 28px; }
  #toasts { top: 78px; left: auto; right: 24px; transform: none; width: 360px; }
}

/* Survol : uniquement avec une souris ou un trackpad. Sur écran tactile (iPad compris), le survol resterait collé après le toucher. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: inset 0 0 0 1px var(--brand); }
  .btn.primary:hover { filter: brightness(1.06); box-shadow: none; }
  .tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
  .pocket:hover, .set:hover, .pick:hover, .member:hover, .setrow:hover { box-shadow: inset 0 0 0 1px var(--brand); }
  .profile:hover { box-shadow: inset 0 0 0 1px var(--brand); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .nav a:hover { background: var(--surface); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Cartes gradées ---------- */
.grade { display: inline-block; padding: 2px 6px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; line-height: 1.25; letter-spacing: 0.02em; white-space: nowrap; vertical-align: 1px; color: #14161a; background: linear-gradient(180deg, #f3f4f6, #d9dde3); flex: none; }
.slab { position: absolute; left: 4px; top: 4px; z-index: 1; padding: 3px 6px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; line-height: 1; color: #14161a; background: linear-gradient(180deg, #f3f4f6, #d9dde3); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.graded { padding: 10px 12px; }
.graded-body { display: grid; gap: 10px; margin-top: 6px; }

/* ---------- Scellés ---------- */
.tile.sealed .art img { object-fit: cover; aspect-ratio: 245 / 337; }

/* ---------- Boutons fichier compacts (photo de profil, visuels admin) ---------- */
.filebtn-inline { position: relative; overflow: hidden; cursor: pointer; }
.filebtn-inline input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; }
.filebtn-inline:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- En-tête de collection, installation, admin, page publique ---------- */
.head-actions { gap: 8px; flex-wrap: wrap; }
.install-cta { margin-bottom: 12px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.45; }
.steps .ic.inline { width: 18px; height: 18px; vertical-align: -3px; }
.admin-row { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 10px; }
.admin-row > img { width: 64px; border-radius: 6px; flex: none; aspect-ratio: 245 / 337; object-fit: cover; background: var(--surface-2); }
.admin-row .row { gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.public .stats { margin: 4px 0 6px; }
.public .join { margin-top: 28px; }
.match header .avatar.sm { width: 30px; height: 30px; font-size: 0.8rem; }

/* ---------- Scellés dans une proposition : quantité ---------- */
.sealed-h { margin: 16px 0 8px; }
.qty-step { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'n n' 'm p'; gap: 4px; padding: 4px 0 0; min-width: 0; }
.qty-step .btn { grid-area: m; min-height: 40px; min-width: 0; width: 100%; padding: 0; font-size: 1.15rem; }
.qty-step .btn:last-child { grid-area: p; }
.qty-step b { grid-area: n; font-variant-numeric: tabular-nums; font-size: 0.9rem; text-align: center; white-space: nowrap; }
.wrap-row { gap: 8px; flex-wrap: wrap; }
.center { text-align: center; margin-top: 18px; }
.center .link { text-align: center; }

/* ---------- Accueil (aussi sans compte) : vitrine, recherche, filtres ---------- */
.public-top .row { gap: 8px; }
.hero { display: grid; gap: 10px; padding: 8px 0 18px; }
.hero h1 { font-size: 1.7rem; max-width: 22ch; }
.hero p { max-width: 58ch; }
.home-head { align-items: center; flex-wrap: nowrap; }
.home-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-row .chips { flex: 1 1 auto; }
.home-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1 1 320px; min-width: 0; }
.home-selects select { width: 100%; text-overflow: ellipsis; }
.meta .set-name { color: var(--muted); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips .chip { appearance: none; border: 0; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 99px; min-height: 40px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform 140ms var(--ease-out); }
.chips .chip.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--brand); }
.chips .chip:active { transform: scale(0.97); }
#home-body { margin-top: 14px; }
.more { margin: 18px 0 6px; }
.meta .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Pages légales ---------- */
.seg > a { flex: 1; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 8px; border-radius: 10px; font-weight: 700; color: var(--muted); font-size: 0.92rem; line-height: 1.2; }
.seg > a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.legal-seg { margin-bottom: 16px; }
.legal { max-width: 58ch; line-height: 1.55; }
.legal p, .legal li, .steps li, .bul li { text-wrap: pretty; }
.legal h2 { margin: 22px 0 8px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 26px 0 8px; font-size: 0.86rem; }
.legal-links a { color: var(--muted); padding: 6px 0; }
.auth .legal-links { padding-top: 14px; }
.auth { align-content: center; gap: 4px; }
label.check.terms { align-items: flex-start; min-height: 0; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
label.check.terms input { margin-top: 2px; }
.bul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }

/* ---------- Signalements, modération ---------- */
.muted-link { color: var(--muted); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.ic.inline { width: 16px; height: 16px; vertical-align: -3px; }
.member-foot { margin-top: 28px; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill.bad { background: var(--brand-soft); color: var(--red); }
.report { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.report header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report .date { margin-left: auto; }
.report.done { opacity: 0.7; }
.report .row { gap: 8px; }
.panel .stack.tight .link { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Accueil visiteur : en-tête compact (plus de grand bandeau) ---------- */
.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; }
.home-tag { margin: 0 0 10px; }
.head-auth { flex-wrap: nowrap; gap: 6px; margin-left: auto; }
.head-auth .btn.small { min-height: 36px; padding: 6px 11px; font-size: 0.85rem; white-space: nowrap; }
.head-auth .short { display: none; }
@media (max-width: 430px) {
  .head-auth .long { display: none; }
  .head-auth .short { display: inline; }
  .public-top .bar { gap: 6px; }
}
@media (max-width: 370px) {
  .public-top .logo { font-size: 0.98rem; gap: 7px; }
  .public-top .logo-mark { width: 20px; height: 20px; }
  .head-auth .btn.small { padding: 6px 9px; font-size: 0.82rem; }
}

/* ---------- Mode admin : statistiques ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.kpi b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-weight: 600; font-size: 0.9rem; }
.kpi small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.alert-row { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; min-height: 48px; }
.alert-row span { flex: 1; }
.alert-row .ic { color: var(--brand-text); }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; align-items: end; height: 150px; padding-top: 4px; border-bottom: 1px solid var(--line); }
.bar-col { height: 100%; display: grid; grid-template-rows: 18px 1fr; align-items: end; justify-items: center; position: relative; min-width: 0; }
.bar-col .bar-fill { display: block; width: 70%; max-width: 22px; background: var(--brand); border-radius: 4px 4px 0 0; align-self: end; }
.bar-col .bar-val { font-size: 0.72rem; font-weight: 700; color: var(--ink); align-self: end; font-variant-numeric: tabular-nums; }
.bar-col .bar-day { position: absolute; bottom: -20px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.bar-col:hover .bar-fill { background: var(--brand-text); }
.panel .bars { margin-bottom: 22px; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 0.9rem; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar i { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--brand); }
.hbar b { font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.latest { display: grid; }
.latest-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.latest-row:first-child { border-top: 0; }
.latest-row span { grid-column: 1; font-size: 0.85rem; }
.latest-row small { grid-column: 2; grid-row: 1; }
@media (min-width: 761px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Recherche de cartes : chargement progressif ---------- */
.estimate .ref .pending { color: var(--muted); }
#pk-results [data-action=pk-more] { margin-top: 14px; }
