/* ============================================================
   КОМАНДА ЦЕНТРА v466: вкладка «Сегодня» (смены, автобусы, дни рождения
   с поздравлениями, «Спасибо коллеге», номинации месяца), «Наша команда
   в цифрах», значки-лесенки и трофеи (и в «Моём профиле»). Поверх
   team-v450; тот же блок — в конце maxapp-v42.css.
   ============================================================ */
.tc-quiet { margin: 6px 0; color: var(--tc-muted); font-size: 13px; line-height: 1.45; }
.tc-quiet b { color: var(--tc-text); }
.tc-link { padding: 0 !important; color: var(--tc-brand); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tc-link.is-danger { color: #c0334f; }
.tc-primary { min-height: 38px; padding: 0 16px !important; border-radius: 11px; background: var(--tc-brand) !important; color: #fff !important; font-weight: 800; font-size: 13.5px; }
.tc-primary:disabled { opacity: .5; cursor: default; }
.tc-primary .tc-icon, .tc-mini .tc-icon { width: 16px; height: 16px; }
.tc-mini { min-height: 30px; padding: 0 12px !important; border-radius: 9px; background: var(--tc-brand-soft) !important; color: var(--tc-brand); font-size: 12.5px; font-weight: 800; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-actions .tc-ghost { width: auto; padding: 0 16px; }
.tc-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tc-form-actions small { color: var(--tc-faint); font-size: 12px; }
.tc-page textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--tc-line); border-radius: 12px; background: var(--tc-card); color: var(--tc-text); font: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
.tc-page textarea:focus, .tc-page select:focus { outline: 2px solid var(--tc-brand-soft); border-color: var(--tc-brand); }

/* Сегодня в команде */
.tc-today-card { display: grid; gap: 12px; }
.tc-today-card .tc-card-head { margin-bottom: 0; }
.tc-today-card .tc-card-head small { text-transform: none; }
.tc-today-row { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--tc-line); }
.tc-today-row:first-of-type { border-top: 0; padding-top: 0; }
.tc-today-row h4 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--tc-muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tc-today-row h4 span { color: var(--tc-faint); }
.tc-today-row h4 .tc-icon { width: 15px; height: 15px; color: var(--tc-brand); }
.tc-pchips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tc-pchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--tc-soft); min-width: 0; }
.tc-pchip .tc-avatar { width: 28px; height: 28px; font-size: 10.5px; }
.tc-pchip .tc-avatar .tc-dot { display: none; }
.tc-pchip b { display: block; font-size: 13px; line-height: 1.2; }
.tc-pchip small { display: block; color: var(--tc-muted); font-size: 11.5px; line-height: 1.2; }
.tc-bus { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; padding: 8px 10px; border-radius: 12px; background: var(--tc-soft); font-size: 13px; }
.tc-bus b { grid-row: span 2; align-self: center; color: var(--tc-brand); white-space: nowrap; }
.tc-bus span { font-weight: 700; overflow-wrap: anywhere; }
.tc-bus small { color: var(--tc-muted); font-size: 12px; }
.tc-bday-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 6px 0; }
.tc-bday-row.is-today .tc-name { color: var(--tc-brand); }
.tc-bday-row .tc-row-main small { display: block; color: var(--tc-muted); font-size: 12px; }
.tc-bday-act { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.tc-done { display: inline-flex; align-items: center; gap: 4px; color: var(--tc-ok); font-size: 12.5px; font-weight: 700; }
.tc-done .tc-icon { width: 14px; height: 14px; }
.tc-greet { grid-column: 1 / -1; display: grid; gap: 8px; padding: 8px 0 4px; }
.tc-bday-card { background: linear-gradient(135deg, var(--tc-gold-soft), var(--tc-card) 70%); border-color: var(--tc-gold-line); display: grid; gap: 8px; }
.tc-wish { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--tc-line); }
.tc-wish b { font-size: 13.5px; }
.tc-wish p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }

/* Спасибо коллеге */
.tc-thx-card { display: grid; gap: 12px; }
.tc-thx-card .tc-card-head { margin-bottom: 0; }
.tc-thx-form { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--tc-soft); }
.tc-thx-form .tc-select { width: 100%; }
.tc-thx-form .tc-select select { flex: 1; min-width: 0; }
.tc-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-reason { min-height: 30px; padding: 0 12px !important; border: 1px solid var(--tc-line) !important; border-radius: 999px; background: var(--tc-card) !important; color: var(--tc-muted); font-size: 12.5px; font-weight: 700; }
.tc-reason.is-on { border-color: var(--tc-brand) !important; background: var(--tc-brand-soft) !important; color: var(--tc-brand); }
.tc-thx-feed { display: grid; }
.tc-thx { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--tc-line); }
.tc-thx:first-child { border-top: 0; }
.tc-thx-main p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.tc-thx-main p .tc-chip { margin-left: 6px; vertical-align: 1px; }
.tc-thx-main .tc-thx-text { margin: 3px 0; font-size: 14px; overflow-wrap: anywhere; }
.tc-thx-main small { color: var(--tc-faint); font-size: 12px; }

