/* MangaNew — Сторінки команд (engine/modules/mgteam): каталог, сторінка команди, редактор, модерація,
   картка під розділом (.tm-card), команди в «Перекладачах» (.tm-chip). --tm — колір команди, --tm-ink — контрастний текст. */
.tm-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* логотип: картинка або перша літера на кольорі команди */
.tm-logo { --tm: #2fa8e0; --tm-ink: #fff; position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--tm); color: var(--tm-ink); box-shadow: 0 0 0 1px var(--line); }
.tm-logo img { width: 100%; height: 100%; object-fit: cover; }
.tm-logo b { font-family: var(--font-head); font-size: 24px; line-height: 1; }
.tm-logo--xs { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.tm-logo--xs b { font-size: 12px; }
.tm-logo--xl { width: 96px; height: 96px; border-radius: 22px; }
.tm-logo--xl b { font-size: 40px; }
.tm-logo--hero { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--tm), 0 20px 40px -18px var(--tm); }
.tm-logo--hero b { font-size: 54px; }

.tm-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 800; line-height: 18px; white-space: nowrap; vertical-align: middle; }
.tm-badge--wait { background: var(--warn-soft); color: var(--warn); }
.tm-badge--no { background: rgba(229, 72, 77, .14); color: var(--danger); }

/* посилання: пігулки / іконки */
.tm-links { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: var(--radius-btn); border: 2px solid var(--line-strong); background: transparent; color: var(--text); font-size: 12px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.tm-link .tm-i { width: 15px; height: 15px; }
.tm-link:hover { border-color: var(--frame-soft); color: var(--text); }
.tm-link--icon { width: 32px; height: 32px; padding: 0; justify-content: center; }
.tm-support { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-btn); background: var(--tm, var(--accent)); color: var(--tm-ink, #fff); font-size: 13px; font-weight: 800; white-space: nowrap; transition: filter .15s ease, transform .15s ease; }
.tm-support:hover { color: var(--tm-ink, #fff); filter: brightness(1.08); transform: translateY(-1px); }
.tm-support .tm-i { width: 16px; height: 16px; }

/* картка під розділом */
.tm-cards { display: grid; gap: 10px; margin: 6px 0 4px; }
.tm-card { --tm: #2fa8e0; --tm-ink: #fff; position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; overflow: hidden; text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tm) 18%, var(--surface)) 0%, var(--surface) 62%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tm) 30%, transparent); }
.tm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tm); }
.tm-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tm-card__kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tm-card__name { font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--text); }
a.tm-card__name:hover { color: var(--tm); }
.tm-card__descr { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tm-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }

/* «Перекладачі» на сторінці тайтлу */
.tm-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.tm-chip { --tm: #2fa8e0; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 4px; border-radius: 999px; background: color-mix(in srgb, var(--tm) 14%, var(--surface-2)); color: var(--text); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tm) 30%, transparent); transition: box-shadow .15s ease; }
.tm-chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--tm); }

/* ═══ Сторінки модуля ═══ */
.tm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.tm-head .sec-title { margin: 0 0 6px; }
.tm-head .sec-title small { margin-left: 6px; color: var(--muted); font-size: 16px; }
.tm-head__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tm-head__side .btn, .tm-head__side .btn .tm-i { display: inline-flex; align-items: center; gap: 8px; }
.tm-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tm-kicker a { color: var(--muted); }
.tm-kicker a:hover { color: var(--accent); }
.tm-lead { max-width: 68ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tm-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: rgba(63, 179, 127, .14); color: var(--text); font-size: 14px; box-shadow: inset 3px 0 0 var(--ok); }
.tm-flash--err { background: rgba(229, 72, 77, .12); box-shadow: inset 3px 0 0 var(--danger); }
.tm-gate { padding: 40px 24px; border-radius: 16px; background: var(--surface); text-align: center; }
.tm-gate b { display: block; font-size: 18px; margin-bottom: 6px; }
.tm-gate p { max-width: 52ch; margin: 0 auto 14px; color: var(--muted); }
.tm-muted { color: var(--muted); }
.tm-sec { margin-top: 30px; }
.tm-sec .sec-title--sm { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.tm-sec .sec-title--sm small { padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 22px; }

/* каталог */
.tm-find { position: relative; display: block; width: min(100%, 360px); margin-bottom: 16px; }
.tm-find .tm-i { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.tm-find input { width: 100%; height: 42px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.tm-find input:focus { outline: none; border-color: var(--accent); }
.tm-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tm-dcard { --tm: #2fa8e0; display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 2px solid var(--frame-soft); border-radius: 10px; background: var(--surface); color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tm-dcard[hidden] { display: none; }
.tm-dcard:hover { color: var(--text); transform: translate(-2px, -2px); border-color: var(--frame); box-shadow: 5px 5px 0 var(--tm); }
.tm-dcard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-dcard__body b { font-family: var(--font-head); font-size: 16px; }
.tm-dcard__body small { color: var(--muted); font-size: 12px; font-weight: 600; }
.tm-dcard__descr { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tm-nofind { color: var(--muted); }

/* сторінка команди */
.tm-hero { --tm: #2fa8e0; position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 28px; align-items: start; padding: 28px; border-radius: 22px; overflow: hidden; background: var(--surface); }
.tm-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tm) 30%, transparent) 0%, transparent 55%), radial-gradient(circle, rgba(127, 127, 127, .18) 1.2px, transparent 1.6px) 0 0 / 9px 9px; -webkit-mask-image: linear-gradient(#000, #000); }
.tm-hero__info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-hero__name { margin: 0; font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); line-height: 1.1; overflow-wrap: anywhere; }
.tm-hero__alias { margin: -2px 0 0; color: var(--muted); font-size: 13px; }
.tm-hero__descr { max-width: 70ch; color: var(--text); font-size: 15px; line-height: 1.6; }
.tm-links--hero { margin-top: 4px; }
.tm-hero__side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 210px; }
.tm-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tm-nums > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--tm) 10%, var(--surface-2)); }
.tm-nums b { font-family: var(--font-head); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tm-nums span { color: var(--muted); font-size: 11px; font-weight: 700; }
.tm-mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; width: 100%; transition: background-color .15s ease, color .15s ease; }
.tm-mini .tm-i { width: 15px; height: 15px; }
.tm-mini:hover { background: var(--accent-soft); color: var(--accent); }
.tm-mini--danger:hover { background: rgba(229, 72, 77, .14); color: var(--danger); }
.tm-hero__side form { margin: 0; }

