@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --panel: #161618;
  --panel-2: #1c1c1f;
  --text: #f3f1ee;
  --muted: #9a9590;
  --orange: #ff6a1a;
  --orange-dim: #c44e10;
  --orange-glow: rgba(255, 106, 26, 0.28);
  --ok: #3ecf8e;
  --warn: #e8b339;
  --err: #ff4d4d;
  --border: #2a2a2e;
  --border-hot: #3d2a1c;
  --font: "IBM Plex Sans", sans-serif;
  --display: "Syne", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(255, 106, 26, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 106, 26, 0.07), transparent 45%),
    linear-gradient(180deg, #101012 0%, var(--bg) 40%, #070708 100%);
  background-attachment: fixed;
}

.top {
  padding: 1.75rem 1.5rem 0.25rem;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand span {
  color: var(--orange);
  text-shadow: 0 0 24px var(--orange-glow);
}
.tag { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.92rem; }

main { max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem 3.5rem; }

.panel {
  background: linear-gradient(160deg, rgba(28, 28, 31, 0.92), rgba(14, 14, 16, 0.95));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.4rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}
h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
h3 { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin: 1.25rem 0 0.6rem; }

.hint { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.hint code, code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: #ffb48a;
  background: #1a1410;
  border: 1px solid var(--border-hot);
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
}

label { display: block; margin: 0.75rem 0; color: var(--muted); font-size: 0.88rem; }
input, select, button {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #0e0e10;
  color: var(--text);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--orange-dim);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
button {
  background: linear-gradient(180deg, #ff7a2e, var(--orange));
  border-color: transparent;
  color: #140800;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
button:hover { filter: brightness(1.06); transform: translateY(-1px); }
button:disabled { opacity: 0.55; cursor: wait; transform: none; }
button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  font-weight: 500;
}

.err { color: var(--err); font-size: 0.9rem; }

.tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tabs button {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  font-weight: 600;
}
.tabs button.active {
  color: #140800;
  background: linear-gradient(180deg, #ff7a2e, var(--orange));
  box-shadow: 0 8px 20px var(--orange-glow);
}
.tab { display: none; animation: fade 0.25s ease; }
.tab.active { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(165deg, #1a1a1d, #101012);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange);
  opacity: 0.85;
}
.kpi strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
}
.kpi span { color: var(--muted); font-size: 0.8rem; }

.row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }

.list article {
  border-top: 1px solid var(--border);
  padding: 0.65rem 0;
  font-size: 0.92rem;
}
.list article:first-child { border-top: 0; }

/* Fleet / status */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin: 0.75rem 0 1.25rem;
}
.fleet-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  position: relative;
}
.fleet-card h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
}
.fleet-card h3 .co {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-left: 0.4rem;
  letter-spacing: 0.06em;
}
.status-row {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #101012;
  color: var(--muted);
  font-family: var(--mono);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--err);
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}
.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.55);
}
.dot.warn {
  background: var(--warn);
  box-shadow: 0 0 8px rgba(232, 179, 57, 0.45);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.metric {
  background: #0e0e10;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.45rem 0.5rem;
}
.metric b {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffd2b3;
}
.metric small { color: var(--muted); font-size: 0.7rem; }

.users-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  margin: 0.5rem 0 1.2rem;
}
.user-card {
  border: 1px solid var(--border-hot);
  background: linear-gradient(145deg, #1f1610, #121214);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.user-card .label {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 0.45rem;
}
.user-card .trio {
  display: flex; gap: 0.75rem;
}
.user-card .trio div strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.15rem;
}
.user-card .trio div span { font-size: 0.7rem; color: var(--muted); }

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filter-pills .pill {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
}
.filter-pills .pill.active {
  background: linear-gradient(180deg, #ff7a2e, var(--orange));
  color: #140800;
  border-color: transparent;
}
.progress-wrap {
  height: 10px;
  border-radius: 999px;
  background: #1a1a1d;
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0.75rem 0 0.5rem;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c44e10, #ff6a1a);
  transition: width 0.25s ease;
}
.line-chart { width: 100%; min-height: 160px; }
.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
  margin-top: 0.5rem;
}
.chart-panel {
  background: #101012;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem 1rem;
}
.chart-panel header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.65rem;
}
.chart-panel header span { color: var(--muted); font-size: 0.78rem; }
.bars { display: flex; align-items: flex-end; gap: 0.55rem; min-height: 168px; padding-top: 0.35rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; justify-content: flex-end; min-width: 0; }
.bar-stack { width: 100%; display: flex; flex-direction: column-reverse; gap: 2px; min-height: 4px; }
.bar-seg { width: 100%; border-radius: 4px 4px 2px 2px; min-height: 2px; transition: height 0.35s ease; }
.bar-seg.vv { background: linear-gradient(180deg, #ff8a3d, #ff6a1a); }
.bar-seg.mm { background: linear-gradient(180deg, #6b6b73, #3a3a40); }
.bar-col label { font-size: 0.68rem; color: var(--muted); text-align: center; }
.bar-val {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1;
  font-weight: 500;
}
.bar-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.hbar { margin: 0.35rem 0; }
.hbar .meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }
.hbar .track {
  height: 8px; border-radius: 999px; background: #1c1c1f; overflow: hidden;
  border: 1px solid var(--border);
}
.hbar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  border-radius: 999px;
}

.legend { display: flex; gap: 0.85rem; font-size: 0.75rem; color: var(--muted); margin-top: 0.55rem; }
.legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.3rem; vertical-align: -1px;
}
.legend .vv i { background: var(--orange); }
.legend .mm i { background: #5a5a62; }
.legend .fc i {
  background: transparent;
  border-top: 2px dashed #b794f6;
  height: 0;
  width: 1rem;
  border-radius: 0;
  vertical-align: 2px;
}

.sync-bar {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
  margin: 0.85rem 0 0.25rem;
}

/* Catalog + people cards */
.search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.85rem; }
.search-row input { flex: 1; min-width: 180px; }
.catalog, .people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 0.35rem 0 1.35rem;
  padding: 0.15rem 0;
}
.card-item, .person-card {
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #1a1a1d, #101012);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}
.card-item:hover, .person-card:hover {
  border-color: var(--orange-dim);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--orange-glow);
}
.card-item strong, .person-card strong { display: block; margin-bottom: 0.25rem; }
.card-item .meta, .person-card .meta { color: var(--muted); font-size: 0.78rem; font-family: var(--mono); }
.co-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.co-badge i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}
.co-badge.co-vv i { background: #3ecf6a; box-shadow: 0 0 0 1px rgba(62, 207, 106, 0.35); }
.co-badge.co-mm i { background: #4c8dff; box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.35); }
.co-badge.co-vv { color: #7dff9f; }
.co-badge.co-mm { color: #8eb6ff; }
.person-card {
  display: flex; gap: 0.7rem; align-items: center;
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #1c1410;
  border: 1px solid var(--border-hot);
  flex-shrink: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.avatar svg { width: 28px; height: 28px; opacity: 0.85; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 50;
  padding: 1rem;
  animation: fade 0.2s ease;
}
.modal {
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: linear-gradient(165deg, #1c1c1f, #0e0e10);
  border: 1px solid var(--border-hot);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 40px var(--orange-glow);
}
.modal.wide { width: min(720px, 100%); }
.modal header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.75rem; margin-bottom: 0.85rem;
}
.modal header h3 { margin: 0; font-family: var(--display); }
.modal .close {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  font-weight: 600; padding: 0.35rem 0.6rem;
}
.modal label { margin-top: 0.55rem; }
.modal .actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
}
.form-grid.label-stack,
.form-grid.cols-1 {
  grid-template-columns: 1fr;
}
.form-grid label {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.form-grid label.span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  min-width: 0;
}
.stock-ok { color: var(--ok); }
.stock-low { color: var(--orange); }
.stock-out { color: var(--err); font-weight: 700; }
.card-item.low { border-color: var(--orange-dim); }
.card-item.out { border-color: var(--err); box-shadow: inset 0 0 0 1px rgba(255,77,77,0.25); }
.product-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.product-hero .thumb {
  width: 140px; height: 160px; border-radius: 12px;
  background: #1a1410; border: 1px solid var(--border-hot);
  display: grid; place-items: center; overflow: hidden;
  color: var(--muted); font-size: 0.75rem; text-align: center;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.45rem;
  margin: 0.65rem 0;
}
.list.camp-list,
#campList.list,
#ownerList.list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.5rem 0 1.25rem;
}
.list .camp-card,
.camp-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.05rem 1.15rem 1.1rem;
  background: #121214;
  cursor: pointer;
  margin: 0;
}
.list article.camp-card {
  border-top: 1px solid var(--border);
  padding: 1.05rem 1.15rem 1.1rem;
}
.camp-card:hover { border-color: var(--orange-dim); }
.camp-card .meta { margin: 0.35rem 0 0.15rem; }
.camp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.camp-actions button { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
.camp-actions .ghost {
  border-color: #3a3a40;
  color: var(--text);
  background: #1a1a1e;
}
.mfa-banner {
  border: 1px solid var(--border-hot);
  background: linear-gradient(120deg, #2a180e, #161618);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
}
.spark {
  display: flex; align-items: flex-end; gap: 3px; min-height: 92px;
  margin: 0.75rem 0 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
.spark-col {
  flex: 1;
  min-width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  height: 92px;
}
.spark-val {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.spark i, .spark-col i {
  width: 100%;
  background: linear-gradient(180deg, #ff8a3d, var(--orange));
  border-radius: 3px 3px 1px 1px; min-height: 2px;
  opacity: 0.9;
  display: block;
}
.modal .fiche {
  display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start;
  margin-bottom: 0.85rem;
}
.modal .fiche .avatar { width: 96px; height: 96px; }
.modal .fiche .avatar svg { width: 56px; height: 56px; }
.modal .fiche .form-grid { grid-template-columns: 1fr; }
.product-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0.35rem 0 0.85rem;
  max-height: 4.8em;
  overflow: hidden;
}
.product-meta-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.sec-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}
.sec-meta-grid article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: #121214;
  margin: 0;
}
.sec-meta-grid strong { display: block; margin-bottom: 0.35rem; color: var(--orange); font-size: 0.82rem; }
.sec-meta-grid .chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sec-meta-grid .chip {
  font-family: var(--mono); font-size: 0.72rem;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.2rem 0.4rem; color: var(--text);
}

.fin-table-wrap {
  overflow-x: auto;
  margin: 0.5rem auto 1.25rem;
  display: flex;
  justify-content: center;
}
.fin-table {
  width: auto;
  min-width: min(100%, 640px);
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-family: var(--mono);
  text-align: center;
}
.fin-table th, .fin-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  text-align: center;
  white-space: nowrap;
}
.fin-table th { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.fin-table td.num, .fin-table th.num { text-align: center; }
.fin-table tfoot td { border-top: 1px solid var(--orange-dim); color: var(--text); }
.fin-row--open td {
  background: rgba(220, 60, 60, 0.12);
}
.fin-row--settled td {
  background: rgba(40, 160, 90, 0.16);
}
.fin-row__act {
  text-align: center;
  min-width: 7.5rem;
}
.settle-btn {
  font-size: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--orange-dim);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.settle-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.settle-badge {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.settle-badge--done {
  color: #6ddea0;
}
.settle-dot {
  color: #6ddea0;
  font-size: 0.75rem;
  margin-left: 0.15rem;
}
.settle-list {
  list-style: none;
  margin: 0.85rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text);
}
.settle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #141416;
}
.order-history {
  margin: 0.85rem 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #121214;
  padding: 0.35rem 0.85rem 0.55rem;
}
.order-history > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  padding: 0.55rem 0.15rem;
  user-select: none;
}
.order-history > summary::-webkit-details-marker { display: none; }
.order-history > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--orange);
  transition: transform 0.15s ease;
}
.order-history[open] > summary::before { transform: rotate(90deg); }
.order-history[open] { padding-bottom: 0.85rem; }
.spark--compact {
  min-height: 64px;
  margin: 0.35rem 0 0.55rem;
}
.spark--compact .spark-col { height: 64px; min-width: 14px; }
.spark--compact .spark-val { font-size: 0.62rem; }
.order-list {
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-right: 0.25rem;
}
.order-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.38rem 0.15rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
}
.order-row:last-child { border-bottom: 0; }
.order-row .oid { color: var(--orange); }
.order-row .odate { color: var(--muted); }
#hr .row { margin-top: 0.35rem; }
#hr h2 { margin-top: 1.35rem; }
#hr #peerSyncBtnHr { margin: 0.35rem 0 0.85rem; }
.fin-chart-wrap { position: relative; }
.chart-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: #1c1c1f;
  border: 1px solid var(--orange-dim);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  white-space: nowrap;
}
.fin-dot { cursor: crosshair; }
.row .chk { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 640px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  main { padding-inline: 1rem; }
  .modal .fiche { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
}
