:root {
  --bg: #ffffff;
  --card: #f9f5f1;
  --text: #000000;
  --muted: #211f1f;
  --accent: #ffffff;
  --danger: #ff6b6b;
  --ok: #22c55e;
  --border: #8e8e7e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: var(--bg)
}
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 24px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}

h1 { margin-top: 0; font-weight: 700; letter-spacing: .2px; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
label { color: var(--muted); font-size: .9rem; }
input {
  width: 100%;
  color: var(--text);
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78,161,255,.15); }
button {
position: relative;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 16px;
    -webkit-box-pack: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 24px;
    border: 1px solid rgb(27, 26, 22);
    border-radius: 40px;
    color: rgb(255, 255, 255);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    background: rgb(27, 26, 22);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    font-size: 1.0625rem;
    line-height: 1.0625rem;
    letter-spacing: -0.01rem;
}
button:hover { filter: brightness(1.05); }

.status {
  min-height: 24px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: .95rem;
}

.grid {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.grid th, .grid td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
}
.grid th {
  background: #d3c7b1;
  text-align: left;
  white-space: nowrap;
}
.grid tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.badge-err { color: #fff; background: var(--danger); padding: 2px 6px; border-radius: 6px; font-size: .8rem; }
.ok { color: var(--ok); font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

#result-table td { vertical-align: top; }

.prices{
  display: flex;
  flex-direction: column;     /* un prix par ligne */
  gap: 2px;                   /* espace vertical entre lignes */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.prices .line{
  display: grid;
  grid-template-columns: 42px 1fr; /* colonne label (TA/DL/...) + colonne valeur */
  column-gap: 8px;                 /* espace AVANT le prix */
  align-items: baseline;
}

.prices .k{
  opacity: .75;
}

.prices .v{
  padding-left: 0px; /* optionnel, le column-gap fait déjà l'espace */
}