/* Tunnel (/creer, tunnel.php) : styles des pages refaites lors de la refonte du 16-18/11/2026, mise au point sur la
   page de test /creer-test — page Produit façon catalogue (maquette de Loïc du 16/11/2026 : bannière, catégories +
   filtre prix, tri, grille, panneau d'options), Thème, Style, Options et Photo.
   Le reste reprend le CSS du tunnel. Préfixe #tai2-card : le CSS du tunnel est en ligne dans la page
   (chargé après ce fichier). */

/* Téléphone : la page Produit est plus haute que l'écran, la carte du tunnel (et son fond) grandit avec
   elle et toute la page défile. */
@media (max-width: 860px) {
  .tai2:has(.tt-catalog),
  #tai2-card:has(.tt-catalog) { flex: 1 0 auto; }
}
#tai2-card .tai2-choice-list:has(.tt-catalog) { max-width: 1480px; margin: 0 auto; }

#tai2-card .tt-catalog { width: 100%; }

/* ── Bannière ── */
#tai2-card .tt-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 6px 22px; margin-bottom: 18px;
  border-bottom: 1px solid var(--tai2-border);
}
#tai2-card .tt-hero__title {
  font-family: var(--font-family-heading, inherit); font-weight: 800;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1.1; margin: 0; color: var(--tai2-text);
}
#tai2-card .tt-hero__title span { color: var(--tai2-accent); }
#tai2-card .tt-hero__sub { margin: 8px 0 18px; font-size: 1.08rem; color: var(--tai2-muted); }
#tai2-card .tt-hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
#tai2-card .tt-hero__points li { display: flex; align-items: center; gap: 10px; max-width: 200px; font-size: .88rem; line-height: 1.35; color: var(--tai2-text); }
#tai2-card .tt-hero__points i {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--tai2-border); color: var(--tai2-accent); font-size: 1rem;
}
/* Emplacement du visuel (mug, t-shirt, gourde, cadre) : en attente de l'image. */
#tai2-card .tt-hero__visual {
  flex: 0 0 min(42%, 520px); height: 150px; border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: radial-gradient(80% 120% at 70% 50%, rgba(53, 248, 251, .10), rgba(53, 248, 251, 0) 70%);
  display: grid; place-items: center; color: var(--tai2-muted); font-size: .85rem;
}

/* ── Trois colonnes : catégories | produits | options ── */
#tai2-card .tt-prod {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
  width: 100%;
}

/* Colonne Catégories / Filtres */
#tai2-card .tt-side {
  position: sticky; top: 12px;
  border: 1px solid var(--tai2-border); border-radius: 16px;
  background: rgba(255, 255, 255, .03); padding: 18px 14px;
}
#tai2-card .tt-side__title { font-size: 1.05rem; font-weight: 700; margin: 0 4px 12px; color: var(--tai2-text); }
#tai2-card .tt-side__title + .tt-side__filter { margin-top: 0; }
#tai2-card .tt-side__cats { list-style: none; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--tai2-border); display: flex; flex-direction: column; gap: 4px; }
#tai2-card .tt-side__cat {
  width: 100%; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: none;
  color: var(--tai2-text); font: inherit; font-size: .9rem; text-align: left; cursor: pointer;
}
#tai2-card .tt-side__cat i { color: var(--tai2-muted); font-size: .8rem; }
#tai2-card .tt-side__cat b { font-weight: 500; font-size: .76rem; color: var(--tai2-muted); }
#tai2-card .tt-side__cat:hover { background: rgba(255, 255, 255, .04); }
#tai2-card .tt-side__cat.is-on { border-color: var(--tai2-accent); background: rgba(53, 248, 251, .07); font-weight: 600; }
#tai2-card .tt-side__cat.is-on i, #tai2-card .tt-side__cat.is-on b { color: var(--tai2-accent); }
#tai2-card .tt-side__filter { margin-bottom: 18px; padding: 0 4px; }
#tai2-card .tt-side__flabel { display: flex; justify-content: space-between; font-size: .88rem; color: var(--tai2-text); margin-bottom: 10px; }
#tai2-card .tt-side__flabel span { color: var(--tai2-accent); }
/* Curseur de prix dessiné ici : le style des champs du tunnel en faisait une barre blanche sans poignée. */
#tai2-card #tt-price-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 8px 0; padding: 0;
  border: 0; border-radius: 4px; background: rgba(255, 255, 255, .14); cursor: pointer;
}
#tai2-card #tt-price-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tai2-accent); border: 3px solid var(--tai2-bg); box-shadow: 0 0 0 1px var(--tai2-accent);
}
#tai2-card #tt-price-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--tai2-accent); border: 3px solid var(--tai2-bg); box-shadow: 0 0 0 1px var(--tai2-accent);
}
#tai2-card #tt-price-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--tai2-accent); }
#tai2-card .tt-cat__reset {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 999px; border: 1px solid var(--tai2-border); background: rgba(255, 255, 255, .03);
  color: var(--tai2-text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
#tai2-card .tt-cat__reset:hover { border-color: var(--tai2-accent); }
#tai2-card .tt-cat__none { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: var(--tai2-muted); }
#tai2-card .tt-cat__none .tt-cat__reset { width: auto; padding: 10px 22px; margin-top: 8px; }
#tai2-card .tt-side__close, #tai2-card .tt-prod__filters-btn, #tai2-card .tt-sheet-backdrop { display: none; }

/* Barre au-dessus de la grille */
#tai2-card .tt-prod__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
#tai2-card .tt-prod__count { margin: 0 auto 0 0; font-size: 1.35rem; font-weight: 700; color: var(--tai2-text); }
#tai2-card .tt-prod__count span { color: var(--tai2-muted); font-weight: 500; }
#tai2-card .tt-prod__sort { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--tai2-muted); }
#tai2-card .tt-prod__sort select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--tai2-border); border-radius: 999px;
  color: var(--tai2-text); font: inherit; font-size: .86rem; padding: 8px 32px 8px 14px;
}
#tai2-card .tt-prod__sort select:focus { outline: none; border-color: var(--tai2-accent); }
#tai2-card .tt-prod__sort select option { background: #0c1418; color: var(--tai2-text); }
#tai2-card .tt-prod__sort i { position: absolute; right: 12px; pointer-events: none; font-size: .7rem; }

#tai2-card .tt-prod__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1380px) {
  #tai2-card .tt-prod { grid-template-columns: 210px minmax(0, 1fr) 290px; gap: 18px; }
  #tai2-card .tt-prod__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Carte : coche turquoise sur la carte choisie (remplace la flèche et l'ouverture sur place) */
#tai2-card .tt-prod-check {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--tai2-accent); color: #00262a; font-size: .7rem;
}
#tai2-card .tt-prod-card--sel {
  border-color: var(--tai2-accent);
  box-shadow: 0 0 0 2px var(--tai2-accent), 0 0 24px rgba(53, 248, 251, .25);
}
#tai2-card .tt-prod-card--sel .tt-prod-check { display: grid; }

