/* Craft : les retouches d'après les maquettes du 8 oct. 2026, après tools.css (qui garde le socle commun des outils).
   Une feuille par page : les sessions qui refont chaque page ne se marchent pas dessus.
   La page (craft-view.js, classes ck-) : la recherche et « Établi requis », « Mon atelier » sur une ligne, trois
   colonnes (catégories → objets en cartes → fiche), ma liste, et son résumé en barre au bas de l'écran. Ce qui est
   choisi (catégorie, filtre, carte) : fond brun éclairci et liseré miel ; un seul cadre par carte. */

.ck {
  --ck-line: rgba(var(--gold-rgb), 0.16);
  --ck-soft: rgba(var(--sheen-rgb), 0.05);
  display: grid;
  gap: 14px;
}
.ck-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
}
.tools-panel .ck-ic img,
.tools-panel .ck-ic .is-empty {
  width: 100%;
  height: 100%;
}
.ck-ic.is-sm {
  width: 30px;
  height: 30px;
}
.ck-ic.is-xl {
  width: 84px;
  height: 84px;
}
/* En haut : la recherche, puis « Établi requis » et ses niveaux (un seul cadre, le choisi en brun éclairci et miel) */
.ck-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.ck-search {
  flex: 1 1 340px;
}
.ck-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font: 500 0.92rem Roboto, sans-serif;
}
.ck-seg {
  display: inline-flex;
  border: 1px solid var(--ck-line);
  background: rgba(var(--shadow-rgb), 0.22);
}
.ck-seg button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  box-shadow: inset 0 -2px 0 transparent;
  background: none;
  color: var(--text);
  font: 600 0.92rem "Roboto Condensed", sans-serif;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.ck-seg button + button {
  border-left: 1px solid var(--ck-soft);
}
.ck-seg button:hover {
  background: rgba(var(--sheen-rgb), 0.04);
  color: var(--cream);
}
.ck-seg button.is-on {
  box-shadow: inset 0 -2px 0 var(--gold);
  background: var(--picked-bg);
  color: var(--cream);
}

/* Mon atelier : une ligne de réglages ; l'explication derrière « Comment le temps est calculé ? » */
.ck-setup {
  border: 1px solid var(--ck-line);
  background: rgba(var(--shadow-rgb), 0.2);
}
.ck-setup__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 8px 14px;
}
.ck-setup__title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-right: auto;
}
.ck-setup__title i {
  color: var(--gold);
}
.ck-setup__title b {
  color: var(--cream);
  font: 700 1.02rem "Roboto Condensed", sans-serif;
}
.ck-setup__title small {
  color: var(--text-soft);
  font-size: 0.86rem;
}
.ck-setup__pick {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.ck-setup__pick .rd-catpick {
  min-width: 180px;
}
.ck-setup__pick .rd-catpick select {
  min-height: 38px;
  padding-left: 12px;
  font-size: 0.92rem;
}
.ck-how {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--gold);
  font: 500 0.9rem Roboto, sans-serif;
  cursor: pointer;
}
.ck-how span {
  text-decoration: underline dotted rgba(var(--gold-rgb), 0.6);
  text-underline-offset: 4px;
}
.ck-how:hover span,
.ck-how[aria-expanded="true"] span {
  color: var(--cream);
  text-decoration-color: var(--cream);
}
.ck-how__panel {
  padding: 4px 16px 12px;
  border-top: 1px solid var(--ck-soft);
}
.ck-how__panel ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ck-how__panel b {
  color: var(--cream);
}

/* Trois colonnes : catégories → objets → fiche */
.ck-cols {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 380px;
  align-items: start;
  gap: 18px;
}