.tm-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 12px; }
.tm-title { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.tm-title__cover { display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.tm-title__cover img { width: 100%; height: 100%; object-fit: cover; }
.tm-title:hover .tm-title__cover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent); }
.tm-title__name { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-title:hover .tm-title__name { color: var(--accent); }
.tm-recent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.tm-recent li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface); }
.tm-recent a { display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.tm-recent a b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-recent a span, .tm-recent time { color: var(--muted); font-size: 12px; }
.tm-recent a:hover b { color: var(--accent); }
.tm-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tm-people a { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); color: var(--text); }
.tm-people a:hover { color: var(--accent); }
.tm-people img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.tm-people small { color: var(--muted); font-size: 11px; font-weight: 700; }

/* редактор */
.tm-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tm-form { display: flex; flex-direction: column; gap: 16px; }
.tm-fs { margin: 0; padding: 18px; border: 0; border-radius: 16px; background: var(--surface); }
.tm-fs legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-family: var(--font-head); font-size: 16px; font-weight: 800; }
.tm-fs .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tm-fs .field__label small { color: var(--muted); font-weight: 500; }
.tm-fs input[type="text"], .tm-fs input[type="url"], .tm-fs textarea, .tm-add input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }
.tm-fs textarea { min-height: 100px; resize: vertical; }
.tm-fs input:focus, .tm-fs textarea:focus, .tm-add input:focus { outline: none; border-color: var(--accent); }
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.tm-look { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tm-logo-edit { display: flex; gap: 14px; align-items: center; }
.tm-file { position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.tm-file:hover { background: var(--accent-soft); color: var(--accent); }
.tm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tm-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; cursor: pointer; }
.tm-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tm-swatch { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; transition: box-shadow .15s ease; }
.tm-swatch:hover, .tm-swatch.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.tm-swatch--sm { display: inline-block; width: 14px; height: 14px; vertical-align: middle; cursor: default; }
.tm-colors input[type="color"] { width: 40px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.tm-submit { display: flex; gap: 8px; }
.tm-preview { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; }
.tm-members { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tm-member { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.tm-member img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.tm-member a { color: var(--text); flex: 1; min-width: 0; }
.tm-member__acts { display: flex; gap: 6px; }
.tm-member__acts form { margin: 0; }
.tm-member__acts .tm-mini { width: auto; }
.tm-add { display: flex; gap: 8px; max-width: 520px; }
.tm-add .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tm-danger { padding: 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .35); }
.tm-danger p { color: var(--muted); font-size: 14px; }
.tm-btn--danger:hover { background: var(--danger); color: #fff; }

/* модерація */
.tm-mod { margin-bottom: 14px; padding: 18px; border-radius: 16px; background: var(--surface); }
.tm-mod__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tm-mod__head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tm-mod__head b { font-family: var(--font-head); font-size: 17px; }
.tm-mod__head small { color: var(--muted); font-size: 12px; }
.tm-mod__head .tm-mini { width: auto; }
.tm-mod__all { display: grid; gap: 8px; margin: 0 0 14px; }
.tm-mod__all > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.tm-mod__all dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.tm-mod__all dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.tm-diff { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.tm-diff th, .tm-diff td { padding: 9px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.tm-diff thead th { color: var(--muted); font-size: 12px; border-top: 0; }
.tm-diff tbody th { width: 120px; color: var(--muted); font-size: 13px; }
.tm-diff__new { background: rgba(63, 179, 127, .08); }
.tm-mod__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tm-mod__warn { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--warn, #e3a33b) 14%, var(--surface)); box-shadow: inset 3px 0 0 var(--warn, #e3a33b); font-size: 13.5px; line-height: 1.5; }
.tm-mod__acts form { margin: 0; }
.tm-mod__reject { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.tm-mod__reject input { flex: 1; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }

@media (max-width: 960px) {
  .tm-edit { grid-template-columns: minmax(0, 1fr); }
  .tm-preview { position: static; order: -1; }
  .tm-hero { grid-template-columns: auto minmax(0, 1fr); }
  .tm-hero__side { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tm-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; }
  .tm-logo--hero { width: 96px; height: 96px; border-radius: 22px; }
  .tm-grid, .tm-look { grid-template-columns: minmax(0, 1fr); }
  .tm-mod__all > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tm-shelf { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .tm-card { padding: 14px; gap: 12px; }
  .tm-card .tm-logo { width: 48px; height: 48px; border-radius: 12px; }
  .tm-add { flex-direction: column; }
  .tm-member { flex-wrap: wrap; }
}

/* профіль → налаштування: замість старого «Інформаційного блоку» */
.pf-team[hidden] { display: none !important; }
.pf-teamnote p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pf-teamnote__acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* «Мої релізи» → Команди */
.rel-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.rel-team { --tm: #2fa8e0; display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 3px 0 0 var(--tm), inset 0 0 0 1px var(--line); }
.rel-team__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.rel-team form { margin: 0; }
.rel-team .rel-warn { margin: 0; font-size: 13px; font-weight: 600; }

/* профіль → «Релізи»: команди людини */
.pf-rel__teams { display: grid; gap: 10px; }
a.pf-rel__team { --tm: #2fa8e0; display: flex; gap: 14px; align-items: flex-start; color: var(--text); box-shadow: inset 3px 0 0 var(--tm); transition: box-shadow .15s ease, transform .15s ease; }
a.pf-rel__team:hover { color: var(--text); transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--tm), inset 0 0 0 1px var(--tm); }
a.pf-rel__team small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
a.pf-rel__team .tm-logo img { width: 100%; height: 100%; border-radius: 0; }

/* у кінці розділу (.rd-end центрує дітей) — картки на всю ширину блоку, текст переноситься */
.tm-cards { width: 100%; min-width: 0; }
.tm-cards > .tm-card { min-width: 0; }
.tm-card__descr { overflow-wrap: anywhere; }
.rd-end .tm-card__foot .tm-links { flex-wrap: wrap; }

/* редактор: заголовок групи плаває (щоб стояв усередині картки), решта — під ним на всю ширину */
.tm-fs > :not(legend) { clear: both; }

/* ═══ Запрошення, релізи команди, картки команд у профілі ═══ */
.tm-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(245, 165, 36, .12); box-shadow: inset 3px 0 0 var(--warn); }
.tm-invite > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-invite span { color: var(--muted); font-size: 13px; }
.tm-invite form { display: flex; gap: 8px; margin: 0; }
.tm-member.is-invited { opacity: .85; box-shadow: inset 0 0 0 1px rgba(245, 165, 36, .35); }

.tm-rel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.tm-rel__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--surface); color: var(--text); transition: background-color .15s ease, transform .15s ease; }
.tm-rel__item:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.tm-rel__cover { display: block; width: 44px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.tm-rel__cover img { width: 100%; height: 100%; object-fit: cover; }
.tm-rel__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-rel__body b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-rel__item:hover .tm-rel__body b { color: var(--accent); }
.tm-rel__ch { color: var(--muted); font-size: 12px; font-weight: 600; }
.tm-rel__date { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* профіль → «Релізи»: команди людини картками */
.pf-rel__top { grid-template-columns: minmax(0, 1fr) auto; }
.pf-rel__teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
a.pf-tcard { --tm: #2fa8e0; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--frame-soft); border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tm) 20%, var(--surface)) 0%, var(--surface) 65%); }
a.pf-tcard:hover { color: var(--text); transform: translate(-2px, -2px); border-color: var(--frame); box-shadow: 5px 5px 0 var(--tm); }
a.pf-tcard .tm-logo { width: 52px; height: 52px; border-radius: 14px; }
.pf-tcard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-tcard__body b { font-family: var(--font-head); font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-tcard__body small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pf-tcard__role { color: var(--tm); font-weight: 800; }
.pf-tcard__body p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-tcard__go { color: var(--tm); font-size: 18px; font-weight: 800; transition: transform .15s ease; }
a.pf-tcard:hover .pf-tcard__go { transform: translateX(3px); }
@media (max-width: 900px) { .pf-rel__top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tm-rel { grid-template-columns: minmax(0, 1fr); } }

/* ═══ Картка команди в кінці розділу (v2): банер у кольорі команди, логотип поверх, кнопки ═══ */
.tm-card--v2 { display: block; padding: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tm) 28%, var(--line)); }
.tm-card--v2::before { content: none; }
.tm-card__banner { height: 64px; background:
  radial-gradient(circle at 18% 120%, color-mix(in srgb, var(--tm) 70%, transparent) 0, transparent 55%),
  radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--tm) 55%, #fff 0%) 0, transparent 50%),
  linear-gradient(120deg, color-mix(in srgb, var(--tm) 75%, #000) 0%, color-mix(in srgb, var(--tm) 40%, var(--surface)) 100%); position: relative; }
.tm-card__banner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 12px 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.tm-card__main { display: flex; align-items: flex-end; gap: 14px; padding: 0 18px; margin-top: -30px; position: relative; }
.tm-card--v2 .tm-logo { flex: none; width: 72px; height: 72px; border-radius: 18px; font-size: 28px; box-shadow: 0 0 0 4px var(--surface), 0 8px 18px -8px rgba(0, 0, 0, .6); }
.tm-card--v2 .tm-card__body { gap: 2px; padding-bottom: 2px; }
.tm-card--v2 .tm-card__kicker { font-size: 10px; }
.tm-card--v2 .tm-card__name { font-size: 19px; }
.tm-card__meta { color: var(--muted); font-size: 12px; font-weight: 600; }
.tm-card__go { flex: none; align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.tm-card__go .tm-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tm-card__go:hover { background: color-mix(in srgb, var(--tm) 22%, var(--surface-2)); color: var(--text); }
.tm-card--v2 .tm-card__descr { margin: 12px 18px 0; font-size: 13.5px; }
.tm-card--v2 .tm-card__foot { margin: 0; padding: 12px 18px 16px; }
.tm-card--v2 > .tm-card__main:last-child { padding-bottom: 16px; }
.tm-card--v2 > .tm-card__descr:last-child { margin-bottom: 16px; }
.tm-card--v2 .tm-support { background: var(--tm); color: var(--tm-ink); box-shadow: 0 8px 18px -10px var(--tm); }
.tm-card--v2 .tm-support:hover { color: var(--tm-ink); filter: brightness(1.08); }
@media (max-width: 560px) {
  .tm-card__main { flex-wrap: wrap; padding: 0 14px; }
  .tm-card--v2 .tm-logo { width: 60px; height: 60px; border-radius: 15px; }
  .tm-card--v2 .tm-card__body { flex: 1 1 calc(100% - 80px); }
  .tm-card__go { order: 3; flex: 1 1 100%; justify-content: center; margin-top: 10px; }
  .tm-card--v2 .tm-card__descr { margin: 10px 14px 0; }
  .tm-card--v2 .tm-card__foot { padding: 12px 14px 14px; }
  .tm-card--v2 .tm-support { flex: 1 1 100%; justify-content: center; }
}
.tm-card--v2 .tm-card__body { padding-top: 36px; }

/* ═══════════════ Команди — v3 у «манґа-мові» сайту: чорнильні рамки, зміщені тіні, нахилені плашки, віяло обкладинок ═══════════════ */

/* наліпка з числом: «113 тайтлів» */
.tmd-tag { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.tmd-tag b { color: var(--text); font-family: var(--font-head); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ── Каталог: шапка ── */
.tmd-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 28px; align-items: end; margin-bottom: 20px; padding: 24px 0 6px; }
.tmd-hero__text .sec-title { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 4px; background: var(--frame); color: var(--bg); font-size: 22px; transform: skewX(-6deg); box-shadow: 4px 4px 0 var(--accent); }
.tmd-hero__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tmd-hero__acts .btn { display: inline-flex; align-items: center; gap: 8px; }
.tmd-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--frame-soft); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 5px 5px 0 var(--frame-shade); }
.tmd-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.tmd-stat + .tmd-stat { border-left: 2px solid var(--frame-soft); }
.tmd-stat .tm-i { width: 16px; height: 16px; margin-bottom: 4px; color: var(--accent); }
.tmd-stat b { font-family: var(--font-head); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.tmd-stat span { color: var(--muted); font-size: 12px; line-height: 1.25; }

/* ── Каталог: картки-«кадри» ── */
.tmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px 20px; }
.tmd-card { --tm: #2fa8e0; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border: 2px solid var(--frame-soft); border-radius: 12px; background: var(--surface); color: var(--text);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--tm) 55%, var(--frame-shade)); transition: transform .16s ease, box-shadow .16s ease; }
.tmd-card[hidden] { display: none; }
.tmd-card:hover { color: var(--text); transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--tm); }
.tmd-card::before { content: ""; position: absolute; inset: 0; border-radius: 10px; pointer-events: none; opacity: .5;
  background: radial-gradient(color-mix(in srgb, var(--tm) 35%, transparent) 1px, transparent 1.5px) 0 0 / 9px 9px; -webkit-mask-image: linear-gradient(225deg, #000, transparent 45%); mask-image: linear-gradient(225deg, #000, transparent 45%); }
.tmd-card__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; min-height: 96px; }
.tmd-card .tmd-card__logo { width: 64px; height: 64px; border-radius: 12px; font-size: 26px; border: 2px solid var(--frame-soft); box-shadow: 3px 3px 0 var(--tm); }
.tmd-fan { position: relative; width: 120px; height: 96px; }
.tmd-fan__c { position: absolute; top: 0; right: calc(var(--i) * 26px); width: 62px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; border: 2px solid var(--frame-soft); background: var(--surface-2);
  transform: rotate(calc(var(--i) * -7deg + 4deg)); transform-origin: bottom center; box-shadow: 2px 3px 0 var(--frame-shade); transition: transform .2s ease; z-index: calc(3 - var(--i)); }
.tmd-fan__c img { width: 100%; height: 100%; object-fit: cover; }
.tmd-card:hover .tmd-fan__c { transform: rotate(calc(var(--i) * -11deg + 6deg)) translateY(-3px); }
.tmd-card__new { align-self: center; padding: 4px 10px; border-radius: 999px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tmd-card__name { align-self: flex-start; max-width: 100%; padding: 3px 10px; border-radius: 4px; background: var(--frame); color: var(--bg); font-family: var(--font-head); font-size: 17px; font-weight: 800; line-height: 1.25;
  transform: skewX(-6deg); box-shadow: 3px 3px 0 var(--tm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmd-card__descr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tmd-card__descr i { opacity: .7; }
.tmd-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tmd-card__date { margin-top: auto; color: var(--muted); font-size: 11.5px; }
@media (max-width: 760px) {
  .tmd-hero { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .tmd-stat { padding: 10px; } .tmd-stat b { font-size: 20px; }
  .tmd-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Сторінка команди: шапка-панель ── */
.tmp { --tm: #2fa8e0; position: relative; }
.tmp-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 24px; align-items: start; margin-top: 8px; padding: 24px; border: 2px solid var(--frame-soft); border-radius: 14px; overflow: hidden;
  background: linear-gradient(115deg, color-mix(in srgb, var(--tm) 14%, var(--surface)) 0%, var(--surface) 55%); box-shadow: 7px 7px 0 color-mix(in srgb, var(--tm) 50%, var(--frame-shade)); }
.tmp-hero.has-fan { grid-template-columns: auto minmax(0, 1fr) 230px; }
.tmp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(color-mix(in srgb, var(--tm) 40%, transparent) 1.2px, transparent 1.7px) 0 0 / 11px 11px; -webkit-mask-image: linear-gradient(250deg, #000 0, transparent 50%); mask-image: linear-gradient(250deg, #000 0, transparent 50%); opacity: .7; }
.tmp-hero > * { position: relative; }
.tmp-hero .tmp-hero__logo { width: 120px; height: 120px; border-radius: 18px; font-size: 48px; border: 3px solid var(--frame-soft); box-shadow: 5px 5px 0 var(--tm); }
.tmp-hero__info { min-width: 0; }
.tmp-hero__info .tm-kicker { margin: 0 0 8px; }
.tmp-hero__name { margin: 0; line-height: 1; }
.tmp-hero__name span { display: inline-block; max-width: 100%; padding: 6px 16px; border-radius: 5px; background: var(--frame); color: var(--bg); font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.15;
  transform: skewX(-6deg); box-shadow: 5px 5px 0 var(--tm); overflow-wrap: anywhere; }
.tmp-hero .tm-hero__alias { margin: 10px 0 0; }
.tmp-hero__descr { max-width: 68ch; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tmp-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tmp-hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tmp-hero__acts form { display: contents; }
.tmp-hero__acts .tm-support { background: var(--tm); color: var(--tm-ink); border: 2px solid var(--frame-soft); box-shadow: 3px 3px 0 var(--frame-shade); }
.tmp-hero__acts .tm-support:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--frame-shade); }
.tmp-fan { position: relative; align-self: center; height: 190px; }
.tmp-fan__c { position: absolute; top: 6px; right: calc(var(--i) * 52px); width: 112px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; border: 2px solid var(--frame-soft); background: var(--surface-2);
  transform: rotate(calc(var(--i) * -8deg + 5deg)); transform-origin: bottom center; box-shadow: 3px 4px 0 var(--frame-shade); transition: transform .2s ease; z-index: calc(3 - var(--i)); }
.tmp-fan__c img { width: 100%; height: 100%; object-fit: cover; }
.tmp-fan__c:hover { z-index: 5; transform: rotate(0) translateY(-6px) scale(1.04); }

/* ── Вкладки-наліпки ── */
.tmp-tabs { position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: nowrap; gap: 10px; margin: 22px 0 18px; padding: 8px 2px; background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.tmp-tab { flex: none; height: 38px; padding: 0 16px; border: 2px solid var(--frame-soft); border-radius: var(--radius-btn); background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, color .12s ease; }
.tmp-tab small { margin-left: 4px; color: inherit; opacity: .7; font-weight: 700; }
.tmp-tab:hover { color: var(--text); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--frame-shade); }
.tmp-tab.is-on { background: var(--frame); color: var(--bg); border-color: var(--frame); transform: skewX(-6deg); box-shadow: 4px 4px 0 var(--tm); }
html:not(.tmp-js) .tmp-tabs { display: none; }
.tmp-panel[hidden] { display: none; }
html:not(.tmp-js) .tmp-panel + .tmp-panel { margin-top: 26px; }

.tmp-h { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px; font-family: var(--font-head); font-size: 18px; }
.tmp-h:first-child { margin-top: 0; }
.tmp-h .tm-i { width: 18px; height: 18px; color: var(--tm); }
.tmp-h small { color: var(--muted); font-size: 14px; font-weight: 600; }
.tmp-h--sm { margin: 0 0 12px; font-size: 15px; }
.tmp-more { margin-left: auto; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tmp-none { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ── Огляд ── */
.tmp-ov { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
/* цифри — «стрічкою коміксу»: кадри в одній рамці */
.tmp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--frame-soft); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 5px 5px 0 var(--frame-shade); }
.tmp-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.tmp-tile + .tmp-tile { border-left: 2px solid var(--frame-soft); }
.tmp-tile .tm-i { width: 17px; height: 17px; margin-bottom: 6px; color: var(--tm); }
.tmp-tile b { font-family: var(--font-head); font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tmp-tile span { color: var(--muted); font-size: 12px; }

.tmp-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 18px; border: 2px solid var(--frame-soft); border-radius: 12px; background: var(--surface); box-shadow: 6px 6px 0 color-mix(in srgb, var(--tm) 45%, var(--frame-shade)); }
.tmp-top__cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; border: 2px solid var(--frame-soft); background: var(--surface-2); transform: rotate(-2deg); transition: transform .2s ease; }
.tmp-top__cover:hover { transform: rotate(0) scale(1.02); }
.tmp-top__cover img { width: 100%; height: 100%; object-fit: cover; }
.tmp-top__no { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 2px 8px; border-radius: 4px; background: var(--hot); color: var(--hot-ink); font-family: var(--font-head); font-size: 14px; font-weight: 800; transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--frame-shade); }
.tmp-top__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.tmp-top__name { font-family: var(--font-head); font-size: 21px; font-weight: 800; line-height: 1.2; color: var(--text); }
.tmp-top__name:hover { color: var(--tm); }
.tmp-top__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 13px; }
.tmp-top__rate { color: #f5b942; font-weight: 800; }
.tmp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tmp-chip { padding: 2px 9px; border-radius: 4px; border: 1.5px solid var(--frame-soft); font-size: 12px; font-weight: 700; }
.tmp-top__text { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.tmp-top__go { margin-top: auto; }

.tmp-ov__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 140px; }
.tmp-box { padding: 16px; border: 2px solid var(--frame-soft); border-radius: 12px; background: var(--surface); box-shadow: 5px 5px 0 var(--frame-shade); }
.tmp-links { display: flex; flex-direction: column; gap: 8px; }
.tmp-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1.5px solid var(--line-strong); border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 700; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.tmp-link:hover { color: var(--text); border-color: var(--frame-soft); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--tm); }
.tmp-link__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: color-mix(in srgb, var(--tm) 20%, transparent); color: var(--tm); }
.tmp-link__ico .tm-i { width: 15px; height: 15px; }
.tmp-link__go { margin-left: auto; color: var(--muted); }
.tmp-link--support { background: var(--tm); color: var(--tm-ink); border-color: var(--frame-soft); }
.tmp-link--support:hover { color: var(--tm-ink); }
.tmp-link--support .tmp-link__ico { background: rgba(255, 255, 255, .2); color: inherit; }
.tmp-link--support .tmp-link__go { color: inherit; }
.tmp-avas { display: flex; flex-wrap: wrap; gap: 8px; }
.tmp-ava img { display: block; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); border: 2px solid var(--frame-soft); transition: transform .15s ease, box-shadow .15s ease; }
.tmp-ava:hover img { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--tm); }

@media (max-width: 960px) {
  .tmp-hero.has-fan { grid-template-columns: auto minmax(0, 1fr); }
  .tmp-fan { display: none; }
  .tmp-ov { grid-template-columns: minmax(0, 1fr); }
  .tmp-ov__side { position: static; }
  .tmp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmp-tile:nth-child(3) { border-left: 0; }
  .tmp-tile:nth-child(n+3) { border-top: 2px solid var(--frame-soft); }
}
@media (max-width: 760px) {
  .tmp-hero, .tmp-hero.has-fan { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .tmp-hero .tmp-hero__logo { width: 84px; height: 84px; border-radius: 14px; font-size: 34px; }
  .tmp-tabs { top: 60px; gap: 8px; }
  .tmp-tab { padding: 0 12px; }
  .tmp-top { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .tmp-top__text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
}
/* релізи й тайтли на сторінці команди — у тих самих рамках */
.tmp .tm-rel__item { border: 2px solid var(--frame-soft); border-radius: 10px; background: var(--surface); transition: transform .12s ease, box-shadow .12s ease; }
.tmp .tm-rel__item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tm); }
.tmp .tm-title__cover { border: 2px solid var(--frame-soft); transition: transform .15s ease, box-shadow .15s ease; }
.tmp .tm-title:hover .tm-title__cover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--tm); }

/* ═══ v4: літерні аватари, бейджі на обкладинках, релізи за днями, «Поділитися», віяло на телефоні ═══ */
.tmp-letter { display: grid; place-items: center; background: var(--tm); color: var(--tm-ink); font-family: var(--font-head); font-weight: 800; }
.tmp-ava__img { display: block; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); border: 2px solid var(--frame-soft); font-size: 17px; transition: transform .15s ease, box-shadow .15s ease; }
.tmp-ava:hover .tmp-ava__img { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--tm); }
.tmp .tm-people a { border: 2px solid var(--frame-soft); border-radius: 10px; padding: 8px 14px 8px 8px; transition: transform .12s ease, box-shadow .12s ease; }
.tmp .tm-people a:hover { color: var(--text); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tm); }
.tm-people__img { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface-2); font-size: 16px; }
.tmp .tm-people small { display: block; }

.tm-title__cover { position: relative; }
.tm-title__ch { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 5px; background: rgba(10, 12, 16, .82); color: #fff; font-size: 11px; font-weight: 800; }
.tm-title__st { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 6px; border-radius: 5px; background: rgba(10, 12, 16, .82); color: #fff; font-size: 10.5px; font-weight: 800; }
.tm-title__st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; }
.tm-title__st.is-on::before { background: var(--ok); }
.tm-title__st.is-done::before { background: var(--accent); }
.tm-title__st.is-pause::before { background: #f5b942; }
.tm-title__st.is-off::before { background: var(--danger); }

.tmp .tm-rel { display: flex; flex-direction: column; gap: 8px; }
.tmp-day { margin: 8px 0 -2px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; list-style: none; }
.tmp-day:first-child { margin-top: 0; }
.tmp .tm-rel__ch i { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--tm) 22%, transparent); color: var(--tm); font-size: 10.5px; font-style: normal; font-weight: 800; }
.tm-rel__go { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 18px; }
.tm-rel__item:hover .tm-rel__go { color: var(--tm); }

.tmp-hero__upd { color: var(--muted); font-size: 12.5px; }
.tmp-share .tm-i { width: 15px; height: 15px; }

@media (max-width: 760px) {
  .tmp-hero.has-fan { grid-template-columns: minmax(0, 1fr); }
  .tmp-fan { display: block; position: absolute; top: 14px; right: 10px; width: 150px; height: 110px; }
  .tmp-fan__c { width: 64px; right: calc(var(--i) * 30px); top: 0; }
}
.tmp-hero__acts .tm-mini { width: auto; flex: none; margin: 0; }
.tmp-hero__acts .tmp-hero__upd { flex: none; }
.tmp-ava__img.tmp-letter, .tm-people__img.tmp-letter { display: grid; place-items: center; }
@media (max-width: 760px) { .tmp-hero__acts .tm-support { flex: 1 1 100%; } }
.tmp-ava__img.tmp-letter, .tm-people__img.tmp-letter { background: var(--tm); color: var(--tm-ink); }

/* ═══════════════ Сторінка команди — v5 «Стіна обкладинок» ═══════════════ */
.tmp--wall { margin-top: 4px; }
.tmw { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
/* мозаїка: 2 ряди обкладинок, повільно пливе вбік */
.tmw-wall { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tmw-wall--empty { background: radial-gradient(color-mix(in srgb, var(--tm) 45%, transparent) 1.2px, transparent 1.8px) 0 0 / 12px 12px, linear-gradient(120deg, color-mix(in srgb, var(--tm) 40%, var(--surface)), var(--surface)); }
.tmw-track { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 1fr); gap: 8px; height: 100%; width: max-content; padding: 8px; transform: rotate(-4deg) scale(1.15); transform-origin: center; animation: tmw-drift 60s linear infinite alternate; }
.tmw-cell { width: 128px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.tmw-cell img { width: 100%; height: 100%; object-fit: cover; }
@keyframes tmw-drift { from { translate: 0 0; } to { translate: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .tmw-track { animation: none; } }
.tmw::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 45%, color-mix(in srgb, var(--bg) 40%, transparent) 100%),
              linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, transparent 45%),
              radial-gradient(circle at 0 0, color-mix(in srgb, var(--tm) 30%, transparent), transparent 55%); }
.tmw-in { display: flex; align-items: flex-start; gap: 22px; padding: 34px 32px 26px; max-width: 860px; }
.tmw .tmw-logo { flex: none; width: 128px; height: 128px; border-radius: 28px; font-size: 52px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tm) 60%, transparent), 0 18px 40px -16px var(--tm); }
.tmw-info { min-width: 0; }
.tmw-info .tm-kicker { margin: 0 0 6px; }
.tmw-name { margin: 0; font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
[data-theme="light"] .tmw-name { text-shadow: none; }
.tmw-alias { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.tmw-descr { max-width: 62ch; margin-top: 12px; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--text) 85%, transparent); }
.tmw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.tmw-acts form { display: contents; }
.tmw-acts .tm-support { height: 40px; padding: 0 18px; border-radius: var(--radius-btn); background: var(--tm); color: var(--tm-ink); box-shadow: 0 10px 22px -12px var(--tm); }
.tmw-acts .tm-mini { width: auto; flex: none; height: 40px; padding: 0 16px; border-radius: var(--radius-btn); border: 2px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); }
.tmw-upd { color: var(--muted); font-size: 12.5px; }
.tmw-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); }
.tmw-nums div { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; }
.tmw-nums div + div { border-left: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.tmw-nums b { font-family: var(--font-head); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tmw-nums span { color: var(--muted); font-size: 12px; }

/* тіло: липке меню + потік розділів */
.tmb { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 26px; }
.tmb-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; }
.tmb-nav { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line); }
.tmb-nav__a { position: relative; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; transition: color .15s ease, background .15s ease; }
.tmb-nav__a small { margin-left: 4px; opacity: .7; }
.tmb-nav__a:hover { color: var(--text); background: var(--surface); }
.tmb-nav__a.is-on { color: var(--text); }
.tmb-nav__a.is-on::before { content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--tm); }
.tmb-cap { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tmb-links .tmp-link { border: 0; background: var(--surface); padding: 8px 10px; }
.tmb-links .tmp-link:hover { box-shadow: none; transform: none; background: color-mix(in srgb, var(--tm) 16%, var(--surface)); }
.tmb-links .tmp-link--support { background: var(--tm); color: var(--tm-ink); }
.tmb-main { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.tmb-sec { scroll-margin-top: 90px; }
.tmb-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.tmb-h small { color: var(--muted); font-size: 15px; font-weight: 600; }
/* найпопулярніший тайтл — без рамок, «журнальніше» */
.tmp--wall .tmp-top { border: 0; box-shadow: none; padding: 0; background: none; grid-template-columns: 180px minmax(0, 1fr); }
.tmp--wall .tmp-top__cover { border: 0; transform: none; border-radius: 12px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
.tmp--wall .tmp-chip { border: 0; background: var(--surface); }
/* тайтли: два ряди за замовчуванням */
.tmb-shelf { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.tmb-shelf:not(.is-all) > .tm-title:nth-child(n+13) { display: none; }
.tmb-all { margin-top: 14px; }
.tmp--wall .tm-title__cover { border: 0; }
.tmp--wall .tm-title:hover .tm-title__cover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--tm); }
/* релізи — стрічка часу */
.tmp-tl { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.tmp-tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--tm), color-mix(in srgb, var(--tm) 10%, transparent)); }
.tmp-tl .tmp-day { position: relative; margin: 10px 0 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
.tmp-tl .tmp-day:first-child { margin-top: 0; }
.tmp-tl .tmp-day::before { content: ""; position: absolute; left: -22px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--tm); }
.tmp-tl .tm-rel__item { border: 0; background: var(--surface); }
.tmp-tl .tm-rel__item:hover { transform: translateX(3px); box-shadow: none; background: color-mix(in srgb, var(--tm) 12%, var(--surface)); }
/* учасники */
.tmb-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tmp--wall .tm-people a { border: 0; border-radius: 12px; background: var(--surface); padding: 10px 12px; }
.tmp--wall .tm-people a:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--tm) 12%, var(--surface)); }
.tmp--wall .tm-people__img { width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.tmb-people span { display: flex; flex-direction: column; min-width: 0; }

@media (max-width: 960px) {
  .tmw-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tmw-nums div:nth-child(n+4) { border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
  .tmw-nums div:nth-child(4) { border-left: 0; }
  .tmb { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tmb-side { position: static; gap: 10px; margin: 0 -14px; padding: 8px 14px; }   /* на планшетах і телефонах меню не липне */
  .tmb-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 0 4px 5px 0; border-left: 0; gap: 6px; }
  .tmb-nav__a { flex: none; border: 2px solid var(--line-strong); border-radius: var(--radius-btn); padding: 5px 12px; }
  .tmb-nav__a.is-on { background: var(--frame); border-color: var(--frame); color: var(--bg); }
  .tmb-nav__a.is-on::before { content: none; }
  .tmb-links { display: none; }
}
@media (max-width: 760px) {
  .tmw-in { flex-direction: column; gap: 14px; padding: 22px 18px 18px; }
  .tmw .tmw-logo { width: 88px; height: 88px; border-radius: 20px; font-size: 36px; }
  .tmw-cell { width: 92px; }
  .tmw::after { background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 55%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); }
  .tmw-nums div { padding: 10px 12px; }
  .tmw-nums b { font-size: 18px; }
  .tmp--wall .tmp-top { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
}
.tmb-sec--links { display: none; }
@media (max-width: 960px) { .tmb-sec--links { display: block; } .tmb-sec--links .tmp-link { border: 0; background: var(--surface); } .tmb-sec--links .tmp-link--support { background: var(--tm); color: var(--tm-ink); } }

/* ═══════════════ Каталог команд — v6: стіна обкладинок, сортування, картки з колажем ═══════════════ */
.tdir-hero .tmw-name { font-size: clamp(30px, 4.6vw, 52px); }
.tdir-hero__in { max-width: 760px; padding-block: 40px 30px; }
.tdir-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tdir-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 18px; }
.tdir-find { flex: 1 1 280px; max-width: 420px; margin: 0; }
.tdir-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.tdir-sort__b { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: var(--radius-btn); border: 2px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.tdir-sort__b:hover { border-color: var(--frame-soft); color: var(--text); }
.tdir-sort__b.is-on, .tdir-sort__b.is-on:hover { background: var(--frame); border-color: var(--frame); color: var(--bg); }

.tdir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tdir-card { --tm: #2fa8e0; position: relative; display: flex; flex-direction: column; border: 2px solid var(--frame-soft); border-radius: 10px; overflow: hidden; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.tdir-card[hidden] { display: none; }
.tdir-card:hover { color: var(--text); transform: translate(-2px, -2px); border-color: var(--frame); box-shadow: 5px 5px 0 var(--tm); }
/* колаж: 3 обкладинки смугою, затемнення знизу в колір картки */
.tdir-card__art { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 118px; overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--tm) 55%, #000), color-mix(in srgb, var(--tm) 25%, var(--surface))); }
.tdir-card__c { overflow: hidden; }
.tdir-card__c img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .45s ease; }
.tdir-card:hover .tdir-card__c img { transform: scale(1.08); }
.tdir-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, var(--surface) 100%), linear-gradient(90deg, color-mix(in srgb, var(--tm) 28%, transparent), transparent 60%); }
.tdir-card__blank { grid-column: 1 / -1; background: radial-gradient(color-mix(in srgb, var(--tm) 45%, transparent) 1.2px, transparent 1.8px) 0 0 / 11px 11px; }
.tdir-card__head { position: relative; display: flex; align-items: flex-end; gap: 12px; margin: -36px 16px 0; }
.tdir-card .tdir-card__logo { flex: none; width: 68px; height: 68px; border-radius: 18px; font-size: 28px; box-shadow: 0 0 0 4px var(--surface), 0 10px 22px -12px var(--tm); }
.tdir-card__name { min-width: 0; padding-bottom: 4px; font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdir-card__descr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; margin: 10px 16px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tdir-card__descr i { opacity: .7; }
.tdir-card__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 16px 0; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tdir-card__nums span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px; color: var(--muted); font-size: 11px; text-align: center; }
.tdir-card__nums span + span { border-left: 1px solid var(--line); }
.tdir-card__nums b { color: var(--text); font-family: var(--font-head); font-size: 17px; font-variant-numeric: tabular-nums; }
.tdir-card__foot { display: flex; align-items: center; justify-content: space-between; margin: auto 16px 0; padding: 12px 0 14px; color: var(--muted); font-size: 12px; }
.tdir-card__go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 14px; transition: background .15s ease, color .15s ease, transform .15s ease; }
.tdir-card:hover .tdir-card__go { background: var(--tm); color: var(--tm-ink); transform: translateX(2px); }
.tdir-card.is-new .tdir-card__foot { font-style: italic; }
@media (max-width: 760px) {
  .tdir-hero__in { padding-block: 26px 20px; }
  .tdir-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdir-nums div:nth-child(3) { border-left: 0; }
  .tdir-nums div:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
  .tdir-sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding: 0 4px 5px 0; }
  .tdir-sort__b { flex: none; }
  .tdir-grid { grid-template-columns: minmax(0, 1fr); }
}