/* Panneau de droite */
#tai2-card .tt-prod__panel {
  position: sticky;
  top: 12px;
  border: 1px solid var(--tai2-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  padding: 20px 18px;
  min-height: 260px;
}
#tai2-card .tt-prod__empty { text-align: center; color: var(--tai2-muted); padding: 50px 8px; }
#tai2-card .tt-prod__empty i { font-size: 1.6rem; margin-bottom: 10px; display: block; }
#tai2-card .tt-prod__empty p { margin: 0; font-size: .9rem; }
#tai2-card .tt-prod__title {
  font-family: var(--font-family-heading, inherit);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--tai2-text);
}
#tai2-card .tt-prod__opts { padding-top: 0; border-top: 0; display: flex; flex-direction: column; gap: 14px; }
#tai2-card .tt-prod__opts .tai2-opt-group { margin-bottom: 0; }
#tai2-card .tt-prod__opts .tai2-opt-group-label { font-weight: 500; margin-bottom: 8px; color: var(--tai2-muted); }
#tai2-card .tt-prod__opts .tai2-opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#tai2-card .tt-prod__opts .tai2-chip { padding: 10px 16px; font-size: .88rem; }
#tai2-card .tt-prod__single { color: var(--tai2-muted); font-size: .88rem; margin: 0 0 10px; }
#tai2-card .tt-prod__warn { color: #ffb36b; font-size: .88rem; }
#tai2-card .tt-prod__price {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tai2-border);
}
#tai2-card .tt-prod__price:empty { display: none; }
#tai2-card .tt-prod__price-val { font-size: 1.3rem; font-weight: 700; color: var(--tai2-text); }
#tai2-card .tt-prod__delivery { font-size: .82rem; color: var(--tai2-muted); }
#tai2-card .tt-prod__delivery i { color: var(--tai2-accent); margin-right: 4px; }
#tai2-card .tt-prod__specs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tai2-border); }
#tai2-card .tt-prod__label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; color: var(--tai2-text); }
#tai2-card .tt-prod__specs ul { list-style: none; margin: 0; padding: 0; }
#tai2-card .tt-prod__specs li {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: baseline;
  padding: 4px 0; font-size: .84rem; color: var(--tai2-muted);
}
#tai2-card .tt-prod__specs li i { color: var(--tai2-accent); font-size: .75rem; }
#tai2-card .tt-prod__specs li b { color: var(--tai2-text); font-weight: 600; text-align: right; }
#tai2-card .tt-prod__cta {
  margin-top: 18px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tai2-accent); color: #00262a; font: inherit; font-weight: 700; font-size: .98rem;
  box-shadow: 0 10px 26px -12px rgba(53, 248, 251, .9);
  transition: filter .15s, opacity .15s;
}
#tai2-card .tt-prod__cta:hover:not(:disabled) { filter: brightness(1.08); }
#tai2-card .tt-prod__cta:disabled { opacity: .4; cursor: not-allowed; }

/* ── Téléphone / tablette : pas de bannière, catégories et filtres dans un panneau par le bas ── */
@media (max-width: 860px) {
  #tai2-card .tt-hero { display: none; }
  #tai2-card .tt-prod { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #tai2-card .tt-prod__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #tai2-card .tt-prod__count { font-size: 1.1rem; width: 100%; }
  #tai2-card .tt-prod__filters-btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tai2-border);
    background: rgba(255, 255, 255, .04); color: var(--tai2-text); font: inherit; font-size: .86rem;
  }
  #tai2-card .tt-prod__sort { margin-left: auto; }
  #tai2-card .tt-prod__sort > span { display: none; }

  #tai2-card .tt-side {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1001;
    max-height: 80dvh; overflow-y: auto; border-radius: 18px 18px 0 0;
    background: var(--tai2-bg); padding: 22px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateY(105%); transition: transform .25s ease;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  }
  #tai2-card .tt-side.is-open { transform: none; }
  #tai2-card .tt-side__close {
    display: grid; place-items: center; position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .08); color: var(--tai2-text);
  }
  #tai2-card .tt-sheet-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .5); }

  /* Le panneau d'options passe AU-DESSUS de la grille une fois un produit choisi. */
  #tai2-card .tt-prod__panel { position: static; min-height: 0; order: -1; display: none; scroll-margin-top: 80px; }
  #tai2-card .tt-prod__panel--filled { display: block; }
  #tai2-card .tt-prod__title { font-size: 1.35rem; margin-bottom: 12px; }
  #tai2-card .tt-prod__main { order: 0; }
}

/* Panneau des filtres ouvert (téléphone) : bulle Lya masquée, elle passerait par-dessus. */
body.tt-sheet-on .lya-bubble { display: none !important; }

/* ── Page Paramètres ── */
#tai2-card .tt-params { width: 100%; max-width: 780px; margin: 0 auto; }
#tai2-card .tt-param { margin-bottom: 26px; }
#tai2-card .tt-param__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; color: var(--tai2-text);
}
#tai2-card .tt-param__title i { color: var(--tai2-accent); font-size: .9rem; }
#tai2-card .tt-param__note { color: var(--tai2-muted); font-size: .9rem; margin: 0; }
#tai2-card .tt-param__input { margin-top: 12px; }
#tai2-card .tt-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#tai2-card .tt-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tai2-card .tt-opt {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--tai2-border); border-radius: 14px;
  padding: 16px 14px; color: var(--tai2-text); font: inherit; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#tai2-card .tt-opt:hover { border-color: var(--tai2-accent); }
#tai2-card .tt-opt.is-selected { border-color: var(--tai2-accent); box-shadow: 0 0 0 1px var(--tai2-accent); background: rgba(53, 248, 251, .06); }
#tai2-card .tt-opt__ico { font-size: 1.15rem; color: var(--tai2-accent); width: 24px; text-align: center; flex: none; }
#tai2-card .tt-opt__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#tai2-card .tt-opt__txt b { font-weight: 600; font-size: .95rem; }
#tai2-card .tt-opt__txt span { font-size: .82rem; color: var(--tai2-muted); }
#tai2-card .tt-opt__check {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: none; place-items: center; background: var(--tai2-accent); color: #00262a; font-size: .62rem;
}
#tai2-card .tt-opt.is-selected .tt-opt__check { display: grid; }
@media (max-width: 600px) {
  #tai2-card .tt-opts, #tai2-card .tt-opts--3 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #tai2-card .tt-opt { padding: 12px; }
}

/* Thème clair du site */
html[data-theme="light"] #tai2-card .tt-prod__panel,
html[data-theme="light"] #tai2-card .tt-opt { background: #fff; }
html[data-theme="light"] #tai2-card .tt-opt.is-selected { background: rgba(3, 111, 123, .06); }
html[data-theme="light"] #tai2-card .tt-prod-check,
html[data-theme="light"] #tai2-card .tt-opt__check { color: #fff; }
html[data-theme="light"] #tai2-card .tt-prod__warn { color: #b35a00; }
html[data-theme="light"] #tai2-card .tt-side,
html[data-theme="light"] #tai2-card .tt-hero__points i { background: #fff; }
html[data-theme="light"] #tai2-card .tt-hero__visual { border-color: rgba(0, 0, 0, .18); }
html[data-theme="light"] #tai2-card .tt-prod__cta { color: #fff; }
html[data-theme="light"] #tai2-card .tt-prod__sort select option { background: #fff; }
html[data-theme="light"] #tai2-card #tt-price-range { background: rgba(0, 0, 0, .12); }

/* Ordinateur : la page tient dans l'écran (bannière, catégories et panneau fixes), SEULE la grille
   des produits défile. .tai2-left a déjà la hauteur de l'écran, son padding-bottom réserve le pied fixe. */
@media (min-width: 861px) {
  #tai2-card .tai2-left:has(.tt-catalog) .tai2-bubble { display: none; }
  #tai2-card .tai2-choice-list:has(.tt-catalog) {
    flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column;
  }
  #tai2-card .tt-catalog { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  #tai2-card .tt-hero { flex: none; }
  #tai2-card .tt-prod { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  #tai2-card .tt-side,
  #tai2-card .tt-prod__panel { position: static; align-self: start; max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
  #tai2-card .tt-prod__main { min-height: 0; display: flex; flex-direction: column; }
  #tai2-card .tt-prod__bar { flex: none; }
  #tai2-card .tt-prod__grid > .tai2-prod-card { min-height: max-content; }
  #tai2-card .tt-step__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
  #tai2-card .tt-prod__grid {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start;
    grid-auto-rows: max-content; /* sinon la hauteur fixe est partagée entre les rangées et écrase les cartes */
    padding: 4px 6px 12px 4px; margin: -4px -6px 0 -4px; /* place pour le contour de la carte choisie */
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
  }
}

