/* COLOR by novatechweb — vues du document central (bibliothèque, explorateur, contraste,
   variations, collage, nuanciers, profil) et fenêtres associées. Même thème que style.css. */

/* ================= Éléments communs ================= */

.vw { display: flex; flex-direction: column; gap: 18px; padding: 20px 24px 32px; }
.vw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vw-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.vw-head p { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.vw-section { display: flex; flex-direction: column; gap: 10px; }
.vw-section > h3 { color: var(--muted); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.vw-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vw-input, .vw-select {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}
.vw-input:focus, .vw-select:focus { border-color: var(--accent); outline: none; }
.vw-strip { display: flex; overflow: hidden; border-radius: 8px; }
.vw-strip i { flex: 1 1 0; min-width: 0; background: var(--c); }
.vw-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 20px; color: var(--muted); text-align: center; }
.vw-empty b { color: var(--text); font-size: 15px; }
.vw-empty span { max-width: 56ch; }
.vw-empty .btn { margin-top: 8px; }
.icon-btn-sm { width: 26px; height: 26px; }

/* ================= Bibliothèque ================= */

.lib { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100%; }
.lib-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line-dark); background: var(--panel); }
.lib-side h4 { display: flex; align-items: center; justify-content: space-between; margin: 14px 8px 4px; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.lib-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #c8c8d0;
  text-align: left;
  cursor: pointer;
}
.lib-nav span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-nav em { color: var(--muted); font-size: 11px; font-style: normal; }
.lib-nav:hover { background: #37373c; color: #fff; }
.lib-nav.is-on { background: color-mix(in oklab, var(--accent) 26%, #2d2d30); color: #fff; }
.lib-nav-ico svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lib-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--pc); }
.lib-add { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; }
.lib-add:hover { background: #3a3a40; color: #fff; }
.lib-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lib-hint { margin: 0 8px; color: #73737c; font-size: 11.5px; }
.lib-usage { margin: auto 8px 0; padding-top: 14px; color: #73737c; font-size: 11px; }

.lib-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px 20px 28px; }
.lib-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib-title { margin-right: auto; font-size: 18px; font-weight: 800; }
.lib-manage { display: flex; gap: 6px; }
.lib-search { width: 220px; }
.lib-search, .lib-sort {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}
.lib-search:focus, .lib-sort:focus { border-color: var(--accent); outline: none; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lib-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: transform .18s, box-shadow .18s, border-color .18s; }
.lib-card:hover { border-color: #4a4a52; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.lib-preview { display: block; height: 104px; padding: 0; border: 0; background: var(--field); cursor: pointer; }
.lib-strip { display: flex; width: 100%; height: 100%; }
.lib-strip i { flex: 1 1 0; background: var(--c); transition: flex-grow .25s; }
.lib-preview:hover .lib-strip i:hover { flex-grow: 2.2; }
.lib-strip-sm { position: absolute; right: 0; bottom: 0; left: 0; height: 18px; }
.lib-swatch { display: flex; align-items: flex-end; height: 100%; padding: 10px; background: var(--c); color: var(--on); font: 700 15px var(--mono); }
.lib-gradient { width: 100%; height: 100%; }
.lib-image { position: relative; height: 100%; background: repeating-conic-gradient(#36363c 0 25%, #2c2c31 0 50%) 0 0 / 14px 14px; }
.lib-image img { width: 100%; height: 100%; object-fit: contain; }
.lib-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px 12px; }
.lib-card-title { display: flex; align-items: center; gap: 4px; }
.lib-card-title b { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.lib-icon { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.lib-icon:hover { background: #3a3a40; color: #fff; }
.lib-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lib-icon.is-on { color: #fece3d; }
.lib-icon.is-on svg { fill: currentColor; }
.lib-card-meta { display: flex; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 11.5px; }
.lib-card-meta > span:first-child { margin-right: 2px; }
.lib-project { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px 1px 5px; border-radius: 99px; background: color-mix(in oklab, var(--pc) 22%, transparent); color: #e4e4ea; }
.lib-project::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--pc); }
.lib-tag { padding: 1px 7px; border-radius: 99px; background: #3a3a40; color: #d0d0d8; }
.lib-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; color: var(--muted); text-align: center; }
.lib-empty b { color: var(--text); font-size: 16px; }
.lib-empty span { max-width: 60ch; }
.lib-empty .btn { margin-top: 8px; }

.lib-menu {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-height: 70vh;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid #47474d;
  border-radius: 8px;
  background: #2f2f33;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.lib-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  text-align: left;
  cursor: pointer;
}
.lib-menu button:hover { background: var(--accent); color: var(--accent-on); }
.lib-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
.lib-menu .is-danger { color: #ff8b9a; }
.lib-menu .is-danger:hover { background: #c23b52; color: #fff; }
.lib-menu hr { width: 100%; height: 1px; margin: 4px 0; border: 0; background: #47474d; }
.lib-menu-label { padding: 6px 10px 2px; color: var(--muted); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }

/* ----- Fenêtre « Enregistrer la palette » ----- */

#save-dialog { width: min(520px, 94vw); }
.save-strip { display: flex; height: 64px; overflow: hidden; border-radius: 8px; }
.save-strip i { flex: 1 1 0; background: var(--c); }
.save-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.save-field input, .save-field select {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  font: 13px var(--font);
}
.save-field input:focus, .save-field select:focus { border-color: var(--accent); outline: none; }
.save-collections { display: flex; flex-wrap: wrap; gap: 6px; }
.save-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); cursor: pointer; }
.save-chip input { margin: 0; accent-color: var(--accent); }
.save-new-collection { display: flex; gap: 6px; }
.save-new-collection input { flex: 1; }

@media (max-width: 860px) {
  .lib { grid-template-columns: 1fr; }
  .lib-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .lib-side h4, .lib-hint, .lib-usage { display: none; }
}

/* ================= Explorer ================= */

.ex-filters { display: flex; flex-direction: column; gap: 8px; }
.ex-filter { display: flex; align-items: center; gap: 10px; }
.ex-filter > span { flex: none; width: 74px; color: var(--muted); font-size: 12px; }
.ex-filter .seg { flex-wrap: wrap; }
.ex-filter .seg button { display: inline-flex; align-items: center; gap: 6px; }
.ex-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ex-search { width: 280px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
/* content-visibility : les cartes hors écran ne sont ni mises en page ni peintes, la grille reste
   fluide même après des centaines de palettes chargées. */
.ex-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: transform .18s, box-shadow .18s;
  content-visibility: auto;
  contain-intrinsic-size: auto 177px;
}
.ex-card.is-in { animation: ex-in .42s ease-out backwards; animation-delay: calc(var(--k, 0) * 18ms); }
.ex-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .4); transform: translateY(-2px); }
@keyframes ex-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .ex-card.is-in { animation: none; } }
.ex-strip { display: flex; height: 120px; }
.ex-strip button {
  display: flex;
  flex: 1 1 0;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 0 0 8px;
  border: 0;
  background: var(--c);
  color: var(--on);
  cursor: copy;
  transition: flex-grow .25s;
}
.ex-strip button span { font: 700 10.5px var(--mono); letter-spacing: .02em; opacity: 0; transition: opacity .2s; }
.ex-strip button:hover { flex-grow: 2.4; }
.ex-strip button:hover span { opacity: 1; }
.ex-body { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 14px; }
.ex-title { display: flex; flex: 1; flex-direction: column; min-width: 0; }
/* Pastille de marque : logo Simple Icons posé en masque, à la couleur lisible sur la teinte. */
.ex-logo { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--c); color: var(--on); font: 800 12px var(--font); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ex-logo i { width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.ex-src { color: #8ec2ff; text-decoration: underline; }
.ex-src:hover { color: #fff; }
.ex-title b { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.ex-title span { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.ex-sentinel { padding: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.lib-icon.is-on svg { fill: #fd6d61; stroke: #fd6d61; }

/* ================= Contraste ================= */

.ct-top { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.3fr) minmax(290px, 1fr); gap: 14px; }
.ct-panel, .ct-score { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

/* Choix des couleurs */
.ct-pick-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ct-swatch { position: relative; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); cursor: pointer; }
.ct-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.ct-pick-name { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.ct-pick-name span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ct-hex { width: 100%; font: 700 12.5px var(--mono); text-transform: uppercase; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ct-chip { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: pointer; }
.ct-chip.is-on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #fff; }
.ct-swap-row { display: flex; align-items: center; gap: 10px; }
.ct-swap-row::before, .ct-swap-row::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.ct-swap { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--field); color: var(--text); font: 600 12px var(--font); cursor: pointer; }
.ct-swap:hover { border-color: #5c5c64; }
.ct-swap svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Aperçu et simulation de la vision */
.ct-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-preview { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 236px; padding: 24px 26px; border-radius: 12px; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .2s, color .2s; }
.ct-preview h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.ct-preview p { margin: 0; font-size: 15px; }
.ct-preview .ct-small { font-size: 12px; }
.ct-ui { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.ct-btn { padding: 7px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 700; }
.ct-outline { padding: 6px 14px; border: 2px solid var(--fg); border-radius: 8px; font-weight: 700; }
.ct-ui svg { width: 26px; height: 26px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-vision { display: flex; flex-direction: column; gap: 6px; }
.ct-vision .seg { display: flex; }
.ct-vision .seg button { flex: 1 1 auto; padding: 0 8px; white-space: nowrap; }
.ct-vision-note { font-size: 12px; }

/* Score */
.ct-score-head { display: flex; align-items: center; gap: 14px; }
.ct-score-ratio { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ct-score-ratio small { color: var(--muted); font-size: 18px; font-weight: 700; }
.ct-score-head div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-score-level { align-self: flex-start; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.ct-score-text { color: var(--muted); font-size: 12px; }
.ct-score[data-level="aaa"] .ct-score-level { background: rgba(67, 209, 138, .18); color: #7fe0ae; }
.ct-score[data-level="aa"] .ct-score-level { background: rgba(58, 162, 253, .18); color: #8ec2ff; }
.ct-score[data-level="large"] .ct-score-level { background: rgba(254, 206, 61, .18); color: #ffd27a; }
.ct-score[data-level="fail"] .ct-score-level { background: rgba(255, 99, 120, .18); color: #ff98a5; }
.ct-scale { position: relative; height: 8px; margin: 4px 0 16px; border-radius: 99px; background: linear-gradient(90deg, #d8475a 0 36%, #e0a92e 36% 49.4%, #3a8ee8 49.4% 63.9%, #2fb57a 63.9%); }
.ct-scale span { position: absolute; top: 12px; color: var(--muted); font: 600 10.5px var(--mono); transform: translateX(-50%); }
.ct-scale-marker { position: absolute; top: 50%; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transform: translate(-50%, -50%); transition: left .25s ease-out; }
.ct-checks { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ct-checks thead th { padding: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-align: center; }
.ct-checks tbody th { padding: 7px 0; border-top: 1px solid var(--line); font-weight: 600; text-align: left; }
.ct-checks tbody th small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.ct-checks td { width: 64px; padding: 7px 0 7px 6px; border-top: 1px solid var(--line); text-align: center; }
.ct-pass { display: inline-block; min-width: 54px; padding: 3px 0; border-radius: 6px; font: 700 11.5px var(--mono); }
.ct-pass.is-ok { background: rgba(67, 209, 138, .14); color: #7fe0ae; }
.ct-pass.is-ko { background: rgba(255, 99, 120, .12); color: #ff98a5; }
.ct-pass.is-na { color: #5c5c64; }
.ct-apca { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: var(--field); font-size: 12px; }
.ct-apca b { font: 800 14px var(--mono); white-space: nowrap; }
.ct-apca span { color: var(--muted); }
.ct-apca em { color: var(--text); font-style: normal; font-weight: 700; }
.ct-fix { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.ct-fix:empty { display: none; }
.ct-fix p { margin: 0; color: var(--muted); }
.ct-fixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ct-fix-btn { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--text); text-align: left; cursor: pointer; }
.ct-fix-btn:hover { border-color: #5c5c64; }
.ct-fix-aa { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 7px; background: var(--bg); color: var(--fg); font-size: 16px; font-weight: 800; }
.ct-fix-btn b { display: block; font: 700 12px var(--mono); }
.ct-fix-btn small { color: var(--muted); font-size: 11px; }
.ct-fix .btn { align-self: flex-start; }

/* Meilleur texte pour chaque fond */
/* Une seule rangée : autant de colonnes que de fonds, sans case vide. */
.ct-best { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 8px; }
.ct-best-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); text-align: left; cursor: pointer; }
.ct-best-card:hover { border-color: #5c5c64; }
.ct-best-card.is-current { border-color: #fff; }
.ct-best-sample { display: grid; place-items: center; height: 64px; background: var(--bg); color: var(--fg); font-size: 26px; font-weight: 800; }
.ct-best-meta { display: flex; flex-direction: column; padding: 7px 10px 8px; }
.ct-best-meta b { font: 700 12.5px var(--mono); }
.ct-best-meta small { overflow: hidden; color: var(--muted); font: 10.5px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.ct-best-card.is-aaa .ct-best-meta b { color: #7fe0ae; }
.ct-best-card.is-aa .ct-best-meta b { color: #8ec2ff; }
.ct-best-card.is-large .ct-best-meta b { color: #ffd27a; }
.ct-best-card.is-fail .ct-best-meta b { color: #ff98a5; }

/* Matrice */
.ct-filter { margin-left: auto; }
.ct-legend { display: flex; gap: 8px; font-size: 11.5px; }
.ct-legend span { padding: 2px 8px; border-radius: 99px; }
.ct-legend .is-aaa { background: rgba(67, 209, 138, .2); }
.ct-legend .is-aa { background: rgba(58, 162, 253, .2); }
.ct-legend .is-large { background: rgba(254, 206, 61, .2); }
.ct-legend .is-fail { background: rgba(255, 255, 255, .06); }
.ct-matrix { overflow-x: auto; }
.ct-matrix table { border-collapse: separate; border-spacing: 4px; }
.ct-matrix th { padding: 4px 6px; color: var(--muted); font: 600 11px var(--mono); white-space: nowrap; }
.ct-matrix th i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; background: var(--c); vertical-align: -1px; }
.ct-corner { text-align: left; }
.ct-cell { min-width: 62px; height: 52px; padding: 0; border-radius: 8px; background: var(--bg); color: var(--fg); text-align: center; cursor: pointer; transition: opacity .15s; }
.ct-cell span { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
.ct-cell small { display: inline-block; margin-top: 2px; padding: 0 5px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 10px var(--mono); }
.ct-cell.is-aaa small { background: #158a55; }
.ct-cell.is-aa small { background: #1f6fd1; }
.ct-cell.is-large small { background: #a37800; }
.ct-cell.is-fail { opacity: .45; }
.ct-cell.is-dim { opacity: .12; }
.ct-cell.is-current { outline: 2px solid #fff; outline-offset: 1px; opacity: 1; }
.ct-cell:hover { outline: 2px solid #fff; opacity: 1; }
.ct-same { color: var(--muted); text-align: center; }

/* ================= Variations ================= */

.va-groups { display: flex; flex-direction: column; gap: 22px; }
.va-group { display: flex; flex-direction: column; gap: 10px; }
.va-group h3 { margin: 0; color: var(--muted); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.va-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.va-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.va-strip { display: flex; height: 76px; }
.va-strip i { display: flex; flex: 1 1 0; align-items: flex-end; justify-content: center; min-width: 0; padding-bottom: 6px; background: var(--c); color: var(--on); font-style: normal; }
.va-strip i span { overflow: hidden; font: 700 10px var(--mono); opacity: 0; transition: opacity .15s; }
.va-card:hover .va-strip i span { opacity: .9; }
/* Palette d'origine, en fine bande sous la variation, pour comparer. */
.va-before { display: flex; height: 7px; }
.va-before i { flex: 1 1 0; background: var(--c); }
.va-card-body { display: flex; align-items: center; gap: 4px; padding: 9px 8px 9px 12px; }
.va-card-title { display: flex; flex: 1; flex-direction: column; min-width: 0; margin-right: 4px; }
.va-card-title b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.va-card-title small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.va-card .lib-icon svg { fill: none; }
.va-card .lib-icon.is-on svg, .va-grad .lib-icon.is-on svg { fill: #fd6d61; stroke: #fd6d61; }
.va-grad-section { margin-top: 6px; }
.va-angle-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.va-angle { width: 140px; }
.va-angle-out { min-width: 38px; color: var(--text); font: 12px var(--mono); }
.va-grads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.va-grad { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.va-grad-preview { height: 132px; }
.va-grad-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 11px 12px 0; }
.va-grad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.va-grad-head b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.va-stops { display: flex; flex: none; }
.va-stops i { width: 14px; height: 14px; margin-left: -4px; border: 2px solid var(--panel); border-radius: 50%; background: var(--c); }
.va-grad-body code { display: -webkit-box; overflow: hidden; padding: 7px 9px; border-radius: 7px; background: var(--field); color: #b9b9c2; font: 11px/1.5 var(--code); word-break: break-all; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.va-grad-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 9px 10px 10px; }

/* ================= Collage ================= */

.cl-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.cl-side { display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cl-field { display: flex; flex-direction: column; gap: 6px; }
.cl-field > span { color: var(--muted); font-size: 12px; }
.cl-field .seg { flex-wrap: wrap; }
.cl-field .btn { align-self: flex-start; }
.cl-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cl-thumb, .cl-add { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--field); }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 10px; cursor: pointer; }
.cl-add { display: grid; place-items: center; border: 1.5px dashed #4a4a52; color: var(--muted); font-size: 22px; cursor: pointer; }
.cl-add:hover { border-color: var(--accent); color: #fff; }
.cl-library { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cl-library p { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.cl-lib-item { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: var(--field); cursor: pointer; }
.cl-lib-item img { width: 100%; height: 100%; object-fit: contain; }
.cl-stage { display: grid; place-items: center; min-height: 300px; padding: 16px; border-radius: 12px; background: repeating-conic-gradient(#232327 0 25%, #1d1d20 0 50%) 0 0 / 20px 20px; }
.cl-canvas { display: block; max-width: 100%; max-height: 70vh; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* ================= Nuanciers ================= */

.sw-tw { display: flex; flex-direction: column; gap: 6px; }
.sw-tw-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; }
.sw-tw-name { color: #c9c9d2; font: 600 12px var(--mono); }
.sw-tw-cells { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.sw-tw-cells .sw { gap: 2px; }
.sw-tw-cells .sw-color { height: 40px; }
.sw-tw-cells .sw-meta small { display: none; }
.sw-tw-cells .sw-meta b { color: var(--muted); font: 600 10.5px var(--mono); text-align: center; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.sw { display: flex; flex-direction: column; gap: 5px; cursor: copy; }
.sw-color { position: relative; display: block; height: 64px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .15s; }
.sw:hover .sw-color { transform: scale(1.04); }
.sw-act { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.sw:hover .sw-act { opacity: 1; }
.sw-act button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.sw-act button:hover { background: rgba(0, 0, 0, .85); }
.sw-act svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw-meta { display: flex; flex-direction: column; min-width: 0; }
.sw-meta b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sw-meta small { color: var(--muted); font: 11px var(--mono); }
.sw-note { font-size: 12px; }
/* Navigation par catégories de nuanciers */
.sw-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.sw-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; }
.sw-nav-group { display: flex; flex-direction: column; gap: 2px; }
.sw-nav-group > span { margin: 0 0 4px 10px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sw-nav button { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 0; border-radius: 7px; background: none; color: #c9c9d2; font: 13px var(--font); text-align: left; cursor: pointer; }
.sw-nav button b { font-weight: 500; }
.sw-nav button small { color: #6f6f78; font-size: 11px; white-space: nowrap; }
.sw-nav button:hover { background: #303034; color: var(--text); }
.sw-nav button[aria-current="true"] { background: #3a3a40; color: #fff; }
.sw-nav button[aria-current="true"] b { font-weight: 700; }
.sw-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sw-main-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sw-title { margin: 0; font-size: 17px; font-weight: 800; }
.sw-desc { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.sw-search { width: 240px; }
.sw-none { margin: 0; }
.sw-grid-mat { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.sw-table-wrap { overflow-x: auto; }

/* Nuanciers importés (Pantone, fabricants…) */
.sw-import { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px dashed #4a4a52; border-radius: 12px; background: var(--panel); }
.sw-import-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sw-import-text b { font-size: 13.5px; }
.sw-import-text p { margin: 0; color: var(--muted); font-size: 12.5px; }
.sw-import-text .sw-import-msg { color: #ff98a5; font-weight: 600; }
.sw-import-links a { color: #8ec2ff; }
.sw-grid-decor { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sw-scheme .sw-tw-cells .sw-color { height: 34px; }
.sw-import-links a:hover { color: #fff; }
.sw-import .btn { flex: none; }
.sw-book { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sw-book-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sw-book-name { flex: 0 1 320px; min-width: 0; padding: 4px 6px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text); font: 700 14px var(--font); }
.sw-book-name:hover, .sw-book-name:focus { border-color: var(--line); background: var(--field); outline: none; }
.sw-book-head .btn { margin-left: auto; }
.sw-grid-book { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.sw-grid-book .sw { content-visibility: auto; contain-intrinsic-size: auto 92px; }
.sw-more { align-self: center; }

/* NCS : convertisseur, cercle des teintes et triangle noirceur / chromaticité */
.sw-ncs { display: flex; flex-direction: column; gap: 16px; }
.sw-ncs-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.sw-ncs-input-wrap { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.sw-ncs-input { width: 200px; font: 700 13px var(--mono); text-transform: uppercase; }
.sw-ncs-result { flex: 1; min-width: 240px; font-size: 12.5px; }
.sw-ncs-hues { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.sw-ncs-hue { height: 26px; padding: 0; border: 0; border-radius: 6px; background: var(--c); cursor: pointer; }
.sw-ncs-hue.is-on { box-shadow: 0 0 0 2px var(--app), 0 0 0 4px #fff; }
.sw-ncs-page h3 { margin: 0 0 8px; font-size: 14px; }
.sw-ncs-grid { border-collapse: separate; border-spacing: 4px; }
.sw-ncs-grid th { padding: 0 4px; color: var(--muted); font: 600 11px var(--mono); }
.sw-ncs-grid td { padding: 0; }
.sw-ncs-cell { display: flex; align-items: flex-end; width: 66px; height: 44px; padding: 4px 6px; border: 0; border-radius: 7px; background: var(--c); color: var(--on); font: 600 10.5px var(--mono); cursor: copy; }
.sw-ncs-cell:hover { outline: 2px solid #fff; }
.sw-ncs-axes { margin: 6px 0 0; font-size: 11.5px; }

.sw-ral { display: flex; flex-direction: column; gap: 22px; }
.sw-ral-group { display: flex; flex-direction: column; gap: 10px; }
.sw-ral-group h3 { display: flex; align-items: baseline; gap: 10px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.sw-ral-group h3 span { color: var(--muted); font: 600 11.5px var(--mono); }
.sw-ral-group h3 small { margin-left: auto; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.sw-grid-ral { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
.sw-grid-ral .sw-color { height: 52px; }
.sw-grid-ral .sw-meta small { overflow: hidden; font: 11.5px var(--font); text-overflow: ellipsis; white-space: nowrap; }
.vw code { padding: 1px 5px; border-radius: 4px; background: var(--field); font: 11.5px var(--code); }
.sw-table { width: 100%; border-collapse: collapse; }
.sw-table th { padding: 8px 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.sw-table td { padding: 6px 10px; border-top: 1px solid var(--line); }
.sw-match { display: flex; align-items: center; gap: 10px; cursor: copy; }
.sw-match i { flex: none; width: 34px; height: 34px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sw-match span { display: flex; flex-direction: column; min-width: 0; }
.sw-match b { font-size: 12.5px; }
.sw-match small { color: var(--muted); font: 11px var(--mono); }


/* ================= Profil ================= */

.pf-body { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pf-card { position: sticky; top: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }

/* Bandeau : la palette en bandes franches, avec le code de chaque ton. */
.pf-cover { display: flex; height: 112px; }
.pf-cover i { position: relative; flex: 1 1 0; min-width: 0; background: var(--c); }
.pf-cover span { position: absolute; top: 10px; left: 8px; overflow: hidden; max-width: calc(100% - 12px); color: var(--on); font: 600 10px/1 var(--code); opacity: .8; white-space: nowrap; }
.pf-cover.is-dense span { display: none; }

.pf-id { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -42px; padding: 0 18px; }
.pf-avatar { display: block; flex: none; width: var(--size); height: var(--size); overflow: hidden; border: 4px solid var(--panel); border-radius: 50%; background: var(--av); }
.pf-avatar svg, .pf-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-badge { margin-bottom: 4px; padding: 4px 10px; border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); border-radius: 999px; background: color-mix(in oklab, var(--accent) 14%, transparent); color: #a9c8ff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pf-badge.is-admin { border-color: color-mix(in oklab, #733efc 70%, transparent); background: color-mix(in oklab, #733efc 18%, transparent); color: #c7b4ff; }
.pf-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 18px 0; }
.pf-names h3 { overflow: hidden; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.pf-names span { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.pf-bio { margin: 12px 18px 0; color: #d6d6dd; font-size: 13.5px; line-height: 1.5; }
.pf-add { display: block; width: calc(100% - 36px); margin: 14px 18px 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: none; color: var(--muted); font: 12.5px var(--font); text-align: left; cursor: pointer; }
.pf-add:hover { border-color: #5c5c64; color: var(--text); }
.pf-site { display: inline-flex; align-items: center; gap: 6px; margin: 8px 18px 0; color: #8ec2ff; font-size: 13px; }
.pf-site svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pf-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; text-align: center; }
.pf-stats div + div { border-left: 1px solid var(--line); }
.pf-stats b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-stats span { color: var(--muted); font-size: 11px; }

.pf-showcase { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 18px; }
.pf-showcase-head { display: flex; align-items: baseline; justify-content: space-between; }
.pf-showcase h4 { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pf-showcase-head span { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pf-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-slot { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pf-slot .vw-strip { height: 44px; }
.pf-slot span { overflow: hidden; color: #c9c9d2; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pf-slot.is-empty { align-self: start; align-items: center; justify-content: center; height: 44px; padding: 0; border: 1px dashed var(--line); border-radius: 8px; background: none; color: #6f6f78; cursor: pointer; }
.pf-slot.is-empty:hover { border-color: #5c5c64; color: var(--text); }
.pf-slot-plus { color: inherit; font-size: 18px; font-weight: 400; line-height: 1; }

.pf-card.is-private .pf-showcase, .pf-card.is-private .pf-site { opacity: .3; filter: grayscale(1); pointer-events: none; }
.pf-private { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #1c1c1f; text-align: center; }
.pf-private svg { width: 22px; height: 22px; fill: none; stroke: #fece3d; stroke-width: 1.8; stroke-linecap: round; }
.pf-private span { color: var(--muted); font-size: 12px; }
.pf-forms { display: flex; flex-direction: column; gap: 14px; }
.pf-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.pf-box.is-flash { animation: pf-flash 1.6s ease-out; }
.pf-tf-badge { padding: 1px 8px; border-radius: 99px; background: #3a3a40; color: var(--muted); font-size: 11px; font-weight: 700; }
.pf-tf-badge.is-on { background: rgba(67, 209, 138, .18); color: #7fe0ae; }
.pf-tf-body { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.pf-tf-body p { margin: 0; }
.pf-tf-setup { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 18px; align-items: start; }
.pf-tf-qr { display: grid; place-items: center; width: 172px; height: 172px; overflow: hidden; border-radius: 10px; background: #fff; }
.pf-tf-qr svg { display: block; width: 100%; height: 100%; }
.pf-tf-steps { display: flex; flex-direction: column; gap: 10px; }
.pf-tf-key { padding: 2px 6px; border-radius: 5px; background: var(--field); color: var(--text); font: 600 12px var(--code); letter-spacing: .04em; }
.pf-tf-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-tf-form .vw-input { width: 200px; }
.pf-tf-code { font: 700 15px var(--code); letter-spacing: .15em; }
.pf-tf-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-tf-list li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); text-align: center; }
.pf-tf-list code { font: 600 12.5px var(--code); letter-spacing: .05em; }
@keyframes pf-flash {
  0%, 35% { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent); }
  100% { border-color: var(--line); box-shadow: 0 0 0 3px transparent; }
}
.pf-box h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 14px; }
.pf-box h3 .muted { font-size: 12px; font-weight: 400; }
.pf-box > p { margin: 0; font-size: 12.5px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-row { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.pf-row b { color: var(--text); font-size: 13px; font-weight: 600; }
.pf-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-account .pf-msg, .pf-row-full { grid-column: 1 / -1; }
.pf-row-full .btn { align-self: flex-start; }
.pf-bio-input { height: auto; padding: 8px 10px; resize: vertical; font: 13px/1.5 var(--font); }
.pf-msg { margin: 0; font-size: 12px; font-weight: 600; }
.pf-msg:empty { display: none; }
.pf-msg.is-ok { color: #6be3a5; }
.pf-msg.is-error { color: #ff8b9a; }
.pf-avatar-row { display: flex; align-items: center; gap: 18px; }
.pf-avatar-big .pf-avatar { border-color: var(--field); }
.pf-avatar-tools { display: flex; flex-direction: column; gap: 10px; }
.pf-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-color { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; }
.pf-color.is-on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #fff; }
.pf-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pf-pick-item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 30px auto; gap: 4px 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pf-pick-item input { grid-row: span 2; accent-color: var(--accent); }
.pf-pick-item .vw-strip { height: 30px; }
.pf-pick-name { overflow: hidden; color: #c9c9d2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pf-actions { margin-top: 4px; }

@media (max-width: 1100px) {
  .ct-top { grid-template-columns: 1fr 1fr; }
  .ct-score { grid-column: 1 / -1; }
  .ct-best { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .va-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-layout { grid-template-columns: minmax(0, 1fr); }
  .ds-layout { grid-template-columns: minmax(0, 1fr); }
  .ds-panel { position: static; max-height: none; }
  .sw-nav { position: static; flex-flow: row wrap; }
  .sw-grid-mat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sw-grid-decor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .va-grads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-body, .cl-body { grid-template-columns: 1fr; }
  .pf-card { position: static; }
}

/* ================= Visite guidée (lecture seule) ================= */

.is-tour, .is-tour * { user-select: none; }
.tour-shield { position: fixed; inset: 0; z-index: 899; cursor: default; }

.tour-spot {
  position: fixed;
  z-index: 900;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax rgba(8, 8, 10, .62);
  pointer-events: none;
  transition: left .35s, top .35s, width .35s, height .35s;
}
.tour-spot.is-full { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; border: 0; }
.tour-card {
  position: fixed;
  z-index: 901;
  width: 340px;
  padding: 16px 18px;
  border: 1px solid #2a2a30;
  border-radius: 12px;
  background: #0e0e11;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  transition: left .35s, top .35s;
}
.tour-meta { display: flex; align-items: center; gap: 10px; color: #9a9aa6; font-size: 12px; font-weight: 600; }
.tour-progress { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: #26262c; }
.tour-progress i { display: block; height: 100%; background: #fff; transition: width .3s; }
.tour-card h2 { margin: 10px 0 6px; font-size: 17px; font-weight: 800; }
.tour-card p { margin: 0; color: #c4c4cc; font-size: 13px; line-height: 1.5; }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.tour-actions .btn:disabled { opacity: .4; }
.tour-next, .tour-signup { border-color: #fff; background: #fff; color: #0e0e11; font-weight: 700; }
.tour-next:hover, .tour-signup:hover { background: #e4e4ea; }
.tour-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  z-index: 902;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 14px;
  border: 1px solid #2a2a30;
  border-radius: 10px;
  background: #0e0e11;
  color: #c4c4cc;
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}
.tour-bar b { color: #fff; }
.tour-bar .btn, a.btn { text-decoration: none; }