/* «Перекладачі»: імена без сторінки команди — теж чіпи (раніше йшли підряд через пробіл і зливалися: «Mirra KapiManga») */
.tm-chip--plain { --tm: var(--frame-soft); padding: 0 12px; background: var(--surface-2); font-weight: 600; }
.tm-chip--plain:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.mt-facts .tm-chips { display: flex; }

/* «Стежити за командою» */
.tm-follow { cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.tm-follow small { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-follow small:empty { display: none; }
.tm-follow.is-on { background: color-mix(in srgb, var(--tm, var(--accent)) 22%, var(--surface-2)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--tm, var(--accent)); }
.tm-follow.is-on svg { fill: currentColor; }
.tm-follow[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* «Стежити» на картці в списку команд і на картці команди під розділом */
.tdir-card__follow { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); font-size: 12px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); cursor: pointer; }
.tdir-card__follow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tdir-card__follow small { display: none; }
.tdir-card__follow:hover { background: var(--tm); color: var(--tm-ink, #fff); }
.tdir-card__follow.is-on { background: var(--tm); color: var(--tm-ink, #fff); }
.tdir-card__follow.is-on svg { fill: currentColor; }
.tdir-card__follow:focus-visible { outline: 2px solid var(--tm); outline-offset: 2px; }
.tm-card__follow { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-card__follow[hidden] { display: none; }
.tm-card__follow .tm-i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.tm-card__follow small { display: none; }
.tm-card__follow.is-on { background: color-mix(in srgb, var(--tm, var(--accent)) 22%, var(--surface-2)); box-shadow: inset 0 0 0 1.5px var(--tm, var(--accent)); }
.tm-card__follow.is-on .tm-i { fill: currentColor; }

/* Картка команди під розділом — компактна на телефоні */
@media (max-width: 560px) {
  .rd-end .tm-card--v2 { border-radius: 14px; }
  .rd-end .tm-card__banner { height: 38px; }
  .rd-end .tm-card__main { flex-wrap: nowrap; align-items: flex-end; gap: 10px; margin-top: -20px; padding: 0 12px; }
  .rd-end .tm-card--v2 .tm-logo { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; box-shadow: 0 0 0 3px var(--surface), 0 6px 14px -8px rgba(0, 0, 0, .6); }
  .rd-end .tm-card--v2 .tm-card__body { flex: 1 1 auto; min-width: 0; padding-top: 24px; }
  .rd-end .tm-card--v2 .tm-card__kicker { font-size: 9.5px; }
  .rd-end .tm-card--v2 .tm-card__name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rd-end .tm-card__meta { font-size: 11.5px; }
  /* «Сторінка команди» і «Стежити» — квадратні іконки праворуч від назви (підпис лишається для читачів екрана) */
  .rd-end .tm-card__go, .rd-end .tm-card__follow { order: 0; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; justify-content: center; gap: 0; font-size: 0; border-radius: 10px; }
  .rd-end .tm-card__go .tm-i, .rd-end .tm-card__follow .tm-i { width: 17px; height: 17px; }
  .rd-end .tm-card__follow[hidden] { display: none; }
  .rd-end .tm-card--v2 .tm-card__descr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 12px 0; font-size: 13px; line-height: 1.45; }
  .rd-end .tm-card--v2 .tm-card__foot { flex-wrap: nowrap; gap: 8px; padding: 10px 12px 12px; }
  .rd-end .tm-card__foot .tm-links { flex-wrap: nowrap; gap: 5px; }
  .rd-end .tm-card--v2 .tm-support { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 10px; }
  .rd-end .tm-card--v2 > .tm-card__main:last-child, .rd-end .tm-card--v2 > .tm-card__descr:last-child { padding-bottom: 0; margin-bottom: 12px; }
}

/* ═══ Спільний переклад (2+ команди під розділом): шапка з логотипами внахлест, картки компактніше ═══ */
.tm-joint { display: grid; gap: 10px; margin: 6px 0 4px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 70%); box-shadow: inset 0 0 0 1px var(--line); }
.tm-joint__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tm-joint__logos { display: flex; flex: none; padding-left: 10px; }
.tm-joint__logo { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; overflow: hidden; background: var(--tm); color: #fff; font-weight: 800; box-shadow: 0 0 0 3px var(--surface), 0 4px 10px -4px rgba(0, 0, 0, .5); transition: transform .15s ease; }
.tm-joint__logo:hover { transform: translateY(-3px); z-index: 1; }
.tm-joint__logo img { width: 100%; height: 100%; object-fit: cover; }
.tm-joint__txt { display: grid; gap: 2px; min-width: 0; }
.tm-joint__kicker { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tm-joint__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.tm-joint__names a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tm) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tm-joint__names a:hover { color: var(--tm); }
.tm-joint__names i { color: var(--muted); font-style: normal; font-weight: 400; }
.tm-cards--joint { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 0; }
.tm-cards--joint .tm-card__banner { height: 44px; }
.tm-cards--joint .tm-card__main { margin-top: -22px; padding: 0 14px; }
.tm-cards--joint .tm-card--v2 .tm-logo { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }
.tm-cards--joint .tm-card--v2 .tm-card__body { padding-top: 26px; min-width: 0; }
.tm-cards--joint .tm-card--v2 .tm-card__name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-cards--joint .tm-card__go { width: 36px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
.tm-cards--joint .tm-card__go .tm-i { width: 17px; height: 17px; }
.tm-cards--joint .tm-card--v2 .tm-card__descr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 14px 0; font-size: 13px; }
.tm-cards--joint .tm-card--v2 .tm-card__foot { padding: 10px 14px 14px; }
@media (max-width: 560px) {
  .tm-joint { padding: 10px; border-radius: 16px; }
  .tm-joint__logo { width: 36px; height: 36px; }
  .tm-joint__names { font-size: 14px; }
}