/* Ordinateur à écran peu haut (portable, retour de Dodo du 30/11/2026) : la grille n'avait plus la place que d'une
   rangée sous la bannière, dans sa propre zone de défilement. Ici, comme sur téléphone, c'est TOUTE la page qui
   défile (bannière comprise) ; catégories et panneau d'options restent collés en haut pendant le défilement. */
@media (min-width: 861px) and (max-height: 900px) {
  .tai2:has(.tt-catalog),
  #tai2-card:has(.tt-catalog) { flex: 1 0 auto; }
  #tai2-card .tai2-choice-list:has(.tt-catalog) { flex: none; overflow: visible; display: block; }
  #tai2-card .tt-catalog { flex: none; display: block; }
  #tai2-card .tt-prod { flex: none; grid-template-rows: auto; align-items: start; }
  #tai2-card .tt-side,
  #tai2-card .tt-prod__panel {
    position: sticky; top: 12px; align-self: start;
    max-height: calc(var(--tai-vh, 100dvh) - var(--tai-header-h, var(--header-height, 88px)) - 130px);
  }
  #tai2-card .tt-prod__main { display: block; }
  #tai2-card .tt-prod__grid { flex: none; overflow: visible; margin-top: 0; }
  #tai2-card .tt-step__scroll { flex: none; overflow: visible; }
}

