/* =========================================================
   folders.css — vue « Dossiers » (#/dossiers, #/dossiers/<id>), peau V3. Préfixe propre : .tp-fd-
   Réutilise les composants partagés (app.css) : .tp-page, .tp-page-head, .tp-section, .tp-flist / .tp-frow,
   .tp-avstack, .tp-vgrid / .tp-vcard, .tp-filterbar, .tp-tag, .tp-empty, .tp-menu, .tp-swatches, .tp-ani.
   Ajouts V3 : bandeau d'usage du plan (.tp-fd-usage), squelette de chargement (.tp-fd-loading).
   ========================================================= */

/* ---------- List ---------- */
.tp-fd-flist { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.tp-fd-row { min-height: 68px; }
.tp-fd-row__dot { width: 14px; height: 14px; border-radius: 5px; transition: transform 260ms var(--tp-spring); }
.tp-fd-row:hover .tp-fd-row__dot { transform: scale(1.1); }
.tp-fd-row__names {
  overflow: hidden; color: var(--tp-text-subtle); font-size: 12px; line-height: 16px;
  text-overflow: ellipsis; white-space: nowrap;
}
.tp-fd-row:hover .tp-avstack > * { box-shadow: 0 0 0 2px var(--tp-surface-2); }

/* ---------- Plan usage (« 2/3 dossiers · 9/15 chaînes suivies ») ---------- */
.tp-fd-usage {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; flex-basis: 100%; min-width: 0;
  color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px;
}
.tp-fd-usage__item { --tp-us: var(--tp-accent); display: inline-flex; align-items: center; gap: 7px; }
.tp-fd-usage__item strong { color: var(--tp-text-strong); font-family: var(--tp-font); font-weight: 800; font-variant-numeric: tabular-nums; }
.tp-fd-usage__bar {
  position: relative; display: block; width: 56px; height: 8px; flex: none; overflow: hidden;
  border: 1px solid var(--tp-line); border-radius: 999px; background: var(--tp-bg-sunken);
}
.tp-fd-usage__bar > span {
  position: absolute; inset: 0; border-radius: inherit; background: var(--tp-us);
  transform: scaleX(var(--r, 0)); transform-origin: left center; animation: tp-fd-grow 600ms var(--tp-ease-out);
}
@keyframes tp-fd-grow { from { transform: scaleX(0); } }
.tp-fd-usage__item.is-warn { --tp-us: var(--tp-sun); color: var(--tp-sun-text); }
.tp-fd-usage__item.is-full { --tp-us: var(--tp-coral); color: var(--tp-coral-text); }
.tp-fd-usage__item.is-full strong { color: var(--tp-coral-text); }
.tp-fd-usage__pro { font-size: 12px; }
.tp-fd-usage__pro .tp-icon { width: 13px; height: 13px; color: var(--tp-sun); }
.tp-fd-usage.is-full .tp-fd-usage__pro { color: var(--tp-sun-text); }
.tp-fd-usage-slot:empty, .tp-fd-usage-slot[hidden] { display: none; }
.tp-fd-usage-slot .tp-fd-usage { flex-basis: auto; }

/* ---------- Breadcrumb ---------- */
.tp-fd-crumbs {
  display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 8px;
  color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px;
}
.tp-fd-crumbs a { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--tp-text-subtle); font-weight: 700; }
.tp-fd-crumbs a:hover { color: var(--tp-text-strong); }
.tp-fd-crumbs .tp-icon { width: 14px; height: 14px; }
.tp-fd-crumbs__cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Loading (account data not there yet) ---------- */
.tp-fd-loading__head { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 6px 0 26px; }
.tp-fd-loading__head .tp-skeleton--line:first-child { height: 26px; }

/* ---------- Header ---------- */
/* Headings focused after a navigation (tabindex=-1) need no ring: they are not tab stops. */
.tp-fd-list h1[tabindex="-1"]:focus, .tp-fd h1[tabindex="-1"]:focus, .tp-fd-missing h1:focus { outline: none; }

/* ---------- Chaînes suivies dans d'autres dossiers (fenêtre « Ajoute des chaînes », dossier vide) ---------- */
.tp-fd-others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.tp-fd-others[hidden] { display: none; }
.tp-fd-others__label { color: var(--tp-text-subtlest); font-size: 12px; line-height: 16px; }
.tp-fd-others__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tp-fd-other {
  display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 30px; padding: 0 9px 0 4px;
  border: 1px solid var(--tp-line); border-radius: 999px; background: var(--tp-surface-3); color: var(--tp-text); font-size: 12px; font-weight: 700;
  box-shadow: var(--tp-shadow-raised); transition: background-color var(--tp-dur) var(--tp-ease), transform 200ms var(--tp-spring);
}
.tp-fd-other:hover { background: var(--tp-surface-3-hover); color: var(--tp-text-strong); transform: translateY(-1px); }
.tp-fd-other:active { transform: translateY(1px); box-shadow: none; }
.tp-fd-other .tp-icon { width: 12px; height: 12px; flex: none; color: var(--tp-mint); }
.tp-fd-other__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Feed ---------- */
.tp-fd-count { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; color: var(--tp-text-subtle); font-size: 13px; }
.tp-fd-count strong { color: var(--tp-text-strong); font-family: var(--tp-font); font-weight: 800; font-variant-numeric: tabular-nums; }
.tp-fd-count .tp-spinner { width: 14px; height: 14px; }
.tp-fd-toolbar { margin-bottom: 16px; }
.tp-fd-issues {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 16px; padding: 8px 12px;
  border: 1px solid var(--tp-sun-edge); border-radius: var(--tp-radius); background: var(--tp-sun-bg); color: var(--tp-sun-text);
  animation: tp-pop-in 240ms var(--tp-spring);
}
.tp-fd-issues[hidden] { display: none; }
.tp-fd-issues > .tp-icon { flex: none; color: var(--tp-sun); }
.tp-fd-issues .tp-link { color: var(--tp-sun-text); text-decoration: underline; }
.tp-fd-pending { margin-top: 18px; }
.tp-fd-more { display: flex; justify-content: center; margin-top: 26px; }
.tp-fd-more__count { color: var(--tp-text-subtlest); font-family: var(--tp-font); font-weight: 400; }

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
  .tp-fd-usage { gap: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-fd-other:hover { transform: none; }
}