/* Цифры */
.tc-numbers .tc-card-head { margin-bottom: 6px; }
.tc-num { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tc-line); font-size: 13.5px; }
.tc-num:first-of-type { border-top: 0; }
.tc-num .tc-icon { width: 18px; height: 18px; color: var(--tc-brand); }
.tc-num b { font-size: 16px; font-weight: 800; }

/* Номинации месяца */
.tc-noms { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tc-nom { display: grid; gap: 4px; align-content: start; padding: 12px; border: 1px solid var(--tc-gold-line); border-radius: 14px; background: var(--tc-gold-soft); }
.tc-nom > .tc-icon { width: 22px; height: 22px; color: var(--tc-gold); }
.tc-nom > b { font-size: 14px; }
.tc-nom > small { color: var(--tc-muted); font-size: 12px; line-height: 1.3; }
.tc-nom-who { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 6px; }
.tc-nom-who small { display: block; color: var(--tc-brand); font-size: 12px; font-weight: 800; }

/* Значки */
.tc-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tc-badges.is-strip { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tc-badge { --b-bg: var(--tc-soft); --b-ic: #9aa6b8; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--tc-line); border-radius: 14px; background: var(--tc-card); }
.tc-badge.lvl-0 { opacity: .78; }
.tc-badge.lvl-1 { --b-bg: var(--tc-bronze); --b-ic: #b0713f; }
.tc-badge.lvl-2 { --b-bg: var(--tc-silver); --b-ic: #6f7c8f; }
.tc-badge.lvl-3 { --b-bg: var(--tc-gold-soft); --b-ic: var(--tc-gold); border-color: var(--tc-gold-line); }
.tc-badge-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--b-bg); color: var(--b-ic); }
.tc-badge-ic .tc-icon { width: 22px; height: 22px; }
.tc-badge.lvl-0 .tc-badge-ic { filter: grayscale(1); }
.tc-badge-main { display: grid; gap: 3px; min-width: 0; }
.tc-badge-main b { font-size: 14px; }
.tc-badge-main small { color: var(--tc-muted); font-size: 12px; line-height: 1.3; }
.tc-badge-lvl { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--b-bg); color: var(--b-ic); font-size: 11px; font-weight: 800; }
.tc-badge.lvl-0 .tc-badge-lvl { color: var(--tc-faint); }
.tc-badge .tc-bar { display: block; height: 6px; margin-top: 3px; border-radius: 999px; background: var(--tc-soft); overflow: hidden; }
.tc-badge .tc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--b-ic); }
.tc-badge.is-compact { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 8px; align-items: center; }
.tc-badge.is-compact .tc-badge-ic { width: 34px; height: 34px; }
.tc-badge.is-compact .tc-badge-ic .tc-icon { width: 18px; height: 18px; }
.tc-badge.is-compact b { font-size: 12.5px; line-height: 1.2; }
.tc-mybadges { display: grid; gap: 10px; }
.tc-mybadges .tc-card-head { margin-bottom: 0; }
.tc-ach-head { display: flex; align-items: center; gap: 14px; }
.tc-ach-head h2 { margin: 0; font-size: 20px; }
.tc-ach-head p { margin: 4px 0 0; color: var(--tc-muted); font-size: 13px; }
.tc-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.tc-trophy { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: var(--tc-gold-soft); }
.tc-trophy .tc-icon { color: var(--tc-gold); }
.tc-trophy b { display: block; font-size: 13.5px; }
.tc-trophy small { color: var(--tc-muted); font-size: 12px; }
.tc-in-profile { margin-top: 4px; }
.tc-head-badges { display: flex !important; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.tc-mini-badge { --b-bg: var(--tc-soft); --b-ic: #6f7c8f; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--b-bg); color: var(--b-ic); font-size: 12px; font-weight: 800; }
.tc-mini-badge .tc-icon { width: 15px; height: 15px; }
.tc-mini-badge.lvl-1 { --b-bg: var(--tc-bronze); --b-ic: #a5663a; }
.tc-mini-badge.lvl-3 { --b-bg: var(--tc-gold-soft); --b-ic: #a8780f; }

/* Карточки-сетки не распираются длинным текстом и списком коллег (телефон). */
.tc-today-card, .tc-thx-card, .tc-thx-form, .tc-mybadges, .tc-bday-card, .tc-greet { grid-template-columns: minmax(0, 1fr); }
.tc-thx-form .tc-select select { width: 100%; min-width: 0; }
.tc-noms { align-items: start; }
@media (max-width: 900px) {
  /* на «Сегодня» главное — сначала, значки и цифры — ниже */
  .tc-grid.is-today > aside { order: 0; }
}

@media (max-width: 600px) {
  .tc-bday-row { grid-template-columns: 36px minmax(0, 1fr); }
  .tc-bday-act { grid-column: 2; justify-content: flex-start; }
  .tc-badges { grid-template-columns: minmax(0, 1fr); }
  .tc-noms { grid-template-columns: minmax(0, 1fr); }
  .tc-actions > * { flex: 1; }
}