/* ══ Étapes 2 à 4 dans le style de la page Produit (en-tête compact + récapitulatif « Votre création ») ══ */
#tai2-card .tt-step.tai2-th-step { max-width: none; }
#tai2-card .tt-stephead { flex: none; padding: 14px 6px 16px; margin-bottom: 16px; border-bottom: 1px solid var(--tai2-border); }
#tai2-card .tt-stephead .tt-hero__title { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
#tai2-card .tt-stephead .tt-hero__sub { margin: 6px 0 0; font-size: .98rem; }
#tai2-card .tt-prod--noside { grid-template-columns: minmax(0, 1fr) 310px; }
@media (max-width: 1380px) { #tai2-card .tt-prod--noside { grid-template-columns: minmax(0, 1fr) 290px; } }

/* Colonne des catégories de thèmes */
#tai2-card .tt-side__cats--last { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#tai2-card .tt-side__ico { font-size: .95rem; line-height: 1; text-align: center; }
#tai2-card .tt-side__pick { color: var(--tai2-accent); font-size: .85rem; }
#tai2-card .tt-side__cat.is-picked:not(.is-on) span { color: var(--tai2-accent); }

/* Barre du centre : onglets + compteur */
#tai2-card .tt-step .tt-prod__bar .tai2-seg { margin: 0; }
#tai2-card .tt-th-count { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--tai2-muted); }
#tai2-card .tt-step .tt-prod__count { margin: 0 0 12px; font-size: 1.2rem; }
#tai2-card .tt-step__scroll { padding: 2px 4px 12px 2px; }

/* Thèmes : une grille par sous-catégorie */
#tai2-card .tt-step .tai2-th-detail-chips { margin-bottom: 8px; }
#tai2-card .tt-th-sub { margin-top: 18px; }
#tai2-card .tt-th-sub__title { margin: 0 0 10px; font-size: .92rem; font-weight: 600; color: var(--tai2-muted); }
#tai2-card .tt-th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
#tai2-card .tt-th-grid .tai2-th-card { width: auto; flex: none; }

/* Récapitulatif « Votre création » */
#tai2-card .tt-recap__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; color: var(--tai2-text); }
#tai2-card .tt-recap__row { padding: 12px 0; border-top: 1px solid var(--tai2-border); }
#tai2-card .tt-recap__row.is-todo { opacity: .5; }
#tai2-card .tt-recap__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#tai2-card .tt-recap__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tai2-muted); }
#tai2-card .tt-recap__row.is-current .tt-recap__label { color: var(--tai2-accent); }
#tai2-card .tt-recap__edit { background: none; border: 0; padding: 0; cursor: pointer; color: var(--tai2-accent); font: inherit; font-size: .8rem; text-decoration: underline; text-underline-offset: 2px; }
#tai2-card .tt-recap__body { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--tai2-text); }
#tai2-card .tt-recap__todo { color: var(--tai2-muted); font-size: .86rem; }
#tai2-card .tt-recap__prod, #tai2-card .tt-recap__style { display: flex; align-items: center; gap: 12px; }
#tai2-card .tt-recap__prod img, #tai2-card .tt-recap__style img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
#tai2-card .tt-recap__prod div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#tai2-card .tt-recap__prod b { font-weight: 700; }
#tai2-card .tt-recap__prod span { font-size: .82rem; color: var(--tai2-muted); }
#tai2-card .tt-recap__price { color: var(--tai2-text) !important; }
#tai2-card .tt-recap .tai2-th-choices { margin: 0; gap: 6px; }
#tai2-card .tt-recap .tai2-th-choices:empty { display: none; }
#tai2-card .tt-recap .tai2-th-chip { padding: 6px 6px 6px 12px; font-size: .84rem; }
#tai2-card .tt-recap .tai2-th-max { font-size: .78rem; color: var(--tai2-accent); }
#tai2-card .tt-recap .tt-prod__cta { margin-top: 8px; }

@media (max-width: 860px) {
  #tai2-card .tt-stephead { display: none; }
  #tai2-card .tt-step .tt-prod__bar { gap: 8px; }
  #tai2-card .tt-th-count { margin-left: 0; width: 100%; }
  #tai2-card .tt-th-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  /* Le récapitulatif passe sous les thèmes sur téléphone (le pied porte déjà « Continuer »). */
  #tai2-card .tt-step .tt-recap { display: block; order: 1; }
  #tai2-card .tt-step .tt-recap .tt-prod__cta { display: none; }
}

/* ── Page Produit pendant le chargement de la liste (~2 s à la 1re visite) : même mise en page,
   cartes et catégories « fantômes » + mention « Chargement des produits… ». ── */
#tai2-card .tt-loading-note { margin-left: 10px; font-size: .82rem; font-weight: 500; color: var(--tai2-muted); }
#tai2-card .tt-loading-note i { color: var(--tai2-accent); margin-right: 4px; }
#tai2-card .tt-skel-card { display: flex; flex-direction: column; gap: 8px; border-radius: 14px; border: 1px solid var(--tai2-border); padding: 0 0 12px; overflow: hidden; }
#tai2-card .tt-skel {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 75%);
  background-size: 200% 100%; animation: tt-skel 1.3s ease-in-out infinite;
}
#tai2-card .tt-skel--img { aspect-ratio: 1; border-radius: 0; }
#tai2-card .tt-skel--line { height: 12px; margin: 0 12px; }
#tai2-card .tt-skel--short { width: 45%; }
#tai2-card .tt-skel--cat { height: 34px; margin-bottom: 6px; }
@keyframes tt-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { #tai2-card .tt-skel { animation: none; } }
html[data-theme="light"] #tai2-card .tt-skel { background: linear-gradient(90deg, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .09) 50%, rgba(0, 0, 0, .05) 75%); background-size: 200% 100%; }

/* Ordinateur : le bouton du panneau de droite (« Personnaliser ce produit » / « Continuer ») suffit, celui du
   pied est retiré (demande de Loïc du 16/11/2026). Le bouton du panneau déclenche toujours celui du pied
   (masqué par CSS seulement). Téléphone : le pied garde son bouton (le panneau n'en a pas). */
@media (min-width: 861px) {
  body:has(#tai2-card .tt-catalog) .tai2-left-footer .tai2-footer-continue:not(.tai2-btn--ghost) { display: none !important; }
}

/* ── En-tête « le cadeau qui fait plaisir » (page Produit, ordinateur) ── */
#tai2-card .tt-gift {
  flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 190px; aspect-ratio: 6 / 1; box-sizing: border-box; padding: 18px 0 18px 32px; margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--tai2-border); border-radius: 18px;
  background: linear-gradient(90deg, #00090f 0%, #021720 100%);
}
#tai2-card .tt-gift__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
#tai2-card .tt-gift__title {
  margin: 0; font-family: var(--font-family-heading, inherit); font-weight: 800; font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1.08; white-space: nowrap; letter-spacing: -.01em; color: var(--tai2-text);
}
#tai2-card .tt-gift__hl { position: relative; display: inline-block; color: var(--tai2-accent); }
#tai2-card .tt-gift__ii { color: var(--tai2-accent); }
#tai2-card .tt-gift__heart { display: inline-block; width: .7em; height: .65em; vertical-align: -.02em; stroke: var(--tai2-accent); stroke-width: 2; stroke-linejoin: round; }
#tai2-card .tt-gift__sub { margin: 6px 0 4px; font-size: 1rem; color: var(--tai2-text); opacity: .85; }
#tai2-card .tt-gift__points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
#tai2-card .tt-gift__points li { display: flex; align-items: center; gap: 12px; max-width: 180px; font-size: .88rem; line-height: 1.3; color: var(--tai2-text); }
#tai2-card .tt-gift__points svg {
  width: 40px; height: 40px; flex: none; padding: 9px; box-sizing: border-box; border-radius: 10px;
  border: 1px solid var(--tai2-border); background: rgba(255, 255, 255, .04);
  stroke: var(--tai2-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
#tai2-card .tt-gift__visual { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; pointer-events: none; overflow: hidden; }
#tai2-card .tt-gift__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: contain; object-position: center; }
#tai2-card .tt-gift__img--light { display: none; }
html[data-theme="light"] #tai2-card .tt-gift__img--dark { display: none; }
html[data-theme="light"] #tai2-card .tt-gift__img--light { display: block; }
@media (max-width: 1180px) { #tai2-card .tt-gift__visual { display: none; } #tai2-card .tt-gift { aspect-ratio: auto; } }
@media (max-width: 860px) { #tai2-card .tt-gift { display: none; } }
/* Écran peu haut (portable) : bannière compacte, la grille des produits remonte (retour de Dodo du 30/11/2026). */
@media (min-width: 861px) and (max-height: 900px) {
  #tai2-card .tt-gift { min-height: 0; aspect-ratio: auto; padding: 14px 0 14px 26px; margin-bottom: 12px; }
  #tai2-card .tt-gift__title { font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
  #tai2-card .tt-gift__sub { margin: 2px 0 0; font-size: .92rem; }
  #tai2-card .tt-gift__points { display: none; }
}
@media (min-width: 861px) and (max-height: 700px) {
  #tai2-card .tt-gift__sub { display: none; }
}
html[data-theme="light"] #tai2-card .tt-gift { background: linear-gradient(90deg, #ffffff 0%, #f1f7fb 55%, #ecf5fb 100%); }
html[data-theme="light"] #tai2-card .tt-gift__points svg { background: #fff; }

/* Étape Thème : « Tous les thèmes » = catégories l'une sous l'autre ; « Décrire mon idée » garde la colonne
   de gauche (atténuée) pour que la mise en page ne saute pas. */
#tai2-card .tt-th-cat { margin-bottom: 30px; }
#tai2-card .tt-th-cat__title { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; color: var(--tai2-text); }
#tai2-card .tt-th-cat__title span:last-child { color: var(--tai2-muted); font-weight: 500; }
#tai2-card .tt-prod--free .tt-side { opacity: .55; }
#tai2-card .tt-prod--free .tt-side .tt-side__cat.is-on { border-color: transparent; background: none; font-weight: inherit; }
#tai2-card .tt-prod--free .tt-side:hover { opacity: 1; }

/* ── Étape Style façon catalogue ── */
#tai2-card .tt-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
#tai2-card .tt-style-grid--top { margin-bottom: 22px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
#tai2-card .tt-style-desc { margin: -4px 0 12px; font-size: .86rem; color: var(--tai2-muted); max-width: 720px; }
#tai2-card .tt-style-card { position: relative; width: auto; flex: none; }
#tai2-card .tt-style-card .tt-prod-check { display: grid; }
#tai2-card .tt-style-card.tai2-style-item--selected::after { content: none; display: none; } /* une seule coche (la pastille tt-prod-check) */
#tai2-card .tt-style-none { min-height: 100%; display: flex; flex-direction: column; }
#tai2-card .tt-style-none__ico { flex: 1; min-height: 110px; display: grid; place-items: center; font-size: 1.8rem; color: var(--tai2-muted); }
/* Pied : le bouton « Continuer… » de l'étape Style (parfois « fantôme ») et « Retirer le style » passent
   aussi par le panneau de droite sur ordinateur. */
@media (min-width: 861px) {
  body:has(#tai2-card .tt-catalog) #tai2-style-continue,
  body:has(#tai2-card .tt-catalog) #tai2-style-clear { display: none !important; }
}
@media (max-width: 860px) {
  #tai2-card .tt-style-grid, #tai2-card .tt-style-grid--top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

/* ── Étape Options façon catalogue ── */
#tai2-card .tt-opt-step .tt-params { max-width: 820px; margin: 0; }
#tai2-card .tt-opt-step .tt-param__input { margin-top: 12px; }
#tai2-card .tt-input--warn { border-color: #ff6b6b !important; box-shadow: 0 0 0 2px rgba(255, 107, 107, .35) !important; }

/* ── Option Position : schéma du produit + zones cliquables ── */
/* Options (forme A) : un bloc = aperçu en grand + barre d'interrupteurs dessous ; récapitulatif à droite */
#tai2-card .tt-opt-step .tt-prod { grid-template-columns: minmax(0, 1fr) 310px; }
#tai2-card .tt-optcard {
  border: 1px solid var(--tai2-border); border-radius: 16px; background: rgba(255, 255, 255, .03);
  display: flex; flex-direction: column; overflow: hidden;
}
#tai2-card .tt-optcard__stage { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 16px 18px; }
#tai2-card .tt-optbar {
  flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-bottom: 1px solid var(--tai2-border); background: rgba(255, 255, 255, .02);
}
#tai2-card .tt-optrow { padding: 14px 18px; border-left: 1px solid var(--tai2-border); display: flex; align-items: center; }
#tai2-card .tt-optrow:first-child { border-left: 0; }
#tai2-card .tt-optrow .tt-param__note { margin: 0; font-size: .8rem; }
#tai2-card .tt-optbar__input { flex: none; padding: 14px 18px; border-bottom: 1px solid var(--tai2-border); }
#tai2-card .tt-optbar__input .tt-param__input { margin: 0; }
#tai2-card .tt-tog {
  appearance: none; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0;
  border: 0; background: none; color: var(--tai2-text); font: inherit; text-align: left; cursor: pointer;
}
#tai2-card .tt-tog__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#tai2-card .tt-tog__txt b { font-size: .92rem; font-weight: 600; }
#tai2-card .tt-tog__txt small { font-size: .76rem; color: var(--tai2-muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tai2-card .tt-tog__sw {
  flex: none; position: relative; width: 40px; height: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); transition: background .2s;
}
#tai2-card .tt-tog__sw::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
#tai2-card .tt-tog.is-on .tt-tog__sw { background: var(--tai2-accent); }
#tai2-card .tt-tog.is-on .tt-tog__sw::after { transform: translateX(18px); background: #00060D; }
#tai2-card .tt-tog:focus-visible .tt-tog__sw { outline: 2px solid var(--tai2-accent); outline-offset: 2px; }
html[data-theme="light"] #tai2-card .tt-tog__sw { background: rgba(0, 0, 0, .15); }
html[data-theme="light"] #tai2-card .tt-tog.is-on .tt-tog__sw::after { background: #fff; }
#tai2-card .tt-prev { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* Ordinateur : le bloc prend la hauteur de l'écran, l'aperçu s'agrandit autant que la place le permet */
@media (min-width: 861px) {
  #tai2-card .tt-opt-step .tt-optcard { height: 100%; }
  #tai2-card .tt-optcard__stage { container-type: size; }
  #tai2-card .tt-prev { max-width: none; width: min(100cqw, calc(100cqh - 30px)); }
  #tai2-card .tt-prev:has(.tt-pos--round) { width: min(100cqw, 720px); }
  #tai2-card .tt-prev.tt-prev--phone { width: min(100cqw, calc((100cqh - 30px) * var(--r, .5))); }
}
#tai2-card .tt-prev__warn { margin: 0; font-size: .82rem; color: #ffb36b; text-align: center; }
#tai2-card .tt-prev__note { margin: 0; font-size: .78rem; opacity: .7; text-align: center; }
#tai2-card .tt-pos { position: relative; width: 100%; }
#tai2-card .tt-pos--flat { aspect-ratio: 1; }
#tai2-card .tt-pos--noimg { background: none; }
#tai2-card .tt-pos__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#tai2-card .tt-pos--flat .tt-pos__area { position: absolute; }
#tai2-card .tt-pos__area { position: relative; border: 2px dashed var(--tai2-accent); border-radius: 4px; box-sizing: border-box; }
#tai2-card .tt-pos__area.is-all { background: rgba(53, 248, 251, .14); }
#tai2-card .tt-pos__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); width: 100%; height: 100%; }
#tai2-card .tt-pos__cell {
  appearance: none; margin: 0; padding: 0; min-width: 0; min-height: 0; border: 1px dashed rgba(53, 248, 251, .35); background: transparent;
  color: #00060D; cursor: pointer; display: grid; place-items: center; font-size: .9rem; transition: background .15s;
}
#tai2-card .tt-pos__cell:hover { background: rgba(53, 248, 251, .18); }
#tai2-card .tt-pos__cell.is-on { background: transparent; border-color: transparent; }
#tai2-card .tt-pos__sel {
  position: absolute; z-index: 3; pointer-events: none; box-sizing: border-box;
  border: 2px solid var(--tai2-accent); box-shadow: 0 0 0 1px rgba(0, 6, 13, .55), inset 0 0 0 1px rgba(0, 6, 13, .55);
}
#tai2-card .tt-pos__cell:focus-visible { outline: 2px solid var(--tai2-accent); outline-offset: -3px; }
#tai2-card .tt-pos--round { display: flex; flex-direction: column; }
#tai2-card .tt-pos--round .tt-pos__area { width: 100%; }
#tai2-card .tt-pos__legend { display: grid; grid-template-columns: repeat(3, 1fr); }
#tai2-card .tt-pos__leg { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--tai2-accent); text-align: center; }
#tai2-card .tt-pos__tick { width: 2px; height: 22px; background: var(--tai2-accent); }
#tai2-card .tt-pos__leg svg { width: 44px; height: 48px; fill: none; stroke: var(--tai2-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#tai2-card .tt-pos__leg small { font-size: .78rem; opacity: .8; }
#tai2-card .tt-pos__leg b { font-weight: 500; font-size: .9rem; margin-top: 4px; }
/* Logo de démonstration dans la zone (ou la case) choisie */
#tai2-card .tt-prev__art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; padding: 0; container-type: size;
}
#tai2-card .tt-prev__art img { display: block; width: 100%; min-height: 0; flex: 0 1 auto; max-height: 100%; object-fit: contain; }
#tai2-card .tt-prev__art.has-txt img { max-height: 70%; }
#tai2-card .tt-prev__txt {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font-weight: 700; line-height: 1.15; font-size: clamp(7px, 12cqmin, 22px); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}
#tai2-card .tt-prev__txt.is-ph { opacity: .55; font-style: italic; }
#tai2-card .tt-prev__art--white { background: #fff; }
#tai2-card .tt-prev__art--uni { background: #f2c879; }
#tai2-card .tt-prev__art--white .tt-prev__txt, #tai2-card .tt-prev__art--uni .tt-prev__txt { color: #15181c; text-shadow: none; }
#tai2-card .tt-prev__art--decor { background: #0b3a48 center / cover no-repeat; }
/* Coques : schéma vectoriel ; design découpé aux contours, bloc photo et traits devant, grille dessous */
#tai2-card .tt-pos--phone { position: relative; width: 100%; }
#tai2-card .tt-pos--phone .tt-pos__area { position: absolute; border: 0; border-radius: 0; background: none; z-index: auto; }
#tai2-card .tt-pos__clip { position: absolute; inset: 0; z-index: 1; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
#tai2-card .tt-pos--phone .tt-pos__grid { z-index: 2; }
#tai2-card .tt-pos--phone .tt-pos__top { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; filter: drop-shadow(0 0 3px rgba(53, 248, 251, .55)); }
#tai2-card .tt-pos--phone .tt-pos__sel { z-index: 4; }
#tai2-card .tt-ph__line { fill: none; stroke: var(--tai2-accent); stroke-linejoin: round; }
#tai2-card .tt-ph__mod { fill: #0d1a1f; }
html[data-theme="light"] #tai2-card .tt-ph__line { stroke: #0b7f86; }
html[data-theme="light"] #tai2-card .tt-ph__mod { fill: #e9eff1; }
html[data-theme="light"] #tai2-card .tt-pos--phone .tt-pos__top { filter: none; }
#tai2-card .tt-prev__art--cut img { filter: drop-shadow(0 0 1px var(--tai2-accent)) drop-shadow(0 0 1px var(--tai2-accent)); }
@media (max-width: 860px) {
  #tai2-card .tt-opt-step .tt-prod { grid-template-columns: minmax(0, 1fr); }
  #tai2-card .tt-optbar { grid-template-columns: minmax(0, 1fr); }
  #tai2-card .tt-optrow { border-left: 0; border-top: 1px solid var(--tai2-border); }
  #tai2-card .tt-optrow:first-child { border-top: 0; }
  #tai2-card .tt-prev.tt-prev--phone { max-width: 230px; }
}
html[data-theme="light"] #tai2-card .tt-pos__img { filter: brightness(.42) saturate(1.4); }
html[data-theme="light"] #tai2-card .tt-pos__cell { color: #fff; }