/* Les catégories : l'icône, le nom, le nombre ; la choisie en brun éclairci et liseré miel */
.ck-cats {
  position: sticky;
  top: calc(var(--head) + var(--banner, 0px) + 12px);
  display: grid;
  border: 1px solid var(--ck-line);
  background: linear-gradient(180deg, #1c1813, #141110);
}
.ck-cats button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  color: var(--text);
  font: 500 0.95rem Roboto, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.ck-cats button + button {
  border-top: 1px solid rgba(var(--sheen-rgb), 0.04);
}
.ck-cats button i {
  color: var(--text-soft);
  text-align: center;
}
.ck-cats button small {
  color: var(--text-soft);
  font-size: 0.8rem;
}
.ck-cats button.is-none {
  color: var(--text-soft);
}
.ck-cats button:hover {
  background: rgba(var(--sheen-rgb), 0.035);
  color: var(--cream);
}
.ck-cats button.is-on {
  border-left-color: var(--gold);
  background: var(--picked-bg);
  color: var(--cream);
  font-weight: 700;
}
.ck-cats button.is-on i,
.ck-cats button.is-on small {
  color: var(--gold);
}

/* Les objets : un titre, puis une carte par objet (un seul cadre, discret ; marqué sur la sélection) */
.ck-items__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 10px;
  color: var(--cream);
  font: 700 1.2rem "Roboto Condensed", sans-serif;
}
.ck-items__title small {
  color: var(--text-soft);
  font: 500 0.9rem Roboto, sans-serif;
}
.ck-hidden {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font: italic 400 0.84rem Roboto, sans-serif;
}
.ck-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 8px;
}
.ck-tile {
  position: relative;
  display: grid;
  grid-template-rows: 76px auto;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 146px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(var(--sheen-rgb), 0.05);
  background: rgba(var(--sheen-rgb), 0.025);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.tools-panel .ck-tile img,
.tools-panel .ck-tile .is-empty {
  width: 72px;
  height: 72px;
  align-self: center;
}
.ck-tile b {
  display: -webkit-box;
  overflow: hidden;
  font: 600 0.92rem/1.2 "Roboto Condensed", sans-serif;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ck-tile__bench {
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--text-soft);
  font: 700 0.8rem "Roboto Condensed", sans-serif;
}
.ck-tile:hover {
  border-color: rgba(var(--gold-rgb), 0.28);
  background: rgba(var(--sheen-rgb), 0.05);
  color: var(--cream);
}
.ck-tile.is-on {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  background: var(--picked-bg);
  color: var(--cream);
}
.ck-tile.is-on .ck-tile__bench {
  color: var(--gold);
}
.ck-tile.is-out {
  opacity: 0.55;
}

/* La fiche de l'objet : collée à droite pendant qu'on défile ; plus haute que l'écran, elle défile en elle-même (la
   carte choisie et sa fiche restent visibles ensemble) */
.ck-sheet {
  position: sticky;
  top: calc(var(--head) + var(--banner, 0px) + 12px);
  max-height: calc(100vh - var(--head) - var(--banner, 0px) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--gold-rgb), 0.35) transparent;
  padding: 18px;
  border: 1px solid var(--ck-line);
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(36, 30, 23, 0.96), rgba(20, 17, 13, 0.97));
}
.ck-sheet__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ck-sheet__head h3 {
  margin: 0 0 6px;
  color: var(--cream);
  font: 700 1.4rem/1.15 "Roboto Condensed", sans-serif;
}
.ck-sheet__head p {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 0.92rem;
}
.ck-sheet__head p i {
  width: 16px;
  color: var(--gold);
  text-align: center;
}
.ck-sheet__head p b {
  color: var(--cream);
}
.ck-label {
  color: var(--text-soft);
  font: 700 0.82rem "Roboto Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ck-qty {
  display: grid;
  grid-template-columns: auto;
  justify-content: start;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ck-soft);
}
.ck-qty .ck-label {
  grid-column: 1 / -1;
}
.ck-qty .rd-stepper {
  width: max-content;
  grid-template-columns: 38px 58px 38px;
}
.ck-qty .rd-stepper button {
  min-height: 38px;
}
.ck-qty .rd-stepper input {
  width: 100%;
  border: 0;
  border-left: 1px solid var(--edge);
  border-right: 1px solid var(--edge);
  background: transparent;
  color: var(--cream);
  font: 800 1.05rem "Roboto Condensed", sans-serif;
  text-align: center;
  appearance: textfield;
}
.ck-qty .rd-stepper input::-webkit-inner-spin-button,
.ck-qty .rd-stepper input::-webkit-outer-spin-button {
  appearance: none;
}
.ck-made {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}
.ck-made i {
  margin: 0 3px;
  color: var(--gold);
  font-size: 0.8em;
}
.ck-surplus {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  border-left: 2px solid var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
  color: var(--cream);
  font-size: 0.88rem;
}
.ck-surplus i {
  color: var(--gold);
}

/* Les durées : le temps de base, puis en grand celui avec ton atelier */
.ck-time {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--ck-line);
  background: rgba(var(--shadow-rgb), 0.26);
}
.ck-time p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
}
.ck-time__base {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ck-soft);
  color: var(--text-soft);
  font-size: 0.92rem;
}
.ck-time__base b {
  color: var(--text);
  font: 700 1rem "Roboto Condensed", sans-serif;
}
.ck-time__mine {
  padding-top: 8px;
}
.ck-time__mine span {
  color: var(--cream);
  font: 700 1.05rem "Roboto Condensed", sans-serif;
}
.ck-time__mine b {
  color: var(--gold);
  font: 800 1.9rem/1 "Roboto Condensed", sans-serif;
}
.ck-time small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.8rem;
}
.ck-time.is-total {
  margin-top: 16px;
}
.ck-time.is-total .ck-time__mine {
  padding-top: 0;
}
.ck-warn {
  margin-top: 12px;
}