/* =========================================================
   Dossiers — maquettes choisies le 04/11/2026 (docs/maquettes-dossiers/) : liste = P3 (un vrai dossier 3D qui s'ouvre au
   survol) ; page d'un dossier = D1 (grand bandeau à la couleur du dossier, ce même dossier ouvert, puis les vidéos).
   DA du site (jetons --tp-*) ; seules couleurs propres : celles du dossier (--f1 / --f2 / --f3).
   ========================================================= */

/* ---------- Liste : en-tête ---------- */
.tp-fd-lhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 8px 0 24px; }
.tp-fd-lhead__text h1 { margin: 0; color: var(--tp-text-strong); font: 700 32px/40px var(--tp-font-display); }
.tp-fd-lhead__text h1:focus { outline: none; }
.tp-fd-lhead__text p { margin: 4px 0 0; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-fd-lhead__text .tp-fd-usage { margin-top: 8px; }
.tp-fd-lhead__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tp-fd-lhead__search { width: 280px; }
.tp-fd-nomatch { margin: 24px 0; color: var(--tp-text-subtle); text-align: center; }
.tp-fd-nomatch[hidden] { display: none; }
.tp-fd-list > .tp-ytattr { margin-top: 28px; }

/* ---------- Liste : dossier vide (étapes) ---------- */
.tp-fd-start { display: grid; justify-items: center; gap: 20px; max-width: 920px; margin: 24px auto 0; }
.tp-fd-start__title { margin: 0; color: var(--tp-text-strong); font: 700 20px/28px var(--tp-font-display); }
.tp-fd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.tp-fd-step { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--tp-radius); background: var(--tp-surface); text-align: left; }
.tp-fd-step__num { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--tp-surface-3); color: var(--tp-text-strong); }
.tp-fd-step__num .tp-icon { width: 20px; height: 20px; }
.tp-fd-step__text { display: grid; gap: 4px; min-width: 0; }
.tp-fd-step__text strong { color: var(--tp-text-strong); font-size: 16px; line-height: 22px; font-weight: 500; }
.tp-fd-step__text span { color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-fd-step.is-now .tp-fd-step__num { background: var(--tp-text-strong); color: var(--tp-bg); }
.tp-fd-step.is-done strong { color: var(--tp-text-subtle); }

/* ---------- Liste : cartes-dossiers (maquette P3, docs/maquettes-dossiers/P3-icone-3d.png) ----------
   Icône de dossier façon macOS, forme « A · Mac » (formes-dossier-A-B-C-D.png, 04/11/2026), 140 px de large dans une carte compacte (≈ 5 par
   rangée en 1920 ; « l'ensemble est beaucoup trop gros », 04/11/2026) : dos plus
   foncé + onglet arrondi (forme SVG en masque), rabat clair et droit de même largeur, le haut de 3 miniatures qui dépasse
   entre les deux, halo de la couleur du dossier dessous. Dossier vide : fermé (la feuille « + » attend sous le rabat).
   Couleurs : --f1 clair, --f2 franc, --f3 foncé (FOLDER_VIVID, folders.js) ; le rabat reste dans la couleur franche,
   jamais pastel. Survol : bordure + lueur de la couleur, rabat qui bascule (3D), miniatures qui jaillissent en éventail
   avec un petit rebond, trois traits « pop ». Le bandeau de la page d'un dossier reprend la même icône, en grand. */
.tp-fd-list .tp-fd-lhead__text h1 { font-size: 24px; line-height: 32px; }
.tp-fdc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tp-fdc-grid > li[hidden] { display: none; }
.tp-fdc-item { position: relative; display: grid; }
.tp-fdc {
  --f1: #82b8ff; --f2: #3b82f6; --f3: #1d4ed8;
  position: relative; display: grid; align-content: start; gap: 12px; padding: 14px 16px 16px; border-radius: 16px;
  background: linear-gradient(180deg, #191919 0%, #131313 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: inherit; text-decoration: none; isolation: isolate;
  transition: box-shadow 320ms ease, background 320ms ease;
}
.tp-fdc:hover, .tp-fdc:focus-visible {
  background: linear-gradient(180deg, color-mix(in srgb, var(--f2) 10%, #191919) 0%, #131313 70%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--f2) 85%, transparent), 0 0 0 3px color-mix(in srgb, var(--f2) 12%, transparent),
    0 16px 40px -16px color-mix(in srgb, var(--f2) 55%, transparent);
  text-decoration: none;
}
.tp-fdc:focus-visible { outline: none; }

/* Scène et icône */
.tp-fdc__stage { position: relative; display: block; height: 142px; }
.tp-fdc__glow {
  position: absolute; z-index: -1; left: calc(50% - 58px); width: 116px; bottom: 2px; height: 56px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--f2) 75%, transparent), transparent);
  filter: blur(16px); opacity: 0.5; transition: opacity 420ms ease, transform 420ms ease;
}
.tp-fdc:hover .tp-fdc__glow, .tp-fdc:focus-visible .tp-fdc__glow { opacity: 0.95; transform: scale(1.1); }
.tp-fdc__folder {
  position: absolute; left: calc(50% - 70px); width: 140px; bottom: 12px; aspect-ratio: 300 / 228; perspective: 900px;
  transition: transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tp-fdc:hover .tp-fdc__folder, .tp-fdc:focus-visible .tp-fdc__folder { transform: translateY(-2.5%); }
.tp-fdc__back {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--f1) 55%, var(--f2)) 0%, color-mix(in srgb, var(--f2) 55%, var(--f3)) 14%, var(--f3) 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 228' preserveAspectRatio='none'%3E%3Cpath d='M0 14C0 6.3 6.3 0 14 0H100C108 0 113 3 118 8L124 14C128 18 132 20 138 20H286C293.7 20 300 26.3 300 34V214C300 221.7 293.7 228 286 228H14C6.3 228 0 221.7 0 214Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 228' preserveAspectRatio='none'%3E%3Cpath d='M0 14C0 6.3 6.3 0 14 0H100C108 0 113 3 118 8L124 14C128 18 132 20 138 20H286C293.7 20 300 26.3 300 34V214C300 221.7 293.7 228 286 228H14C6.3 228 0 221.7 0 214Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.tp-fdc__papers { position: absolute; inset: 0; }
.tp-fdc__paper {
  position: absolute; left: 50%; bottom: 33%; width: 76%; aspect-ratio: 16 / 9;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Au repos, le haut des miniatures dépasse à peine : l'onglet reste visible */
.tp-fdc__paper--0 { z-index: 1; transform: translate(-50%, 0) translate(-7%, -2%) rotate(-3deg); }
.tp-fdc__paper--2 { z-index: 2; transform: translate(-50%, 0) translate(7%, -4%) rotate(3deg); }
.tp-fdc__paper--1 { z-index: 3; transform: translate(-50%, 0) rotate(-1deg); }
.tp-fdc__shot {
  display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 5px; background: #262626;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(0, 0, 0, 0.45);
}
.tp-fdc__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-fdc__shot.is-loading { animation: tp-fdc-pulse 1.4s ease-in-out infinite; }
@keyframes tp-fdc-pulse { 50% { background: #333333; } }
.tp-fdc__paper--add .tp-fdc__shot {
  display: grid; place-items: center; background: color-mix(in srgb, var(--f3) 55%, #111111); color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28), 0 8px 18px rgba(0, 0, 0, 0.4);
}
.tp-fdc__paper--add .tp-icon { width: 22px; height: 22px; }
.tp-fdc__paper--add { transform: translate(-50%, 46%) rotate(-1.5deg); } /* cachée sous le rabat au repos */
.tp-fdc__front {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 78%; border-radius: 7px 7px 10px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--f1) 80%, #ffffff) 0%, color-mix(in srgb, var(--f1) 70%, var(--f2)) 9%,
    color-mix(in srgb, var(--f1) 30%, var(--f2)) 45%, var(--f2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -10px 18px color-mix(in srgb, var(--f3) 22%, transparent),
    0 -2px 8px rgba(0, 0, 0, 0.22);
  transform-origin: 50% 100%;
  transition: transform 600ms cubic-bezier(0.34, 1.3, 0.64, 1), filter 600ms ease;
}
.tp-fdc__sparkle {
  position: absolute; z-index: 5; right: -4%; top: -14%; width: 13%; overflow: visible; fill: none; stroke: #ffffff;
  stroke-width: 3.2; stroke-linecap: round; opacity: 0; transform: scale(0.5); transform-origin: 20% 80%;
  transition: opacity 200ms ease, transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Ouvert (survol / focus clavier) */
.tp-fdc:hover .tp-fdc__front, .tp-fdc:focus-visible .tp-fdc__front { transform: rotateX(-28deg) rotateZ(-0.8deg); filter: brightness(1.06); }
.tp-fdc:hover .tp-fdc__paper--1, .tp-fdc:focus-visible .tp-fdc__paper--1 { transform: translate(-50%, -40%) rotate(-3deg) scale(1.04); transition-delay: 0ms; }
.tp-fdc:hover .tp-fdc__paper--0, .tp-fdc:focus-visible .tp-fdc__paper--0 { transform: translate(-50%, 0) translate(-33%, -22%) rotate(-14deg); transition-delay: 50ms; }
.tp-fdc:hover .tp-fdc__paper--2, .tp-fdc:focus-visible .tp-fdc__paper--2 { transform: translate(-50%, 0) translate(33%, -20%) rotate(12deg); transition-delay: 90ms; }
.tp-fdc:hover .tp-fdc__paper--add, .tp-fdc:focus-visible .tp-fdc__paper--add { transform: translate(-50%, -42%) rotate(-3deg) scale(1.05); }
.tp-fdc:hover .tp-fdc__sparkle, .tp-fdc:focus-visible .tp-fdc__sparkle { opacity: 1; transform: none; transition-delay: 160ms; }

/* Infos sous l'icône */
.tp-fdc__body { display: grid; gap: 8px; min-width: 0; }
.tp-fdc__name { overflow: hidden; color: #ffffff; font: 700 18px/24px var(--tp-font-display); text-overflow: ellipsis; white-space: nowrap; }
.tp-fdc__chans { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; }
.tp-fdc__stack .tp-avatar { width: 22px; height: 22px; font-size: 9px; box-shadow: 0 0 0 2px #161616; }
.tp-fdc__stats { display: grid; gap: 10px; }
.tp-fdc__stats.is-ready { animation: tp-fdc-in 280ms ease-out; }
@keyframes tp-fdc-in { from { opacity: 0; transform: translateY(4px); } }
.tp-fdc__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-fdc__chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 9px; border-radius: 13px; background: #262626;
  color: #f1f1f1; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tp-fdc__chip .tp-icon { width: 10px; height: 10px; fill: currentColor; stroke: currentColor; }
.tp-fdc__best {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.55); color: #fbbf24; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tp-fdc__row {
  display: flex; align-items: center; gap: 6px; min-width: 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px; line-height: 18px;
}
.tp-fdc__lbl { color: var(--tp-text-subtle); white-space: nowrap; }
.tp-fdc__val { color: #ffffff; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-fdc__pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-fdc__pct.is-up { color: #4ade80; }
.tp-fdc__pct.is-down { color: #f87171; }
.tp-fdc__trend { width: 72px; height: 22px; flex: none; margin-left: auto; overflow: visible; }
.tp-fdc__trend path { fill: none; stroke: #8a8a8a; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tp-fdc__trend circle { fill: #8a8a8a; }
.tp-fdc__trend.is-up path { stroke: #4ade80; filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.65)); }
.tp-fdc__trend.is-up circle { fill: #4ade80; }
.tp-fdc__trend.is-down path { stroke: #f87171; filter: drop-shadow(0 0 4px rgba(248, 113, 113, 0.6)); }
.tp-fdc__trend.is-down circle { fill: #f87171; }
.tp-fdc__sk { display: inline-block; width: 120px; height: 26px; border-radius: 13px; }
.tp-fdc__sk--short { width: 86px; }
.tp-fdc__sk--wide { width: 100%; height: 16px; border-radius: 6px; }
/* Menu ⋮ : coin haut droit de la carte (au survol ; toujours au doigt) */
.tp-fdc__menu { position: absolute; top: 6px; right: 6px; z-index: 6; width: 30px; height: 30px; opacity: 0; transition: opacity var(--tp-dur) var(--tp-ease); }
.tp-fdc-item:hover .tp-fdc__menu, .tp-fdc-item:focus-within .tp-fdc__menu, .tp-fdc__menu[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .tp-fdc__menu { opacity: 1; } }
@media (max-width: 760px) {
  .tp-fd-list .tp-fd-lhead__text h1 { font-size: 22px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-fdc__paper, .tp-fdc__front, .tp-fdc__folder, .tp-fdc__glow, .tp-fdc__sparkle { transition: none; }
  .tp-fdc:hover .tp-fdc__front, .tp-fdc:hover .tp-fdc__folder { transform: none; }
  .tp-fdc:hover .tp-fdc__paper--0 { transform: translate(-50%, 0) translate(-7%, -2%) rotate(-3deg); }
  .tp-fdc:hover .tp-fdc__paper--1 { transform: translate(-50%, 0) rotate(-1deg); }
  .tp-fdc:hover .tp-fdc__paper--2 { transform: translate(-50%, 0) translate(7%, -4%) rotate(3deg); }
  .tp-fdc__shot.is-loading, .tp-fdc__stats.is-ready { animation: none; }
}

/* ---------- Page d'un dossier : bandeau (maquette D1, docs/maquettes-dossiers/D1-hero.png) ----------
   Teinté de la couleur du dossier (--f1 / --f2 / --f3, posées par folders.js) : à gauche le dossier 3D des cartes de la
   liste (mêmes éléments .tp-fdc__*), fermé au départ puis ouvert (.is-open) quand ses vidéos sont là — le rabat bascule
   et les miniatures des 3 dernières vidéos jaillissent en éventail ; au centre le nom (clic = renommer), « N chaînes
   suivies · N nouvelles vidéos cette semaine » et les visages des chaînes ; à droite couleur / renommer / supprimer,
   puis « Gérer les chaînes » et « + Ajouter une chaîne ». */
.tp-fd-back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 14px; color: var(--tp-text-subtle); font-size: 14px; font-weight: 500; text-decoration: none; }
.tp-fd-back:hover { color: var(--tp-text-strong); text-decoration: none; }
.tp-fd-back .tp-icon { width: 18px; height: 18px; }
.tp-fdh {
  --f1: #82b8ff; --f2: #3b82f6; --f3: #1d4ed8;
  position: relative; display: grid; grid-template-columns: clamp(240px, 30%, 420px) minmax(0, 1fr) auto; align-items: center; gap: 20px 32px;
  min-height: 300px; margin-bottom: 28px; padding: 22px 32px 22px 40px; border-radius: 28px; isolation: isolate;
  background:
    radial-gradient(48% 95% at 17% 55%, color-mix(in srgb, var(--f2) 34%, transparent) 0%, transparent 72%),
    radial-gradient(50% 70% at 100% 0%, color-mix(in srgb, var(--f2) 9%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--f3) 9%, #1b1b1b) 0%, #121212 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f2) 30%, rgba(255, 255, 255, 0.06)),
    0 30px 70px -44px color-mix(in srgb, var(--f2) 70%, transparent);
}
/* Le dossier : bouton (couleur ; « + » = ajouter une chaîne quand il est vide) */
.tp-fdh__art { position: relative; display: block; width: 100%; margin: -6px auto -14px; padding: 0; border: 0; border-radius: 22px; background: none; cursor: pointer; }
.tp-fdh__art:focus-visible { outline: 2px solid var(--tp-text-strong); outline-offset: 2px; }
.tp-fdh__art .tp-fdc__stage { height: auto; aspect-ratio: 1.22; }
.tp-fdh__art .tp-fdc__folder { left: 11%; width: 78%; bottom: 3%; }
.tp-fdh__art .tp-fdc__glow { left: 12%; width: 76%; bottom: -2%; height: 48%; filter: blur(26px); opacity: 0.8; }
.tp-fdh__art .tp-fdc__shot { border-radius: 9px; }
.tp-fdh__art .tp-fdc__front { border-radius: 10px 10px 14px 14px; }
.tp-fdh__art .tp-fdc__paper--add .tp-icon { width: 30px; height: 30px; }
.tp-fdh__art.is-open .tp-fdc__front { transform: rotateX(-26deg) rotateZ(-0.6deg); filter: brightness(1.06); }
.tp-fdh__art.is-open .tp-fdc__folder { transform: translateY(-1.5%); }
.tp-fdh__art.is-open .tp-fdc__paper--1 { transform: translate(-50%, -56%) rotate(-2deg) scale(1.06); transition-delay: 40ms; }
.tp-fdh__art.is-open .tp-fdc__paper--0 { transform: translate(-50%, 0) translate(-33%, -30%) rotate(-12deg); transition-delay: 110ms; }
.tp-fdh__art.is-open .tp-fdc__paper--2 { transform: translate(-50%, 0) translate(33%, -28%) rotate(10deg); transition-delay: 160ms; }
.tp-fdh__art.is-open .tp-fdc__paper--add { transform: translate(-50%, -48%) rotate(-3deg) scale(1.05); }
.tp-fdh__art.is-open:hover .tp-fdc__paper--1 { transform: translate(-50%, -62%) rotate(-1deg) scale(1.08); transition-delay: 0ms; }
.tp-fdh__art.is-open:hover .tp-fdc__paper--0 { transform: translate(-50%, 0) translate(-37%, -34%) rotate(-14deg); transition-delay: 0ms; }
.tp-fdh__art.is-open:hover .tp-fdc__paper--2 { transform: translate(-50%, 0) translate(37%, -32%) rotate(12deg); transition-delay: 0ms; }
.tp-fdh__art.is-open:hover .tp-fdc__paper--add { transform: translate(-50%, -54%) rotate(-2deg) scale(1.08); }
.tp-fdh__art:hover .tp-fdc__glow { opacity: 1; transform: scale(1.08); }

/* Nom, chiffres, visages */
.tp-fdh__main { display: grid; align-content: center; justify-items: start; gap: 10px; min-width: 0; }
.tp-fdh h1.tp-fd-name {
  max-width: 100%; margin: 0 0 0 -8px; padding: 0 8px; overflow: hidden; border-radius: 14px; color: #ffffff;
  font: 800 clamp(38px, 4.4vw, 62px)/1.1 var(--tp-font-display); letter-spacing: -0.025em;
  text-overflow: ellipsis; white-space: nowrap; cursor: text; transition: background-color var(--tp-dur) var(--tp-ease);
}
.tp-fdh h1.tp-fd-name:hover { background: rgba(255, 255, 255, 0.06); }
.tp-fdh h1.tp-fd-name[hidden] { display: none; }
.tp-fdh .tp-fd-name-input { width: min(560px, 100%); min-height: 60px; padding: 4px 12px; border-radius: 14px; font: 800 38px/50px var(--tp-font-display); letter-spacing: -0.02em; }
.tp-fdh__meta { margin: 0; color: var(--tp-text-subtle); font-size: 18px; line-height: 26px; }
.tp-fdh__count { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.tp-fdh__count:hover { color: var(--tp-text-strong); text-decoration: underline; text-underline-offset: 4px; }
.tp-fdh__faces { display: inline-flex; margin: 8px 0 0 -4px; padding: 4px; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.tp-fdh__faces[hidden] { display: none; }
.tp-fdh__stack { display: flex; align-items: center; }
.tp-fdh__stack > * {
  width: 56px; height: 56px; flex: none; margin-left: -14px; border-radius: 50%; box-shadow: 0 0 0 3px #171717;
  transition: margin-left 280ms var(--tp-spring);
}
.tp-fdh__stack > :first-child { margin-left: 0; }
.tp-fdh__faces:hover .tp-fdh__stack > :not(:first-child) { margin-left: -4px; }
.tp-fdh__stack .tp-avatar { font-size: 18px; }
.tp-fdh__more { display: grid; place-items: center; background: #2b2b2b; color: #f1f1f1; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-fdh .tp-fd-usage-slot { margin-top: 4px; }

/* Actions : 3 boutons ronds en haut, les deux grands boutons en bas */
.tp-fdh__side { display: grid; justify-items: end; align-content: space-between; align-self: stretch; gap: 20px; padding: 6px 0; }
.tp-fdh__rounds { display: flex; gap: 10px; }
.tp-fdh__round {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: #f1f1f1; cursor: pointer;
  transition: background-color var(--tp-dur) var(--tp-ease), transform 200ms var(--tp-spring), color var(--tp-dur) var(--tp-ease);
}
.tp-fdh__round:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.tp-fdh__round[data-act="delete"]:hover { color: #f87171; }
.tp-fdh__round .tp-icon { width: 20px; height: 20px; }
.tp-fdh__swatch { display: grid; color: var(--f2); }
.tp-fdh__round .tp-fdh__swatch .tp-icon { width: 22px; height: 22px; fill: currentColor; stroke: color-mix(in srgb, var(--f1) 70%, #ffffff); stroke-width: 1.5; }
.tp-fdh__ctas { display: grid; gap: 12px; width: 236px; }
.tp-fd .tp-fdh .tp-fdh__ctas .tp-button { min-height: 48px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.tp-fd .tp-fdh .tp-fdh__ctas .tp-fdh__manage { --tp-btn-bg: transparent; --tp-btn-bg-hover: rgba(255, 255, 255, 0.08); --tp-btn-edge: rgba(255, 255, 255, 0.3); }
.tp-fdh__ctas .tp-button[hidden] { display: none; }

/* Dossier vide : cartes fantômes et invitation */
.tp-fd-empty { display: grid; margin-top: 4px; }
.tp-fd-empty[hidden], .tp-fd-feed[hidden] { display: none; }
.tp-fd-empty > * { grid-area: 1 / 1; }
.tp-fd-ghosts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; opacity: 0.55; pointer-events: none; }
.tp-fd-ghost { display: grid; gap: 10px; padding-bottom: 18px; overflow: hidden; border-radius: 16px; background: #151515; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.tp-fd-ghost__thumb { display: block; aspect-ratio: 16 / 9; background: #1e1e1e; }
.tp-fd-ghost__line { display: block; height: 12px; margin: 4px 16px 0; border-radius: 6px; background: #232323; }
.tp-fd-ghost__line--short { width: 55%; margin-top: 0; }
.tp-fd-ghost__meta { display: block; width: 40%; height: 10px; margin: 6px 16px 0; border-radius: 5px; background: #1c1c1c; }
.tp-fd-empty__card {
  position: relative; display: grid; justify-items: center; gap: 12px; place-self: center; width: min(540px, calc(100% - 32px));
  margin: 28px 0; padding: 30px 32px 28px; border-radius: 24px; background: rgba(17, 17, 17, 0.94); text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 80px -24px rgba(0, 0, 0, 0.9);
}
.tp-fd-empty__title { margin: 0; color: #ffffff; font: 700 22px/30px var(--tp-font-display); letter-spacing: -0.01em; }
.tp-fd-empty__text { margin: 0 0 6px; color: var(--tp-text-subtle); font-size: 15px; line-height: 22px; }
.tp-fd .tp-fd-empty__card .tp-button { min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.tp-fd-empty__others { display: grid; justify-items: center; gap: 10px; width: 100%; margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tp-fd-empty__others[hidden] { display: none; }
.tp-fd-empty__others .tp-fd-others__list { justify-content: center; }

/* Barre des vidéos (D1) : Vidéos | Shorts à gauche ; « Trier par : … » et « Filtres » à droite, en pilules */
.tp-fd-bar2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tp-fd-tabs { display: flex; gap: 10px; }
.tp-fd-tab {
  height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: #1c1c1c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #f1f1f1; font: 500 15px/44px var(--tp-font); cursor: pointer; transition: background-color var(--tp-dur) var(--tp-ease), color var(--tp-dur) var(--tp-ease);
}
.tp-fd-tab:hover { background: #272727; }
.tp-fd-tab[aria-pressed="true"] { background: #f1f1f1; box-shadow: none; color: #0f0f0f; }
.tp-fd-tab:focus-visible { outline: 2px solid var(--tp-text-strong); outline-offset: 2px; }
.tp-fd-toolbar { margin: 0; }
.tp-fd-toolbar .tp-filterbar { justify-content: flex-end; gap: 10px; }
.tp-fd-toolbar .tp-filterbar__tags { order: 0; }
.tp-fd-toolbar .tp-vfbar__sort {
  order: 1; position: relative; height: 44px; margin-left: 0; padding-left: 20px; border-radius: 999px; background: #1c1c1c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #f1f1f1; font-size: 15px; font-weight: 500;
}
.tp-fd-toolbar .tp-vfbar__sort:hover { background: #272727; }
.tp-fd-toolbar .tp-vfbar__sort label::after { content: "\00a0:"; }
.tp-fd .tp-fd-toolbar .tp-vfbar__sort .tp-select {
  min-width: 0; height: 44px; min-height: 44px; padding: 0 44px 0 6px; border: 0; border-radius: 0 999px 999px 0;
  background-color: transparent; background-position: right 16px center; color: #f1f1f1; font-size: 15px; font-weight: 600; box-shadow: none;
}
.tp-fd .tp-fd-toolbar .tp-vfbar__sort .tp-select:focus-visible { outline: 2px solid var(--tp-text-strong); outline-offset: 2px; }
.tp-fd .tp-fd-bar2 .tp-fd-toolbar .tp-button.tp-filterbar__btn { order: 2; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.tp-fd .tp-fd-bar2 .tp-fd-toolbar .tp-button.tp-filterbar__btn:not(.is-active) { --tp-btn-bg: #1c1c1c; --tp-btn-bg-hover: #272727; --tp-btn-edge: rgba(255, 255, 255, 0.1); }
.tp-fd-feedmeta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.tp-fd-feed > .tp-section__head { display: none; }

/* Fenêtre « Ajoute des chaînes à <dossier> » (04/11/2026 : « pas très ludique », même barre et même chargement qu'Analyse) :
   fond teinté de la couleur du dossier (--f1/--f2/--f3), petit dossier qui saute à chaque ajout, grand titre d'Analyse
   (2e ligne = nom du dossier dans sa couleur), barre en pilule et résultats de channelpicker.js (lignes grises qui
   pulsent pendant la recherche), pilule blanche « + Ajouter » -> « ✓ Ajoutée » ; puis les chaînes des autres dossiers
   (un clic) et les visages des chaînes du dossier (× au survol = retirer, le nouveau apparaît en rebondissant).
   Derrière elle, l'invitation du dossier vide s'efface (.is-managing). Téléphone : plein écran. */
html.tp-fd-locked { overflow: hidden; }
.tp-fd.is-managing .tp-fd-empty, .tp-fd.is-managing .tp-fdh__ctas, .tp-fd.is-managing .tp-fdc__paper--add { visibility: hidden; }
.tp-fd-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.tp-fd-modal[hidden] { display: none; }
.tp-fd-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 160ms ease; }
.tp-fd-modal.is-open .tp-fd-modal__backdrop { opacity: 1; }
.tp-fd-modal__box {
  position: relative; display: grid; gap: 18px; width: min(560px, 100%); max-height: min(720px, calc(100vh - 32px)); overflow: auto;
  padding: 22px 24px 24px; border-radius: 22px; background: var(--tp-surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0; transform: scale(0.97); transition: opacity 160ms ease, transform 160ms ease;
}
.tp-fd-modal.is-open .tp-fd-modal__box { opacity: 1; transform: none; }
.tp-fd-win {
  --f1: #82b8ff; --f2: #3b82f6; --f3: #1d4ed8;
  align-content: start; gap: 22px; width: min(680px, 100%); max-height: min(780px, calc(100vh - 32px)); padding: 28px 28px 30px;
  background:
    radial-gradient(70% 42% at 50% 0%, color-mix(in srgb, var(--f2) 22%, transparent) 0%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--f3) 8%, #1b1b1b) 0%, #141414 55%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f2) 26%, rgba(255, 255, 255, 0.06)), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.tp-fd-win__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.tp-fd-win .tp-sbhero { padding: 0; margin: 0; }
.tp-fd-win .tp-sbhero__title { margin-bottom: 20px; font-size: 34px; line-height: 40px; }
.tp-fd-win .tp-sbhero__accent { color: var(--f2); }
.tp-fd-win .tp-an-picker__results { margin-top: 10px; text-align: left; }
.tp-fd-win .tp-an-results { max-height: min(400px, calc(100vh - 400px)); }
/* While a search shows its results, the window is only about them (no second scroll bar). */
.tp-fd-win:has(.tp-an-picker__results:not([hidden])) .tp-fd-win__part { display: none; }
/* Le petit dossier (même forme que les cartes de la liste) */
.tp-fd-win__folder { position: relative; display: block; width: 84px; aspect-ratio: 300 / 228; margin: 0 auto 16px; perspective: 400px; isolation: isolate; }
.tp-fd-win__folder::after {
  content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -18%; height: 46%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--f2) 70%, transparent), transparent); filter: blur(12px); opacity: 0.6;
}
.tp-fd-win__folder.is-gulp { animation: tp-fd-gulp 650ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.tp-fd-win__folder.is-gulp .tp-fdc__front { animation: tp-fd-gulp-front 650ms ease; }
@keyframes tp-fd-gulp { 30% { transform: translateY(-10%) scale(1.14); } 62% { transform: scale(0.95); } }
@keyframes tp-fd-gulp-front { 35% { transform: rotateX(-38deg); } }
/* Résultats : pilule « + Ajouter », « ✓ Ajoutée » (vert, rebond), « ✓ Dans le dossier » (gris) */
.tp-fd-pick {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
  background: #f1f1f1; color: #0f0f0f; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color 120ms linear;
}
.tp-fd-pick .tp-icon { width: 15px; height: 15px; flex: none; }
.tp-an-result__btn:hover .tp-fd-pick:not(.is-added, .is-in) { background: #ffffff; }
.tp-fd-pick.is-in { background: rgba(255, 255, 255, 0.08); color: var(--tp-text-subtle); }
.tp-fd-pick.is-added { background: rgba(34, 197, 94, 0.16); color: #4ade80; animation: tp-fd-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.tp-an-result__btn[aria-disabled="true"] { cursor: default; }
/* Chaînes des autres dossiers, puis celles du dossier */
.tp-fd-win__part { display: grid; gap: 10px; }
.tp-fd-win__part[hidden] { display: none; }
.tp-fd-win__label { margin: 0; color: var(--tp-text-subtle); font-size: 13px; line-height: 18px; font-weight: 500; }
.tp-fd-win .tp-fd-other { height: 34px; padding-right: 12px; font-size: 13px; }
.tp-fd-win .tp-fd-other .tp-avatar { width: 26px; height: 26px; }
.tp-fd-win__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 16px 8px; margin: 0; padding: 0; list-style: none; }
.tp-fd-tile { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.tp-fd-tile .tp-avatar { width: 58px; height: 58px; font-size: 20px; box-shadow: 0 0 0 2px #141414, 0 0 0 4px color-mix(in srgb, var(--f2) 55%, transparent); }
.tp-fd-tile__name { max-width: 100%; overflow: hidden; color: var(--tp-text); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tp-fd-tile__rm {
  position: absolute; top: -6px; left: calc(50% + 16px); display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; background: #3a3a3a; color: #ffffff; box-shadow: 0 0 0 2px #141414; cursor: pointer;
  opacity: 0; transform: scale(0.8); transition: opacity 120ms linear, transform 160ms ease, background-color 120ms linear;
}
.tp-fd-tile__rm .tp-icon { width: 13px; height: 13px; }
.tp-fd-tile__rm:hover { background: #e5484d; }
.tp-fd-tile:hover .tp-fd-tile__rm, .tp-fd-tile__rm:focus-visible { opacity: 1; transform: none; }
.tp-fd-tile__rm:focus-visible { outline: 2px solid var(--tp-text-strong); outline-offset: 1px; }
@media (hover: none) { .tp-fd-tile__rm { opacity: 1; transform: none; } }
.tp-fd-tile.is-new { animation: tp-fd-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes tp-fd-pop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.08); } }
@media (max-width: 599px) {
  .tp-fd-modal:has(.tp-fd-win) { padding: 0; }
  .tp-fd-win { width: 100%; height: 100%; max-height: none; padding: 22px 16px 24px; border-radius: 0; }
  .tp-fd-win .tp-sbhero__title { margin-bottom: 16px; font-size: 26px; line-height: 32px; }
}

/* ---------- Carte vidéo du dossier (ui.js videoCardHTML layout « tracker ») : un bloc, miniature puis texte (D1) ---------- */
.tp-fd .tp-fd-grid .tp-vcard.tp-vcard--tracker {
  border-radius: 16px; background: #171717; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 220ms var(--tp-spring), box-shadow 200ms var(--tp-ease), background-color 200ms var(--tp-ease), opacity 160ms var(--tp-ease);
}
.tp-fd .tp-fd-grid .tp-vcard.tp-vcard--tracker:hover {
  background: #1c1c1c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px -26px rgba(0, 0, 0, 0.9); transform: translateY(-2px);
}
.tp-fd .tp-fd-grid .tp-vcard.tp-vcard--tracker.is-selected { box-shadow: inset 0 0 0 2px var(--tp-accent); }
.tp-fd .tp-fd-grid .tp-vcard.tp-vcard--tracker .tp-vcard__media { border-radius: 16px 16px 0 0; }
.tp-fd .tp-fd-grid .tp-vcard.tp-vcard--tracker .tp-vcard__body { padding: 14px 16px 16px; }
.tp-fd .tp-fd-grid .tp-vcard.tp-vcard--tracker .tp-vcard__menu { top: 8px; right: 4px; }
.tp-fd .tp-fd-grid.tp-vgrid--shorts .tp-vcard.tp-vcard--tracker .tp-vcard__body { padding: 12px 10px 14px 12px; }
.tp-vcard--tracker .tp-vcard__body { display: flex; align-items: flex-start; gap: 12px; padding-top: 12px; }
.tp-vcard--tracker .tp-vcard__meta { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tp-vcard--tracker .tp-vcard__title {
  display: -webkit-box; margin: 0 0 4px; min-height: 0; overflow: hidden; color: var(--tp-text-strong); font-size: 16px; line-height: 22px; font-weight: 500;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tp-vcard--tracker .tp-vcard__title a { display: inline; color: inherit; -webkit-line-clamp: unset; }
.tp-vcard--tracker .tp-vcard__badge { margin-right: 6px; vertical-align: 1px; }
.tp-vcard--tracker .tp-vcard__channel { overflow: hidden; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.tp-vcard--tracker a.tp-vcard__channel:hover { color: var(--tp-text-strong); }
.tp-vcard__dot { margin: 0 4px; }
.tp-vcard__stats { display: flex; flex-wrap: wrap; align-items: center; margin: 0; color: var(--tp-text-subtle); font-size: 14px; line-height: 20px; }
.tp-vcard__age { white-space: nowrap; }

@media (max-width: 1180px) {
  .tp-fdh { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); padding-right: 24px; }
  .tp-fdh__side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 4px; }
  .tp-fdh__ctas { display: flex; flex-wrap: wrap; width: auto; }
}
@media (max-width: 760px) {
  .tp-fd-lhead__tools, .tp-fd-lhead__search { width: 100%; }
  .tp-fd-lhead__tools .tp-button { flex: 1; justify-content: center; }
  .tp-fd-steps { grid-template-columns: minmax(0, 1fr); }
  .tp-fdh { grid-template-columns: minmax(0, 1fr); gap: 14px; min-height: 0; padding: 12px 16px 18px; border-radius: 22px; }
  .tp-fdh__art { max-width: 250px; margin: 0 auto -10px; }
  .tp-fdh h1.tp-fd-name { font-size: 34px; }
  .tp-fdh__meta { font-size: 16px; line-height: 22px; }
  .tp-fdh__stack > * { width: 44px; height: 44px; margin-left: -12px; }
  .tp-fdh__ctas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .tp-fdh__ctas .tp-button:only-child { grid-column: 1 / -1; }
  .tp-fd-ghosts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-fd-ghost:nth-child(n + 3) { display: none; }
  .tp-fd-empty__card { padding: 24px 20px; }
  .tp-fd-bar2 { align-items: stretch; }
  .tp-fd-toolbar { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-fd-modal__box, .tp-fd-modal__backdrop { transition: none; }
  .tp-fd-win__folder.is-gulp, .tp-fd-win__folder.is-gulp .tp-fdc__front, .tp-fd-pick.is-added, .tp-fd-tile.is-new { animation: none; }
  .tp-fdh__stack > *, .tp-fdh__round { transition: none; }
}