/* ── Couleurs : menu déroulant avec pastille de couleur ── */
#tai2-card .tt-csel { position: relative; }
#tai2-card .tt-csel__btn { display: flex; align-items: center; gap: 10px; text-align: left; }
#tai2-card .tt-csel__sw { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
#tai2-card .tt-csel__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 300px; overflow-y: auto;
  padding: 4px; border-radius: 10px; border: 1px solid var(--tai2-border); background: #121b20; box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
#tai2-card .tt-csel__list[hidden] { display: none; }
#tai2-card .tt-csel__opt {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 7px;
  background: none; color: var(--tai2-text); font: inherit; font-size: .85rem; text-align: left; cursor: pointer;
}
#tai2-card .tt-csel__opt:hover { background: rgba(255, 255, 255, .06); }
#tai2-card .tt-csel__opt.is-on { background: rgba(53, 248, 251, .12); color: var(--tai2-accent); }
#tai2-card .tt-csel__opt:disabled { opacity: .4; cursor: not-allowed; }
html[data-theme="light"] #tai2-card .tt-csel__list { background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .15); }
html[data-theme="light"] #tai2-card .tt-csel__sw { border-color: rgba(0, 0, 0, .2); }
html[data-theme="light"] #tai2-card .tt-csel__opt:hover { background: rgba(0, 0, 0, .05); }

