:root {
  --bg: #07121f;
  --panel: #0d1b2c;
  --panel2: #12243a;
  --border: #253b55;
  --text: #edf7ff;
  --muted: #8fa8bf;
  --accent: #20b8cf;
  --accent2: #2dd4bf;
  --green: #22c55e;
  --yellow: #facc15;
  --orange: #fb923c;
  --red: #ef4444;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(32,184,207,.17), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,18,31,.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent2), #147ca8);
  font-size: 28px; font-weight: 900; box-shadow: 0 10px 30px rgba(32,184,207,.25);
}
.brand h1 { font-size: 22px; letter-spacing: .13em; margin: 0; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.server-state { color: #86efac; font-size: 13px; margin-right: 5px; }
.app-shell { display: grid; grid-template-columns: 370px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar {
  border-right: 1px solid var(--border);
  background: rgba(13,27,44,.88);
  padding: 16px 14px 30px;
  overflow-y: auto;
  max-height: calc(100vh - 76px);
  position: sticky;
  top: 76px;
}
.sidebar-head { padding: 0 6px 10px; }
.sidebar-head h2 { margin: 0; font-size: 19px; }
.sidebar-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
details {
  border: 1px solid var(--border); border-radius: 13px; margin: 8px 0;
  overflow: visible; background: rgba(18,36,58,.55);
}
summary {
  list-style: none; cursor: pointer; padding: 12px 13px;
  font-size: 14px; font-weight: 760; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; float: right; color: var(--accent); }
details[open] summary::after { content: "−"; }
details[open] { padding-bottom: 10px; }
.field { padding: 5px 11px; min-width: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
input, select {
  width: 100%; border: 1px solid #314966; border-radius: 9px;
  background: #091728; color: var(--text); padding: 9px 10px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(32,184,207,.12); }
.info {
  position: relative; display: inline-grid; place-items: center;
  color: var(--accent); cursor: help; font-size: 12px; margin-left: 3px;
}
.info::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 9px);
  transform: translateX(-50%); width: 265px; padding: 9px 10px;
  color: #142033; background: #fff9df; border: 1px solid #c8b87b;
  border-radius: 8px; font-size: 11px; line-height: 1.35; font-weight: 500;
  opacity: 0; visibility: hidden; transition: .14s; pointer-events: none;
  z-index: 100; box-shadow: var(--shadow);
}
.info:hover::after { opacity: 1; visibility: visible; }
.toggle-row {
  margin: 8px 11px; display: flex; align-items: center; gap: 8px;
  color: var(--text); cursor: pointer;
}
.toggle-row input { display: none; }
.toggle { width: 35px; height: 20px; border-radius: 99px; background: #33455d; position: relative; }
.toggle::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: .2s; }
.toggle-row input:checked + .toggle { background: var(--accent); }
.toggle-row input:checked + .toggle::after { transform: translateX(15px); }
.hidden { display: none !important; }
.sidebar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 1px; }
.sidebar-actions .primary { grid-column: 1 / -1; }
.button, .icon-button {
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
  color: var(--text); background: var(--panel2); text-decoration: none; text-align: center;
}
.button:hover, .icon-button:hover { filter: brightness(1.15); }
.button.primary { background: linear-gradient(135deg, #129cb8, #11709c); border-color: #2cc5d8; font-weight: 800; }
.button.secondary { font-size: 12px; }
.file-button input { display: none; }
.workspace { min-width: 0; padding: 17px; overflow: hidden; }
.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 12px; }
.metrics article {
  border: 1px solid var(--border); border-radius: 13px; padding: 11px 12px;
  background: linear-gradient(145deg, rgba(18,36,58,.92), rgba(10,24,40,.9));
}
.metrics span { display: block; color: var(--muted); font-size: 11px; }
.metrics strong { display: block; margin-top: 5px; font-size: 17px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 12px; }
.card {
  border: 1px solid var(--border); border-radius: 16px;
  background: linear-gradient(155deg, rgba(18,36,58,.93), rgba(8,22,37,.94));
  box-shadow: var(--shadow); overflow: hidden;
}
.card-title, .chart-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px 8px;
}
.card-title h2, .chart-title h3 { margin: 0; font-size: 16px; }
.card-title p, .chart-title span { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
#wetwellSvg { display: block; width: 100%; height: 430px; }
.tank-shell { fill: #16283c; stroke: #7890a7; stroke-width: 4; }
.water { fill: url(#waterGradient); transition: y .15s linear, height .15s linear; opacity: .9; }
.water-wave { fill: none; stroke: #67e8f9; stroke-width: 4; transition: d .15s linear; }
.pipe { fill: none; stroke-width: 13; stroke-linecap: round; color: #475569; stroke: currentColor; }
.pipe.active { color: #5ee7f2; stroke-dasharray: 22 12; animation: flow 1s linear infinite; }
.outlet.active { color: #60a5fa; }
@keyframes flow { to { stroke-dashoffset: -68; } }
.svg-label { fill: var(--muted); font-size: 13px; }
.level-text { fill: white; font-size: 26px; font-weight: 850; text-shadow: 0 2px 8px #002; }
.threshold-line { stroke-width: 2; stroke-dasharray: 8 6; }
.threshold-label { font-size: 11px; font-weight: 700; }
.pump-body { stroke: rgba(255,255,255,.3); stroke-width: 2; }
.pump-label { fill: white; font-size: 13px; font-weight: 900; }
.pump-state { font-size: 10px; font-weight: 750; }
.playback {
  display: grid; grid-template-columns: auto auto 72px minmax(100px,1fr) 92px;
  gap: 8px; align-items: center; padding: 10px 14px 14px;
}
.playback input { padding: 0; }
.playback strong { font-size: 12px; text-align: right; }
.icon-button { padding: 8px 10px; font-size: 12px; }
.badge { border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 850; }
.badge.good { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid #18783d; }
.badge.warning { background: rgba(251,146,60,.15); color: #fdba74; border: 1px solid #9a4e18; }
.badge.critical { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid #9e2d2d; }
.overall { margin: 6px 14px 14px; padding: 14px; border-radius: 12px; display: grid; gap: 5px; }
.overall strong { font-size: 15px; }
.overall span { font-size: 12px; line-height: 1.45; }
.overall.neutral { background: #16283c; border: 1px solid var(--border); }
.overall.good { background: rgba(34,197,94,.13); border: 1px solid #217d46; }
.overall.warning { background: rgba(251,146,60,.13); border: 1px solid #92501e; }
.overall.critical { background: rgba(239,68,68,.14); border: 1px solid #9e2d2d; }
.mini-indicators { display: grid; grid-template-columns: 1fr 1fr; padding: 0 14px 14px; gap: 8px; }
.mini-indicators div { padding: 10px; background: rgba(8,22,37,.75); border: 1px solid var(--border); border-radius: 10px; }
.mini-indicators span { display: block; color: var(--muted); font-size: 10px; }
.mini-indicators b { display: block; margin-top: 4px; font-size: 13px; }
.tabs { display: flex; gap: 7px; margin: 14px 0 10px; overflow-x: auto; }
.tab { white-space: nowrap; border: 1px solid var(--border); background: var(--panel); color: var(--muted); border-radius: 10px; padding: 9px 13px; }
.tab.active { background: #123a51; border-color: var(--accent); color: white; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart { width: 100%; height: 340px; display: block; }
.chart.large { height: 470px; }
.chart-grid-line { stroke: #294158; stroke-width: 1; opacity: .7; }
.chart-axis { stroke: #688199; stroke-width: 1.4; }
.chart-text { fill: #8fa8bf; font-size: 11px; }
.chart-path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-fill { opacity: .12; }
.chart-cursor { stroke: white; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .8; }
.chart-legend { font-size: 11px; fill: #d8e8f5; }
.analysis-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.analysis-card { border: 1px solid var(--border); border-left-width: 5px; border-radius: 13px; padding: 14px; background: var(--panel); }
.analysis-card h3 { margin: 0 0 4px; font-size: 14px; }
.analysis-card .category { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.analysis-card p { font-size: 12px; line-height: 1.5; margin: 8px 0; }
.analysis-card .recommendation { padding-top: 8px; border-top: 1px solid var(--border); }
.analysis-card.critical { border-left-color: var(--red); }
.analysis-card.warning { border-left-color: var(--orange); }
.analysis-card.good { border-left-color: var(--green); }
.analysis-card.info { border-left-color: var(--accent); }
.sizing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.sizing-item { border: 1px solid var(--border); background: var(--panel); border-radius: 12px; padding: 13px; }
.sizing-item span { display: block; color: var(--muted); font-size: 11px; }
.sizing-item strong { display: block; margin-top: 5px; font-size: 17px; }
.note-card { margin-top: 11px; padding: 15px; }
.note-card h3 { margin: 0 0 5px; }
.note-card p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
.error-box { border: 1px solid #9e2d2d; background: rgba(239,68,68,.15); color: #fecaca; border-radius: 11px; padding: 11px; margin-bottom: 10px; }
.loading { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; background: rgba(3,10,18,.77); backdrop-filter: blur(4px); z-index: 100; }
.spinner { width: 46px; height: 46px; border: 4px solid #26465d; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1250px) {
  .metrics { grid-template-columns: repeat(3,1fr); }
  .main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar { height: auto; position: static; align-items: flex-start; flex-direction: column; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .chart-grid { grid-template-columns: 1fr; }
  .analysis-list { grid-template-columns: 1fr; }
  .sizing-grid { grid-template-columns: repeat(2,1fr); }
  .brand p { display: none; }
}
@media (max-width: 580px) {
  .workspace { padding: 9px; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .playback { grid-template-columns: 1fr 1fr 65px; }
  .playback input { grid-column: 1 / -1; }
  .playback strong { grid-column: 1 / -1; text-align: left; }
  .top-actions { flex-wrap: wrap; }
  .server-state { width: 100%; }
}


.action-panel { margin-bottom: 12px; }
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}
.action-card {
  border: 1px solid var(--border);
  border-top-width: 4px;
  border-radius: 12px;
  padding: 13px;
  background: rgba(8,22,37,.78);
}
.action-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.action-card strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}
.action-target {
  margin: 9px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}
.action-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.48;
  margin: 0;
}
.action-card.critical { border-top-color: var(--red); }
.action-card.warning { border-top-color: var(--orange); }
.action-card.good { border-top-color: var(--green); }
.action-card.info { border-top-color: var(--accent); }

.method-card {
  margin-top: 12px;
  padding-bottom: 0;
}
.method-card summary {
  padding: 14px 16px;
  font-size: 14px;
}
.method-content {
  padding: 0 16px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.method-content p { margin: 7px 0; }
.method-content code {
  color: #a5f3fc;
  background: #07121f;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

@media (max-width: 1250px) {
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .action-grid { grid-template-columns: 1fr; }
}

/* PR Sizing v6 — calcul manuel et bibliothèque de courbes */
button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: none;
}
.button.danger {
  border-color: #8f3030;
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
}
.button.primary.dirty {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .16), 0 12px 30px rgba(0,0,0,.22);
  border-color: var(--yellow);
}
.readonly-input {
  background: #152438;
  color: #b9c9d8;
  border-style: dashed;
}
.pump-curve-status {
  margin: 2px 11px 9px;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  background: rgba(8,22,37,.72);
}
.pump-curve-status.manufacturer {
  border-color: #217d46;
  color: #bbf7d0;
  background: rgba(34,197,94,.10);
}
.pump-curve-status.legacy {
  border-color: #92501e;
  color: #fed7aa;
  background: rgba(251,146,60,.10);
}
.pump-curve-status.manual {
  border-color: #31536d;
  color: #bae6fd;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #314966;
  border-radius: 9px;
  background: #091728;
  color: var(--text);
  padding: 9px 10px;
  outline: none;
  font: inherit;
}
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32,184,207,.12);
}
.library-layout {
  display: grid;
  grid-template-columns: minmax(270px, .55fr) minmax(0, 1.45fr);
  gap: 12px;
  align-items: start;
}
.library-list-card {
  position: sticky;
  top: 92px;
}
.library-list-body {
  padding: 4px 14px 15px;
}
#libraryPumpList {
  min-height: 390px;
  padding: 6px;
}
#libraryPumpList option {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(37,59,85,.55);
}
.library-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.library-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 12px 2px 0;
}
.library-help code,
.method-content code {
  overflow-wrap: anywhere;
}
.library-editor-card {
  padding-bottom: 15px;
}
.admin-key-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8,22,37,.62);
}
.admin-key-row label {
  grid-column: 1 / -1;
  margin: 0;
}
.library-properties {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 4px;
}
.library-properties .full {
  grid-column: 1 / -1;
}
.curve-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  padding: 13px 15px 9px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.curve-editor-head h3 {
  margin: 0;
  font-size: 15px;
}
.curve-editor-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.curve-tools {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.curve-table-wrap {
  margin: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: auto;
  max-height: 370px;
}
.curve-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.curve-table th,
.curve-table td {
  padding: 7px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 11px;
}
.curve-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #102238;
  color: var(--muted);
}
.curve-table input {
  min-width: 110px;
  padding: 7px 8px;
}
.curve-remove {
  width: 31px;
  height: 31px;
  border: 1px solid #8f3030;
  border-radius: 8px;
  background: rgba(239,68,68,.10);
  color: #fecaca;
  font-size: 20px;
  line-height: 1;
}
.curve-preview {
  margin: 12px 14px 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(8,22,37,.52);
}
.curve-preview .chart {
  height: 315px;
}
.library-save-row {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 14px 0;
}

@media (max-width: 1200px) {
  .library-layout { grid-template-columns: 1fr; }
  .library-list-card { position: static; }
  #libraryPumpList { min-height: 220px; }
  .library-properties { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .library-properties { grid-template-columns: 1fr; }
  .library-properties .full { grid-column: auto; }
  .admin-key-row { grid-template-columns: 1fr; }
  .curve-editor-head { align-items: stretch; flex-direction: column; }
  .curve-tools { justify-content: stretch; }
  .curve-tools .button { flex: 1 1 130px; }
  .library-save-row { flex-direction: column; }
}
.stale-banner {
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid #8a7420;
  border-radius: 10px;
  color: #fde68a;
  background: rgba(250,204,21,.10);
  font-size: 12px;
  font-weight: 700;
}
.brand-mark { font-size: 16px; letter-spacing: -.04em; }


/* PR Sizing 6.1 — identité Fontaine Bruno */
.brand-owner {
  display: block;
  margin-top: 2px;
  color: #67e8f9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: rgba(7,18,31,.94);
  color: var(--muted);
  font-size: 11px;
}

.app-footer span:last-child {
  color: #67e8f9;
  font-weight: 700;
}

@media (max-width: 580px) {
  .brand-owner {
    font-size: 9px;
  }

  .app-footer {
    flex-direction: column;
    gap: 3px;
  }
}

/* PR Sizing 6.3 — inventaire Aquawatch */
.aquawatch-inventory-card {
  margin-top: 14px;
}

.aquawatch-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(190px, .7fr) auto auto auto;
  gap: 8px;
  padding: 0 14px 12px;
  align-items: center;
}

.aquawatch-toolbar input,
.aquawatch-toolbar select {
  min-width: 0;
}

.aquawatch-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
}

.aquawatch-stats article {
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8,22,37,.72);
}

.aquawatch-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.aquawatch-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.aquawatch-table-wrap {
  overflow: auto;
  max-height: 620px;
  margin: 0 14px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.aquawatch-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  font-size: 11px;
}

.aquawatch-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px;
  text-align: left;
  background: #10243a;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.aquawatch-table td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid rgba(37,59,85,.7);
}

.aquawatch-table tr:hover td {
  background: rgba(32,184,207,.055);
}

.aquawatch-table td strong,
.aquawatch-table td small {
  display: block;
}

.aquawatch-table td small {
  margin-top: 3px;
  color: var(--muted);
}

.stations-cell,
.references-cell {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-status {
  display: inline-block;
  max-width: 190px;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid var(--border);
}

.inventory-status.good {
  color: #86efac;
  border-color: #247642;
  background: rgba(34,197,94,.13);
}

.inventory-status.info {
  color: #a5f3fc;
  border-color: #167a90;
  background: rgba(32,184,207,.13);
}

.inventory-status.warning {
  color: #fdba74;
  border-color: #9a4e18;
  background: rgba(251,146,60,.13);
}

.inventory-status.critical {
  color: #fca5a5;
  border-color: #9e2d2d;
  background: rgba(239,68,68,.13);
}

.inventory-status.neutral {
  color: #cbd5e1;
  background: rgba(100,116,139,.15);
}

.empty-table {
  padding: 26px !important;
  color: var(--muted);
  text-align: center;
}

.aquawatch-help {
  margin: 0 14px 14px;
}

@media (max-width: 1400px) {
  .aquawatch-toolbar {
    grid-template-columns: 1fr 1fr auto;
  }
  .aquawatch-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .aquawatch-toolbar {
    grid-template-columns: 1fr;
  }
  .aquawatch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v6.4 — état de synchronisation automatique */
.inventory-title-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
@media (max-width: 650px) {
  .inventory-title-badges { justify-content: flex-start; }
}