/* Les ressources : en lignes, l'icône, le nom, la quantité */
.ck-res {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ck-res li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
}
.ck-res li + li {
  border-top: 1px solid rgba(var(--sheen-rgb), 0.04);
}
.ck-res__name {
  color: var(--text);
  font-size: 0.94rem;
}
.ck-res b {
  color: var(--cream);
  font: 800 1.05rem "Roboto Condensed", sans-serif;
}

.ck-steps .ck-res {
  margin-top: 4px;
}
.ck-add {
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
}

/* Ma liste : l'en-tête (le résumé, Copier, Vider), les objets à gauche, le total à préparer à droite */
.ck-list {
  margin-top: 8px;
  border: 1px solid var(--ck-line);
  background: linear-gradient(180deg, rgba(30, 25, 19, 0.9), rgba(18, 15, 12, 0.94));
  scroll-margin-top: calc(var(--head) + var(--banner, 0px) + 16px);
}
.ck-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ck-soft);
}
.ck-list__ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
  clip-path: var(--hex);
}
.ck-list__text {
  flex: 1 1 280px;
  min-width: 0;
}
.ck-list__text h3 {
  margin: 0;
  color: var(--cream);
  font: 700 1.25rem "Roboto Condensed", sans-serif;
}
.ck-nw {
  white-space: nowrap;
}
.ck-sum {
  color: var(--gold);
  font-weight: 600;
}
.ck-list__text p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.ck-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ck-list > .ck-empty {
  padding: 16px 18px;
}
.ck-list__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 2px 18px 18px;
}
.ck-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ck-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.ck-lines li + li {
  border-top: 1px solid rgba(var(--sheen-rgb), 0.04);
}
.ck-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 600 0.95rem Roboto, sans-serif;
  text-align: left;
  cursor: pointer;
}
.ck-line b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-line:hover b {
  color: var(--cream);
  text-decoration: underline dotted rgba(var(--gold-rgb), 0.6);
  text-underline-offset: 4px;
}

/* La barre du bas : le résumé de ma liste, toujours sous la main (accrochée à la page, hors du panneau) */
.ck-dock {
  display: block;
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 2px solid var(--gold);
  background: #15110d;
  box-shadow: 0 -10px 30px rgba(var(--shadow-rgb), 0.5);
}
.ck-dock[hidden] {
  display: none;
}
.ck-dock__in {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px clamp(16px, 3vw, 50px);
}
.ck-dock__ic {
  color: var(--gold);
}
.ck-dock__in > b {
  flex: none;
  color: var(--cream);
  font: 700 1.05rem "Roboto Condensed", sans-serif;
}
.ck-dock__sum {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-dock__go {
  flex: none;
}
/* La barre prend le bas de l'écran : la page laisse sa place, le bouton « haut de page » passe au-dessus. */
body:has(#tools-panel.has-dock) {
  padding-bottom: 60px;
}
body:has(#tools-panel.has-dock) .back-to-top {
  bottom: 74px;
}
body:has(#tools-panel.has-dock) .ck-sheet {
  max-height: calc(100vh - var(--head) - var(--banner, 0px) - 84px);
}

@media (prefers-reduced-motion: no-preference) {
  #ck-items.is-entering .ck-tile,
  #ck-sheet.is-entering .ck-res li {
    animation: rise-in 0.28s ease both;
    animation-delay: calc(var(--i, 0) * 18ms);
  }
}