/* ── Aperçu : couleur du produit dans la silhouette ; zone visible seulement avec « Zone précise » ── */
#tai2-card .tt-pos__fill { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
#tai2-card .tt-pos.is-plain .tt-pos__area { border-color: transparent; background-color: transparent; }
#tai2-card .tt-pos--round.is-plain .tt-pos__area { border: 2px solid var(--tai2-accent); }
/* Mug, gobelet, gourde : repères Côté gauche / Centre / Côté droit toujours affichés, même sans « Position » : sans eux,
   la bande à plat ne se lisait pas comme le tour du produit (Loïc, 23/11/2026) */

/* ── T-shirt / hoodie : schéma vectoriel à la couleur du produit ── */
#tai2-card .tt-pos--vec { position: relative; width: 100%; aspect-ratio: 1; }
#tai2-card .tt-pos--vec .tt-pos__area { position: absolute; }
#tai2-card .tt-pos__vec { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
#tai2-card .tt-vec__lines { fill: none; stroke: var(--tai2-accent); stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(53, 248, 251, .7)); }
html[data-theme="light"] #tai2-card .tt-vec__lines { stroke: #0b7f86; filter: none; }

/* ── Texte : menu déroulant sous l'interrupteur ; aperçu « CUSTOMIIZER » ── */
#tai2-card .tt-optrow--text { position: relative; gap: 8px; }
#tai2-card .tt-textpop__btn {
  flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--tai2-border); background: rgba(255, 255, 255, .04);
  color: var(--tai2-accent); cursor: pointer; display: grid; place-items: center; font-size: .75rem; order: -1;
}
#tai2-card .tt-textpop {
  display: none; position: absolute; left: -1px; right: -1px; top: 100%; z-index: 25;
  padding: 20px 14px 12px; border: 1px solid var(--tai2-border); border-top: 0; border-radius: 0 0 14px 14px;
  background: #13242b; box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
}
#tai2-card .tt-optrow--text.is-pop { background: #13242b; }
#tai2-card .tt-optrow--text.is-pop .tt-textpop { display: block; }
#tai2-card .tt-textpop .tt-param__input { margin: 0; }
#tai2-card .tt-textpop .tai2-texte-input-wrap {
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .22); transition: border-color .15s, box-shadow .15s;
}
#tai2-card .tt-textpop .tai2-texte-input-wrap:focus-within { border-color: var(--tai2-accent); box-shadow: 0 0 0 3px rgba(53, 248, 251, .14); }
#tai2-card .tt-textpop input { font-size: .92rem; }
#tai2-card .tt-textpop__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .74rem; color: var(--tai2-muted); }
#tai2-card .tt-textpop__count { font-variant-numeric: tabular-nums; }
html[data-theme="light"] #tai2-card .tt-textpop, html[data-theme="light"] #tai2-card .tt-optrow--text.is-pop { background: #f4f8fa; }
html[data-theme="light"] #tai2-card .tt-textpop .tai2-texte-input-wrap { background: #fff; border-color: rgba(0, 0, 0, .12); }
#tai2-card .tt-optcard { overflow: visible; }
#tai2-card .tt-prev__word {
  font-family: var(--font-family-heading, inherit); font-weight: 800; letter-spacing: .14em; font-style: normal; opacity: 1;
  color: #fff; text-shadow: none; -webkit-text-stroke: .6px #0a0a0a; paint-order: stroke fill;
}
#tai2-card .tt-prev__ii { color: #036f7b; }

/* ── Logo de l'aperçu : bloc logo + pastille « CUSTOMIIZER » sur le bas du C ── */
#tai2-card .tt-prev__lockup {
  position: relative; display: block; flex: none; aspect-ratio: 222 / 262; height: auto;
  width: min(84cqw, calc(84cqh * 222 / 262)); /* marge de 8 % de la CASE de chaque côté (cq = conteneur .tt-prev__art) */
  container-type: inline-size;
}
#tai2-card .tt-prev__art .tt-prev__lockup img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
#tai2-card .tt-prev__art.has-txt .tt-prev__lockup img { max-height: none; }
#tai2-card .tt-prev__pill {
  position: absolute; left: -4%; right: -4%; bottom: 6%; height: 17%;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  border-radius: 999px; background: linear-gradient(180deg, #2a5261 0%, #17323d 55%, #0e222a 100%);
  border: max(1.5px, 1.6cqw) solid #f4f8fa;
  box-shadow: 0 0 0 1px #0a0a0a, 0 1.6cqw 0 0 #8e9ca3, 0 1.6cqw 0 1px #0a0a0a, 0 3cqw 4cqw rgba(0, 0, 0, .35), inset 0 0 0 1px #0a0a0a, inset 0 1.4cqw 1.2cqw rgba(255, 255, 255, .18);
  text-shadow: 0 .6cqw 0 rgba(0, 0, 0, .45);
  font-family: var(--font-family-heading, inherit); font-weight: 800; font-size: 11cqw; letter-spacing: .03em; color: #fff; line-height: 1;
}
#tai2-card .tt-prev__pill .tt-prev__ii { color: #18c3cc; }

/* Case Texte activée : libellé = ouverture du menu, interrupteur à part */
#tai2-card .tt-optrow--text .tt-tog { cursor: default; }
#tai2-card .tt-textpop__open { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
#tai2-card .tt-textpop__open small { display: flex; align-items: center; gap: 6px; }
#tai2-card .tt-textpop__sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tai2-card .tt-textpop__chev { flex: none; font-size: .62rem; color: var(--tai2-accent); transition: transform .2s; }
#tai2-card .tt-optrow--text.is-pop .tt-textpop__chev { transform: rotate(180deg); }
#tai2-card .tt-textpop__open:hover b { color: var(--tai2-accent); }
#tai2-card .tt-tog__swbtn { appearance: none; border: 0; background: none; padding: 4px 0 4px 6px; margin: 0; cursor: pointer; display: flex; }
#tai2-card .tt-tog__swbtn:focus-visible .tt-tog__sw { outline: 2px solid var(--tai2-accent); outline-offset: 2px; }

/* Poignée du menu texte : au centre de la ligne du bas de la case */
#tai2-card .tt-textpop__handle {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 26;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--tai2-border); background: #13242b;
  color: var(--tai2-accent); font-size: .85rem; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: transform .2s, background .15s;
}
#tai2-card .tt-textpop__handle:hover { background: #1a3039; }
#tai2-card .tt-textpop__handle i { transition: transform .2s; }
#tai2-card .tt-optrow--text.is-pop .tt-textpop__handle i { transform: rotate(180deg); }
html[data-theme="light"] #tai2-card .tt-textpop__handle { background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }

/* Texte activé mais vide au lancement : champ encadré en rouge + message */
#tai2-card .tt-optrow--text.is-err .tt-textpop .tai2-texte-input-wrap { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .22); }
#tai2-card .tt-optrow--text.is-err .tt-textpop__msg { color: #ff8a8a; }
#tai2-card .tt-optrow--text.is-err .tt-textpop__sub { color: #ff8a8a; }

