/* /teams/ — mockups/pages/equipes */

/* Shared bits */
.tm-av { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border: 2px solid #15171c; border-radius: 50%; color: #1a1410; font: 700 .72rem/1 var(--font-body); font-style: normal; }
.tm-av--a { background: #f3b9a3; }
.tm-av--b { background: #b9d3f5; }
.tm-av--c { background: #f6d08a; }
.tm-av--d { background: #b8e3c4; }
.tm-avatars { display: inline-flex; }
.tm-avatars .tm-av + .tm-av { margin-left: -9px; }
.tm-avatars--sm .tm-av { width: 28px; height: 28px; font-size: .62rem; }
.tm-avatars--lg .tm-av { width: 44px; height: 44px; font-size: .8rem; }
.tm-add { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: #1b1e24; color: #ecebe8; }
.tm-card-head { display: flex; align-items: center; gap: 12px; margin: 0; color: #f2efea; font-size: 1.05rem; }
.tm-card-head svg { width: 22px; height: 22px; }
.tm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-btn { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: #1b1e24; color: #ecebe8; font: 600 .82rem/1 var(--font-body); white-space: nowrap; }
.tm-btn--coral { border-color: transparent; background: var(--coral); color: #1a0f0d; }
.tm-btn--ghost { background: transparent; }
.tm-spark-wrap { position: relative; }
.tm-spark { position: absolute; top: -30px; right: -22px; z-index: 3; display: block; width: 44px; height: 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23ff6e61' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M38 23 26 27M30 6l-9 13M11 4l3 15'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }

/* Hero */
.tm-hero .hero-live { padding-top: 60px; }
.tm-hero .hero-art { object-position: bottom left; }
.tm-herocard { position: absolute; top: 0; right: 2%; z-index: 2; display: grid; gap: 12px; width: min(42%, 300px); padding: 16px 18px; background: rgba(21,23,28,.94); transform: rotate(-3deg); }
.tm-herocard-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .95rem; }
.tm-herocard-head svg { width: 20px; height: 20px; }
.tm-herocard-people { display: flex; align-items: center; gap: 8px; margin: 0 0 0 30px; }
.tm-herocard ul { display: grid; gap: 10px; margin: 0 0 0 30px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.1); list-style: none; }
.tm-herocard li { display: flex; align-items: center; gap: 10px; color: #e6e3de; font-size: .88rem; }
.tm-herocard li svg { width: 18px; height: 18px; }

/* Panels */
.tm-stack { gap: var(--s-4); }
@media (min-width: 901px) { .tm-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr); } }
.tm-panel .m-title { font-size: clamp(1.9rem, 3vw, 2.6rem); }

/* 01 workspace */
.tm-space { background: #15171c; }
.tm-space .ui-win-bar { gap: 6px; padding: 12px 16px; }
.tm-space-title { flex: 1; font-size: .95rem; }
.tm-space-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.tm-side { display: grid; align-content: start; gap: 2px; margin: 0; padding: 12px; border-right: 1px solid rgba(255,255,255,.08); list-style: none; }
.tm-side li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #dedad4; font-size: .84rem; }
.tm-side li svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.tm-side li.is-on { background: #23272e; color: #fff; }
.tm-side li.is-on svg { color: #8ab8f2; }
.tm-files { display: grid; margin: 0; padding: 4px 14px; list-style: none; }
.tm-files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.tm-files li:last-child { border-bottom: 0; }
.tm-file-ico { display: grid; place-items: center; color: #ecebe8; }
.tm-files b { display: block; color: #f2efea; font-size: .86rem; font-weight: 600; }
.tm-files small { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; }
.tm-files .tm-av { width: 30px; height: 30px; font-size: .62rem; }

/* 02 dictionary */
.tm-dict { display: grid; gap: 14px; padding: 18px; background: #15171c; }
.tm-dict-tools { display: flex; gap: 12px; }
.tm-search { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #101216; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; }
.tm-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tm-table th { padding: 4px 8px 8px; color: var(--muted); font: 600 .7rem/1 var(--font-body); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.tm-table td { padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.07); color: #c9c5be; }
.tm-table td:last-child { width: 28px; min-width: 28px; color: var(--muted); }
.tm-table td:last-child svg { display: block; width: 16px; min-width: 16px; height: 16px; }
.tm-table td:first-child { display: flex; align-items: center; gap: 12px; color: #f2efea; font-weight: 600; }
.tm-chip { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; font: 700 .78rem/1 var(--font-body); font-style: normal; }
.tm-chip--a { background: #3d8fe8; }
.tm-chip--b { background: #3fa765; }
.tm-chip--c { background: #8a5cf0; }
.tm-chip--d { background: #f07a3c; }

/* 03 members */
.tm-members { display: grid; gap: 14px; padding: 18px; background: #15171c; }
.tm-member-list { display: grid; margin: 0; padding: 0 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; list-style: none; }
.tm-member-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.tm-member-list li:last-child { border-bottom: 0; }
.tm-member-list .tm-av { width: 40px; height: 40px; }
.tm-member-list b { display: block; color: #f2efea; font-size: .9rem; font-weight: 600; }
.tm-member-list small { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.tm-member-list li > svg { color: var(--muted); }
.tm-role { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 9.5em; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #101216; color: #e6e3de; font-size: .8rem; }
.tm-role--owner { justify-content: flex-start; min-width: 0; background: #1d2026; }

/* 04 billing */
.tm-bill { display: grid; gap: 16px; padding: 18px; background: #15171c; }
.tm-bill-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; }
.tm-bill-team, .tm-bill-list { margin: 0; padding: 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: #121418; }
.tm-bill-team { display: grid; align-content: start; gap: 18px; }
.tm-bill-team p { display: flex; align-items: center; gap: 12px; margin: 0; }
.tm-bill-ico { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #4a2420; color: #ff8a7a; }
.tm-bill-team b { display: block; color: #f2efea; font-size: .95rem; }
.tm-bill-team small { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
.tm-bill-list { display: grid; align-content: center; gap: 14px; list-style: none; }
.tm-bill-list li { display: flex; align-items: center; gap: 12px; color: #e6e3de; font-size: .86rem; }
.tm-bill-list svg { flex: none; width: 19px; height: 19px; }

@media (max-width: 1100px) {
  .tm-member-list li { gap: 10px; }
  .tm-role { min-width: 0; }
}
@media (max-width: 900px) {
  .tm-hero .hero-live { margin-right: 0; padding-top: 110px; }
  .tm-herocard { top: 0; right: 0; }
}
@media (max-width: 560px) {
  .tm-hero .hero-live { padding-top: 150px; }
  .tm-herocard { width: 62%; padding: 12px 14px; gap: 8px; }
  .tm-herocard-people, .tm-herocard ul { margin-left: 0; }
  .tm-herocard li { font-size: .8rem; }
  .tm-space-body { grid-template-columns: 1fr; }
  .tm-side { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .tm-avatars--sm { display: none; }
  .tm-dict-tools { flex-direction: column; }
  .tm-table th:nth-child(2), .tm-table td:nth-child(2) { display: none; }
  .tm-card-top { flex-wrap: wrap; }
  .tm-member-list li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tm-member-list li > svg { display: none; }
  .tm-member-list .tm-av { width: 34px; height: 34px; }
  .tm-bill-body { grid-template-columns: 1fr; }
}