/* Écran moyen : les catégories en ligne au-dessus, les objets et la fiche côte à côte */
@media (max-width: 1180px) {
  .ck-cols {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .ck-cats {
    position: static;
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .ck-cats button {
    flex: none;
    border-top: 0 !important;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .ck-cats button.is-on {
    border-bottom-color: var(--gold);
  }
}
/* Petit écran : une colonne ; la fiche sous les objets */
@media (max-width: 760px) {
  .ck-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .ck-sheet,
  body:has(#tools-panel.has-dock) .ck-sheet {
    position: static;
    max-height: none;
    overflow: visible;
    scroll-margin-top: calc(var(--head) + var(--banner, 0px) + 10px);
  }
  .ck-filter {
    flex-wrap: wrap;
  }
  .ck-seg {
    width: 100%;
  }
  .ck-seg button {
    flex: 1 1 auto;
    padding: 0 8px;
  }
  .ck-setup__line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 10px;
  }
  .ck-setup__title,
  .ck-how {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-self: start;
  }
  .ck-setup__pick {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
  }
  .ck-setup__pick .rd-catpick {
    min-width: 0;
  }
  .ck-setup__pick .rd-catpick select {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ck-tiles {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
  }
  .ck-tile {
    grid-template-rows: 60px auto;
    min-height: 124px;
    padding: 12px 6px 10px;
  }
  .tools-panel .ck-tile img,
  .tools-panel .ck-tile .is-empty {
    width: 58px;
    height: 58px;
  }
  .ck-sheet {
    padding: 14px;
  }
  .ck-ic.is-xl {
    width: 68px;
    height: 68px;
  }
  .ck-list__head,
  .ck-list__body {
    padding-left: 14px;
    padding-right: 14px;
  }
  .ck-list__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .ck-dock__in {
    gap: 10px;
    padding: 8px 14px;
  }
  .ck-dock__in > b,
  .ck-dock__ic {
    display: none;
  }
  .ck-dock__sum {
    font-size: 0.86rem;
    line-height: 1.3;
    white-space: normal;
  }
  /* L'abeille de la visite, en bas à gauche sur petit écran, passe au-dessus de la barre. */
  body:has(#tools-panel.has-dock) .tour-help {
    bottom: 72px;
  }
}



/* Les tableaux de comparaison (recycleur : selon le recycleur ; fours : selon le four) : un bloc à part, une ligne
   par choix (sa pastille, son nom, son détail), le choisi en brun éclairci et liseré miel, le meilleur de chaque
   colonne en vert */
.ck-compare {
  width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(var(--sheen-rgb), 0.06);
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(var(--sheen-rgb), 0.02);
  font-size: 0.92rem;
}
.ck-compare caption {
  padding: 0 0 8px;
  color: var(--gold);
  font: 700 0.8rem "Roboto Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}
.ck-compare th,
.ck-compare td {
  padding: 9px 10px;
  border-top: 1px solid rgba(var(--sheen-rgb), 0.05);
  text-align: right;
  vertical-align: middle;
}
.ck-compare thead th {
  padding-block: 8px;
  border-top: 0;
  background: rgba(var(--shadow-rgb), 0.18);
  color: var(--text-soft);
  font: 600 0.8rem Roboto, sans-serif;
}
.ck-compare th:first-child {
  text-align: left;
}
.ck-compare tbody th {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.ck-compare tbody th > span:last-child {
  display: grid;
  line-height: 1.2;
}
.ck-compare tbody th b {
  color: var(--cream);
  font: 700 0.95rem "Roboto Condensed", sans-serif;
}
.ck-compare tbody th small {
  color: var(--text-soft);
  font-size: 0.8rem;
}
.ck-compare td {
  color: var(--cream);
  font: 700 1rem "Roboto Condensed", sans-serif;
  white-space: nowrap;
}
.ck-compare td.is-best {
  color: var(--state-ok);
}
.ck-compare tr.is-on > * {
  background: var(--picked-bg);
}
.ck-compare tr.is-on th {
  box-shadow: inset 3px 0 0 var(--gold);
}

/* Les colonnes à icône (ce que rend l'objet, ce qu'il faut) */
.tools-panel .ck-compare thead .ck-ic img,
.tools-panel .ck-compare thead .ck-ic .is-empty {
  width: 26px;
  height: 26px;
}
.ck-compare thead .ck-ic {
  display: inline-grid;
  justify-items: end;
}
/* Les chiffres serrés ; au recycleur, son nom et son détail chacun sur une ligne (ailleurs, ils passent à la ligne) */
.ck-compare td,
.ck-compare thead th:not(:first-child) {
  padding-inline: 6px;
}
.ry .ck-compare tbody th small,
.ry .ck-compare tbody th b {
  white-space: nowrap;
}

/* ═══ Fours et raffinerie : le dernier rayon (séparé des rayons du Marché), une matière par carte avec ce qu'elle
   donne, la fiche (j'ai / je veux, le four et leur nombre, le résultat, le combustible, la comparaison) ═══ */
.ck-cats button.is-smelt {
  margin-top: 6px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.25) !important;
}
.ck-tile__gives {
  color: var(--text-soft);
  font: 500 0.82rem Roboto, sans-serif;
}
.ck-tile__gives i {
  margin-right: 5px;
  color: var(--gold);
  font-size: 0.75em;
}
.ck-smelt__mode {
  grid-column: 1 / -1;
  justify-self: start;
}
.ck-smelt__ovens {
  display: grid;
  /* Le four sur toute la largeur (« Petite raffinerie de pétrole » était coupé), le nombre dessous */
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 12px 16px;
  margin-top: 16px;
}
.ck-smelt__ovens .ck-setup__pick {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.ck-smelt__ovens .ck-setup__pick > span:first-child {
  color: var(--text-soft);
  font: 700 0.8rem "Roboto Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ck-smelt__ovens .rd-catpick,
.ck-smelt__ovens select {
  width: 100%;
}
.ck-smelt__count {
  margin-top: 0;
}
.ck-fuel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--sheen-rgb), 0.06);
  background: rgba(var(--sheen-rgb), 0.025);
}
.ck-fuel > span:last-child {
  display: grid;
  gap: 2px;
}
.ck-fuel b {
  color: var(--cream);
  font: 700 1.02rem "Roboto Condensed", sans-serif;
}
.ck-fuel small {
  color: var(--text-soft);
  font-size: 0.85rem;
}
.ck-fuel .ck-ic > i {
  color: var(--gold);
  font-size: 1.3rem;
}
.ck-res__name small {
  color: var(--text-soft);
  font-size: 0.82rem;
}
.ck-smelt__how ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
/* « à fondre » à côté d'un métal, du soufre ou du carburant : ouvre les fours avec la quantité */
.ck-smelt-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: 600 0.8rem Roboto, sans-serif;
  text-decoration: underline dotted rgba(var(--gold-rgb), 0.6);
  text-underline-offset: 3px;
  cursor: pointer;
}
.ck-smelt-link:hover {
  color: var(--value-strong);
}
.ck-smelt-link i {
  font-size: 0.85em;
}

/* ═══ Thés et tartes : le filtre par effet, les effets de la fiche, les cases de la table dans l'ordre ═══ */
.ck-cats button.is-boost {
  border-top: 1px solid rgba(var(--sheen-rgb), 0.04);
}
.ck-boost-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.ck-boost-filter .rd-catpick {
  min-width: 240px;
}
.ck-effects {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ck-effects li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-left: 3px solid rgba(96, 137, 27, 0.8);
  background: rgba(96, 137, 27, 0.08);
  color: var(--text);
}
.ck-effects b {
  color: var(--state-ok);
  font: 800 1.05rem "Roboto Condensed", sans-serif;
}
.ck-effects small {
  flex: none;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.ck-effects__also {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.ck-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ck-slot;
}
.ck-slots li {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  background: rgba(var(--shadow-rgb), 0.25);
  counter-increment: ck-slot;
}
.ck-slots li::before {
  content: counter(ck-slot);
  position: absolute;
  top: 2px;
  left: 4px;
  color: var(--text-soft);
  font: 700 0.8rem "Roboto Condensed", sans-serif;
}
.ck-slots li b {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: var(--cream);
  font: 800 0.85rem "Roboto Condensed", sans-serif;
  text-shadow: 0 1px 2px #000;
}
.tools-panel .ck-slots .ck-ic img {
  width: 40px;
  height: 40px;
}
@media (max-width: 760px) {
  .ck-boost-filter .rd-catpick {
    min-width: 0;
    flex: 1;
  }
}
/* Jamais de défilement de côté dans la fiche (un tableau de fours ou de thés trop large le provoquait) */
.ck-sheet {
  overflow-x: hidden;
}
.ck-compare td {
  white-space: nowrap;
}
@media (max-width: 760px) {
  /* Sur un téléphone, le tableau tient dans la fiche : cellules serrées, en-têtes sur deux lignes si besoin */
  .ck-compare th,
  .ck-compare td {
    padding-inline: 5px;
  }
  .ck-compare td {
    font-size: 0.92rem;
  }
  .ck-compare thead th {
    white-space: normal;
  }
}

/* Ma liste : les établis qu'elle demande, le plus haut en tête (l'établi nécessaire), puis chaque niveau et ses objets */
.ck-benches {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--sheen-rgb), 0.06);
  background: rgba(var(--sheen-rgb), 0.025);
}
.ck-benches__need {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-soft);
}
.ck-benches__need i {
  color: var(--gold);
}
.ck-benches__need b {
  margin-left: auto;
  color: var(--cream);
  font: 700 1.05rem "Roboto Condensed", sans-serif;
}
.ck-benches__more {
  margin: -4px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}
.ck-benches ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ck-benches li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
}
.ck-benches li b {
  color: var(--text-soft);
  font-weight: 600;
}
.ck-benches small {
  color: var(--text-soft);
}
@media (max-width: 760px) {
  .ck-benches li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