/* ── Position simplifiée (B + C) : cadre déplaçable, poignée de taille, menu tailles + positions ── */
#tai2-card .tt-pos__box { position: absolute; z-index: 5; box-sizing: border-box; border: 1.5px solid var(--tai2-accent); border-radius: 2px; cursor: grab; touch-action: none; box-shadow: 0 0 0 1px rgba(0, 6, 13, .45); }
#tai2-card .tt-pos__box:active { cursor: grabbing; }
#tai2-card .tt-pos__handle { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--tai2-accent); border: 2px solid #0b161b; cursor: nwse-resize; touch-action: none; }
#tai2-card .tt-optrow--pos { position: relative; gap: 8px; }
#tai2-card .tt-optrow--pos.is-pop { background: #13242b; }
#tai2-card .tt-optrow--pos.is-pop .tt-textpop { display: block; }
#tai2-card .tt-optrow--pos.is-pop .tt-textpop__handle i { transform: rotate(180deg); }
#tai2-card .tt-pospop { display: none; }
#tai2-card .tt-pospop__lbl { margin: 0 0 6px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tai2-muted); }
#tai2-card .tt-psizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
#tai2-card .tt-psize { appearance: none; border: 1px solid var(--tai2-border); background: rgba(0, 0, 0, .22); color: var(--tai2-text); border-radius: 10px; padding: 8px 6px; font: inherit; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; }
#tai2-card .tt-psize.is-on { border-color: var(--tai2-accent); background: rgba(53, 248, 251, .1); }
#tai2-card .tt-psize__ico { grid-row: span 2; width: 26px; height: 30px; border: 1.5px solid var(--tai2-muted); border-radius: 3px; position: relative; }
#tai2-card .tt-psize__ico i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--tai2-accent); border-radius: 1px; }
#tai2-card .tt-psize b { font-size: .84rem; } #tai2-card .tt-psize small { font-size: .7rem; color: var(--tai2-muted); }
#tai2-card .tt-ppad { display: grid; grid-template-columns: repeat(3, 38px); grid-auto-rows: 38px; gap: 6px; }
#tai2-card .tt-ppad__pt { appearance: none; border: 1px solid var(--tai2-border); background: rgba(0, 0, 0, .22); border-radius: 9px; cursor: pointer; display: grid; place-items: center; padding: 0; }
#tai2-card .tt-ppad__pt i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: transform .15s, background .15s; }
#tai2-card .tt-ppad__pt.is-on { border-color: var(--tai2-accent); background: rgba(53, 248, 251, .1); }
#tai2-card .tt-ppad__pt.is-on i { background: var(--tai2-accent); transform: scale(1.3); }
html[data-theme="light"] #tai2-card .tt-optrow--pos.is-pop { background: #f4f8fa; }
html[data-theme="light"] #tai2-card .tt-psize, html[data-theme="light"] #tai2-card .tt-ppad__pt { background: #fff; }
html[data-theme="light"] #tai2-card .tt-ppad__pt i { background: rgba(0, 0, 0, .2); }

/* ── Page résultat : Position dans « Modifier ma création » ── */
#tai2-card .tt-epos { display: flex; flex-direction: column; gap: 4px; }
#tai2-card .tt-psizes--3 { grid-template-columns: repeat(3, 1fr); }
#tai2-card .tt-psizes--3 .tt-psize { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; text-align: center; row-gap: 4px; }
#tai2-card .tt-psizes--3 .tt-psize__ico { grid-row: auto; }
#tai2-card .tt-epos__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
#tai2-card .tt-ppad.is-off { opacity: .35; }
#tai2-card .tt-epos__stage { min-width: 0; }
#tai2-card .tt-epos__stage .tt-pos { max-width: 200px; margin: 0 auto; }
#tai2-card .tt-epos__stage .tt-pos--round { max-width: 100%; }
#tai2-card .tt-epos__note { margin: 8px 0 0; font-size: .76rem; color: var(--tai2-muted); }
#tai2-card .tt-prev__art--real { padding: 0; }
#tai2-card .tt-prev__art--real img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

/* Écran résultat : choix des options (couleur, taille, modèle, format…) en menu déroulant posé PAR-DESSUS la page,
   sous la carte cliquée (rien ne se décale) ; combinaisons impossibles grisées et expliquées (18/11/2026). */
.tai2-rs-optwrap { position: relative; flex: 1 1 140px; min-width: 0; display: flex; }
.tai2-rs-optwrap > .tai2-rs-opt { flex: 1 1 auto; width: 100%; }
.tai2-rs-optwrap > .tai2-rs-panel {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 40; min-width: 100%; width: max-content; max-width: min(300px, 86vw);
  max-height: 300px; overflow-y: auto; box-sizing: border-box;
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 4px;
  border-radius: 10px; border: 1px solid var(--tai2-border); background: #121b20; box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.tai2-rs-optwrap > .tai2-rs-panel[hidden], .tai2-rs-choice-note[hidden], .tai2-rs-fmtnote[hidden] { display: none; }
.tai2-rs-optwrap .tai2-rs-chip, .tai2-rs-optwrap .tai2-rs-swatch {
  position: relative; width: 100%; height: auto; display: flex; align-items: center; gap: 10px; box-sizing: border-box;
  padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--tai2-text, #fff);
  font: inherit; font-size: .85rem; font-weight: 600; text-align: left; cursor: pointer;
}
.tai2-rs-optwrap .tai2-rs-chip:hover, .tai2-rs-optwrap .tai2-rs-swatch:hover { background: rgba(255, 255, 255, .06); border: 0; }
.tai2-rs-optwrap .tai2-rs-chip--active, .tai2-rs-optwrap .tai2-rs-swatch--active { background: rgba(53, 248, 251, .12); color: var(--tai2-accent); border: 0; }
.tai2-rs-optwrap .tai2-rs-swatch-dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.tai2-rs-chip-val, .tai2-rs-swatch-name { flex: 1 1 auto; }
.tai2-rs-optwrap .tai2-rs-chip--off, .tai2-rs-optwrap .tai2-rs-swatch--off { opacity: .4; cursor: not-allowed; }
.tai2-rs-optwrap .tai2-rs-chip--off .tai2-rs-chip-val, .tai2-rs-optwrap .tai2-rs-swatch--off .tai2-rs-swatch-name { text-decoration: line-through; }
.tai2-rs-chip-fmt {
  flex: none; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 6px; color: #f5b94a; background: rgba(245, 185, 74, .14);
}
.tai2-rs-choice-note, .tai2-rs-fmtnote {
  flex: 1 1 100%; margin: 0; padding: 9px 12px; border-radius: 10px; font-size: .8rem; line-height: 1.4;
  display: flex; gap: 8px; align-items: flex-start;
}
.tai2-rs-choice-note { color: #ffb4a8; background: rgba(255, 107, 87, .12); border: 1px solid rgba(255, 107, 87, .35); }
.tai2-rs-fmtnote { color: #f5d08a; background: rgba(245, 185, 74, .10); border: 1px solid rgba(245, 185, 74, .35); }
.tai2-rs-fmtnote i { margin-top: 2px; }
html[data-theme="light"] .tai2-rs-optwrap > .tai2-rs-panel { background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .15); }
html[data-theme="light"] .tai2-rs-optwrap .tai2-rs-chip, html[data-theme="light"] .tai2-rs-optwrap .tai2-rs-swatch { color: #0A0C0F; }
html[data-theme="light"] .tai2-rs-optwrap .tai2-rs-chip:hover, html[data-theme="light"] .tai2-rs-optwrap .tai2-rs-swatch:hover { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .tai2-rs-optwrap .tai2-rs-chip--active, html[data-theme="light"] .tai2-rs-optwrap .tai2-rs-swatch--active { background: var(--tai2-accent-soft); color: #0A0C0F; }
html[data-theme="light"] .tai2-rs-optwrap .tai2-rs-swatch-dot { border-color: rgba(0, 0, 0, .2); }
html[data-theme="light"] .tai2-rs-chip-fmt { color: #9a5b00; background: rgba(214, 140, 20, .14); }
html[data-theme="light"] .tai2-rs-choice-note { color: #a3261a; background: rgba(214, 60, 40, .08); border-color: rgba(214, 60, 40, .3); }
html[data-theme="light"] .tai2-rs-fmtnote { color: #7a4a00; background: rgba(214, 140, 20, .09); border-color: rgba(214, 140, 20, .35); }

/* Barres de défilement fines aux couleurs du tunnel : menus déroulants (options résultat, couleurs) et colonne résultat. */
.tai2-rs-optwrap > .tai2-rs-panel, #tai2-card .tt-csel__list, .tai2-rs-right {
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; color-scheme: dark;
}
.tai2-rs-optwrap > .tai2-rs-panel::-webkit-scrollbar, #tai2-card .tt-csel__list::-webkit-scrollbar, .tai2-rs-right::-webkit-scrollbar { width: 8px; }
.tai2-rs-optwrap > .tai2-rs-panel::-webkit-scrollbar-track, #tai2-card .tt-csel__list::-webkit-scrollbar-track, .tai2-rs-right::-webkit-scrollbar-track { background: transparent; }
.tai2-rs-optwrap > .tai2-rs-panel::-webkit-scrollbar-thumb, #tai2-card .tt-csel__list::-webkit-scrollbar-thumb, .tai2-rs-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box;
}
.tai2-rs-optwrap > .tai2-rs-panel::-webkit-scrollbar-thumb:hover, #tai2-card .tt-csel__list::-webkit-scrollbar-thumb:hover, .tai2-rs-right::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .32); }
html[data-theme="light"] .tai2-rs-optwrap > .tai2-rs-panel, html[data-theme="light"] #tai2-card .tt-csel__list, html[data-theme="light"] .tai2-rs-right {
  scrollbar-color: rgba(0, 0, 0, .25) transparent; color-scheme: light;
}
html[data-theme="light"] .tai2-rs-optwrap > .tai2-rs-panel::-webkit-scrollbar-thumb,
html[data-theme="light"] #tai2-card .tt-csel__list::-webkit-scrollbar-thumb,
html[data-theme="light"] .tai2-rs-right::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, .2); }

/* ══ Étape Photo dans le style des autres étapes (20/11/2026) : zone de dépôt puis aperçu + choix d'usage au centre,
   récapitulatif « Votre création » à droite. ══ */
#tai2-card .tt-photo-step .tt-step__scroll { display: flex; flex-direction: column; }
#tai2-card .tt-photo-step .tai2-photo-import { gap: 20px; }
#tai2-card .tt-photo-step .tai2-drop-zone--hero { padding: 44px 32px; }
#tai2-card .tt-photo-step .tai2-drop-illustration { transform: scale(.85); margin-bottom: 4px; }
#tai2-card .tt-photo-step .tai2-photo-trust-grid { gap: 12px; }
/* Photo choisie : image à gauche, choix d'usage à droite ; l'image ne dépasse pas la hauteur visible. */
#tai2-card .tt-photo-step .tai2-drop-zone--filled { padding: 20px; }
#tai2-card .tt-photo-step .tai2-photo-filled-body { gap: 24px; }
#tai2-card .tt-photo-step .tai2-photo-filled-frame { flex: 0 0 58%; }
#tai2-card .tt-photo-step .tai2-photo-filled-frame img { max-height: min(44vh, 460px); }
#tai2-card .tt-photo-step .tai2-photo-usage-text b { font-size: .92rem; color: var(--tai2-text); }
#tai2-card .tt-photo-step .tai2-photo-usage-text span { font-size: .8rem; }
#tai2-card .tt-prod__cta.is-disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 1100px) {
  #tai2-card .tt-photo-step .tai2-photo-filled-body { flex-direction: column; }
  #tai2-card .tt-photo-step .tai2-photo-filled-frame { flex: none; }
  #tai2-card .tt-photo-step .tai2-photo-filled-frame img { max-height: 44vh; }
}
@media (max-width: 860px) {
  #tai2-card .tt-photo-step .tai2-drop-zone--hero { padding: 32px 18px; }
  #tai2-card .tt-photo-step .tai2-photo-trust-grid { grid-template-columns: 1fr; }
}

/* Emplacement du texte (facultatif, transmis au générateur) : Options et « Ajouter un texte » du résultat. */
#tai2-card .tt-textpos { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 8px; }
html[data-theme="light"] #tai2-card .tt-textpos { border-top-color: rgba(0, 0, 0, .08); }
/* Menu du texte ouvert : au-dessus des lignes suivantes (sinon la flèche de la ligne Position passait devant). */
#tai2-card .tt-optrow--text.is-pop { z-index: 30; }
#tai2-card .tt-textpos__lbl,
#tai2-card .tai2-edit-pos-lbl { display: block; font-size: .82rem; font-weight: 600; color: var(--tai2-text); }
#tai2-card .tt-textpos__lbl small { font-weight: 400; opacity: .7; }
#tai2-card .tai2-edit-pos-lbl { margin-top: 12px; margin-bottom: 6px; }
#tai2-card .tai2-edit-pos-in { width: 100%; box-sizing: border-box; min-height: 0; resize: none; }

/* Curseur de taille du design (Options et bloc Position du résultat), sous les crans. Téléphone et petite tablette
   seulement (Loïc, 30/11/2026) : sur ordinateur, crans + glisser sur le schéma. Même sens que les crans : à gauche le
   plus grand, à droite le plus petit ; partie choisie remplie (--fill), repères aux tailles des crans. */
#tai2-card .tt-prange { display: none; }
#tai2-card .tt-hint-mob { display: none; }
@media (max-width: 1024px) { #tai2-card .tt-hint-mob { display: inline; } }
@media (max-width: 1024px) {
  /* Le curseur règle la taille : plus de poignée de coin sur le schéma (Loïc, 30/11/2026), le design se déplace toujours au doigt. */
  #tai2-card .tt-pos__handle { display: none; }
  #tai2-card .tt-hint-desk { display: none; }
  #tai2-card .tt-prange { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
  #tai2-card .tt-prange__track { position: relative; flex: 1 1 auto; min-width: 0; height: 32px; display: flex; align-items: center; }
  #tai2-card .tt-prange__in {
    -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 0; padding: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(90deg, var(--tai2-accent) 0 var(--fill, 0%), rgba(255, 255, 255, .14) var(--fill, 0%) 100%);
    position: relative; z-index: 1; touch-action: none;
  }
  #tai2-card .tt-prange__in::-webkit-slider-thumb {
    -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff;
    background: var(--tai2-accent); box-shadow: 0 0 0 6px rgba(53, 248, 251, .22), 0 2px 8px rgba(0, 0, 0, .45);
  }
  #tai2-card .tt-prange__in::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; background: var(--tai2-accent);
    box-shadow: 0 0 0 6px rgba(53, 248, 251, .22), 0 2px 8px rgba(0, 0, 0, .45);
  }
  #tai2-card .tt-prange__in::-moz-range-track { background: transparent; }
  #tai2-card .tt-prange__in:focus-visible { outline: 2px solid var(--tai2-accent); outline-offset: 6px; }
  #tai2-card .tt-prange__tick {
    position: absolute; top: 50%; width: 4px; height: 14px; margin: -7px 0 0 -2px; border-radius: 2px;
    background: rgba(255, 255, 255, .55); pointer-events: none; z-index: 2;
  }
  #tai2-card .tt-prange__val {
    flex: none; min-width: 6.5em; padding: 5px 10px; border-radius: 999px; text-align: center;
    font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums;
    color: var(--tai2-accent); background: rgba(53, 248, 251, .12); border: 1px solid rgba(53, 248, 251, .35);
  }
  html[data-theme="light"] #tai2-card .tt-prange__in { background: linear-gradient(90deg, var(--tai2-accent) 0 var(--fill, 0%), rgba(0, 0, 0, .12) var(--fill, 0%) 100%); }
  html[data-theme="light"] #tai2-card .tt-prange__tick { background: rgba(0, 0, 0, .35); }
  html[data-theme="light"] #tai2-card .tt-prange__in::-webkit-slider-thumb { border-color: #fff; }
}
