.team-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100svh;
}

.team-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  width: var(--sidebar-w);
  border-inline-start: 1px solid var(--team-glass-border);
  background: color-mix(in srgb, var(--team-surface) 94%, transparent);
  backdrop-filter: blur(var(--team-blur));
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 40;
  overflow: hidden;
}

.team-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: var(--space-4);
  border-bottom: 1px solid var(--team-glass-border);
}

.team-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.team-sidebar__brand:hover h1 {
  color: var(--team-accent-deep);
}

.team-brand-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.team-sidebar__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--team-surface-2);
  padding: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.team-sidebar__brand h1 {
  margin: 0;
  font-family: var(--font-display, "Fediya Display", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.team-sidebar__brand p {
  margin: 0.2rem 0 0;
  font-size: var(--text-xs);
  color: var(--team-text-muted);
}

.team-sidebar__close {
  display: none;
  border: none;
  background: var(--team-surface-2);
  color: var(--team-text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.team-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3) var(--space-3) var(--space-4);
  scrollbar-width: thin;
}

.team-nav-section {
  margin-bottom: var(--space-3);
}

.team-nav-section__title {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--team-text-muted);
  text-transform: none;
}

.team-nav-section.is-active-group .team-nav-section__title {
  color: var(--team-accent);
}

.team-nav-section__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--team-text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.team-nav__icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-nav__label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-nav__link:hover {
  background: var(--team-surface-2);
  transform: translateX(-2px);
}

.team-nav__link.is-active {
  background: color-mix(in srgb, var(--team-accent) 14%, var(--team-surface-2));
  color: var(--team-accent);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--team-accent);
}

.team-sidebar__foot {
  border-top: 1px solid var(--team-glass-border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-sidebar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--team-surface-2);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--team-accent);
}

.team-sidebar__user strong {
  display: block;
  font-size: 0.82rem;
}

.team-sidebar__user small {
  display: block;
  font-size: 0.72rem;
  color: var(--team-text-muted);
}

.team-sidebar__logout {
  font-size: 0.78rem;
  color: var(--team-text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--team-surface-2);
  white-space: nowrap;
}

.team-sidebar__logout:hover {
  color: var(--status-danger);
}

.team-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 35;
  backdrop-filter: blur(2px);
}

.team-topbar__start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-topbar__logo {
  display: none;
  flex-shrink: 0;
  line-height: 0;
}

.team-topbar__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--team-surface-2);
  padding: 3px;
}

.team-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--team-glass-border);
  border-radius: 10px;
  background: var(--team-surface-2);
  cursor: pointer;
}

.team-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--team-text);
  border-radius: 2px;
}

.team-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--team-glass-border);
  border-radius: 10px;
  background: var(--team-surface-2);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.team-btn-icon:hover {
  background: var(--team-surface);
}

.team-btn-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.team-icon--inline {
  display: inline-block;
  vertical-align: -2px;
}

.team-nav__icon,
.team-mobile-nav__icon,
.team-cmd__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-nav__icon .team-icon {
  opacity: 0.9;
}

.team-nav__link.is-active .team-nav__icon .team-icon {
  opacity: 1;
  color: var(--team-accent);
}

.team-cmd__icon {
  width: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.team-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-team-theme="light"] .team-theme-icon--dark,
[data-team-theme="dark"] .team-theme-icon--light {
  display: none;
}

.team-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 6px;
  vertical-align: 1px;
  flex-shrink: 0;
}

.team-status-dot--success {
  background: var(--status-success, #22c55e);
}

.team-status-dot--warning {
  background: var(--status-warning, #d4a017);
}

.team-status-dot--danger {
  background: var(--status-danger, #d64545);
}

.team-inline-icon,
.team-meta-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.team-meta-icon .team-icon {
  opacity: 0.75;
}

.team-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.team-checklist-item__icon {
  flex-shrink: 0;
}

.team-checklist-item__icon--empty {
  opacity: 0.45;
}

.team-checklist-item.is-done {
  color: var(--team-success);
}

.team-checklist-item.is-done .team-checklist-item__icon {
  color: var(--team-success);
}

.team-stat__label {
  display: flex;
  align-items: center;
  gap: 2px;
}

.team-alert--success {
  background: color-mix(in srgb, var(--team-success, #22c55e) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--team-success, #22c55e) 35%, transparent);
}

.team-alert--info {
  background: color-mix(in srgb, var(--team-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--team-accent) 30%, transparent);
}

.team-cmd__group {
  padding: 8px 12px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--team-text-muted);
  list-style: none;
}

.team-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--team-glass-border);
  background: color-mix(in srgb, var(--team-surface) 88%, transparent);
  backdrop-filter: blur(var(--team-blur));
  position: sticky;
  top: 0;
  z-index: 10;
}

.team-topbar__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
}

.team-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.team-content {
  padding: var(--space-6);
  flex: 1;
}

.team-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.team-table-wrap {
  overflow: auto;
}

.team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.team-table th,
.team-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--team-glass-border);
}

.team-table th {
  font-size: var(--text-xs);
  color: var(--team-text-muted);
  background: var(--team-surface-2);
  position: sticky;
  top: 0;
}

.team-table tr:hover td {
  background: var(--team-surface-2);
}

.team-table tr.row--danger td:first-child {
  box-shadow: inset 3px 0 0 var(--status-danger);
}

.team-table tr.row--warning td:first-child {
  box-shadow: inset 3px 0 0 var(--status-warning);
}

.team-task-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 14px;
  border-bottom: 1px solid var(--team-glass-border);
}

.team-task-row:last-child {
  border-bottom: none;
}

.team-task-row form {
  margin: 0;
}

.team-task-row__check {
  width: 18px;
  height: 18px;
  accent-color: var(--team-accent);
}

.team-task-row__body {
  flex: 1;
  min-width: 0;
}

.team-task-row__title {
  font-weight: 600;
  margin: 0 0 4px;
}

.team-task-row__meta {
  font-size: var(--text-xs);
  color: var(--team-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.team-filter-bar a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  text-decoration: none;
  color: var(--team-text-muted);
  border: 1px solid var(--team-glass-border);
}

.team-filter-bar a.is-active {
  background: var(--team-accent-soft, rgba(95, 154, 56, 0.14));
  color: var(--team-accent-deep);
  border-color: var(--team-accent);
}

.team-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.team-login__card {
  width: min(400px, 100%);
  padding: var(--space-6);
}

.team-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.team-login__logo {
  width: 72px;
  height: 72px;
  margin-bottom: 0.35rem;
}

.team-login__card h1 {
  text-align: center;
  margin: 0;
  font-family: var(--font-display, sans-serif);
}

.team-login__subtitle {
  text-align: center;
  color: var(--team-text-muted);
  margin: 0;
  font-size: var(--text-sm);
}

.team-field {
  margin-bottom: var(--space-4);
}

.team-field label {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 6px;
  color: var(--team-text-muted);
}

.team-field input,
.team-field select,
.team-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--team-glass-border);
  border-radius: var(--radius-md);
  background: var(--team-surface);
  font: inherit;
}

.team-alert {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.team-alert--error {
  background: var(--status-danger-bg);
  color: var(--status-danger);
}

.team-field input,
.team-field select,
.team-field textarea,
.team-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--team-glass-border);
  border-radius: var(--radius-md);
  background: var(--team-surface);
  font: inherit;
  box-sizing: border-box;
}

.team-page-grid {
  display: grid;
  gap: 1.5rem;
}

.team-section {
  padding: 1.25rem;
}

.team-section--flush {
  padding: 0;
  overflow: hidden;
}

.team-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--team-glass-border);
}

.team-section__actions {
  display: flex;
  gap: 8px;
}

.team-muted {
  color: var(--team-text-muted);
  font-size: var(--text-sm);
  margin: 0.5rem 0 0;
}

.team-empty,
.team-empty-inline {
  color: var(--team-text-muted);
  text-align: center;
}

.team-link {
  color: #000;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
}

html[data-app="team"][data-team-theme="dark"] .team-link {
  color: #fff;
}

.team-link:hover {
  color: #000;
  text-decoration: none;
}

html[data-app="team"][data-team-theme="dark"] .team-link:hover {
  color: #fff;
}

.team-sidebar__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--team-glass-border);
  font-size: var(--text-xs);
  color: var(--team-text-muted);
}

.team-sidebar__foot a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

html[data-app="team"][data-team-theme="dark"] .team-sidebar__foot a {
  color: #fff;
}

.team-filter-spacer {
  flex: 1;
}

.team-btn-ghost--sm {
  min-height: 28px;
  padding: 0 8px;
  font-size: var(--text-xs);
}

.team-task-row.is-overdue {
  background: var(--status-danger-bg);
}

.team-task-row__title {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  display: block;
  margin: 0 0 4px;
}

.team-task-row__actions {
  flex-shrink: 0;
}

.team-form-card {
  padding: 1.5rem;
  max-width: 640px;
}

.team-form-card--wide {
  max-width: 900px;
}

.team-form--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-field--full {
  grid-column: 1 / -1;
}

.team-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
}

.team-field-error {
  color: var(--status-danger);
  font-size: var(--text-xs);
}

.team-client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.team-client-header__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.team-client-header__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-meta-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  line-height: 1.8;
}

.team-color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid var(--team-glass-border);
}

.team-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-activity-list li {
  padding: 12px 1.25rem;
  border-bottom: 1px solid var(--team-glass-border);
  font-size: var(--text-sm);
}

.team-activity-list__time {
  display: inline-block;
  min-width: 110px;
  color: var(--team-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Command palette */
.team-cmd[hidden] {
  display: none !important;
}

.team-cmd {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.team-cmd__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 35, 24, 0.35);
  backdrop-filter: blur(4px);
}

.team-cmd__panel {
  position: relative;
  width: min(480px, 92vw);
  padding: 0;
  overflow: hidden;
}

.team-cmd__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--team-glass-border);
  padding: 14px 16px;
  font: inherit;
  background: transparent;
  box-sizing: border-box;
}

.team-cmd__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}

.team-cmd__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--team-text);
  font-size: var(--text-sm);
}

.team-cmd__list a:hover,
.team-cmd__list a.is-highlight {
  background: var(--team-surface-2);
}

/* Quick-create modal */
.team-modal[hidden] {
  display: none !important;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 18, 0.42);
  backdrop-filter: blur(6px);
}

.team-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--team-glass-border);
  flex-shrink: 0;
}

.team-modal__title {
  margin: 0;
  font-family: var(--font-display, "Fediya Display", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight, -0.02em);
}

.team-modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--team-surface-2);
  color: var(--team-text-muted);
  cursor: pointer;
}

.team-modal__close:hover {
  color: var(--team-text);
  background: var(--team-surface-hover);
}

.team-modal__body {
  padding: 16px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.team-modal__body .team-form,
.team-modal__body form.team-card {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.team-modal__body .team-form-actions,
.team-modal__body .team-form__row-actions,
.team-modal__body .team-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--team-glass-border);
}

.team-modal__loading,
.team-modal__error {
  margin: 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--team-text-muted);
  padding: 24px 12px;
}

.team-modal__error {
  color: var(--status-danger, #d64545);
}

@media (max-width: 640px) {
  .team-modal {
    align-items: flex-end;
    padding: 0;
  }

  .team-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@media (max-width: 700px) {
  .team-form--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .team-shell {
    grid-template-columns: 1fr;
  }

  .team-menu-toggle {
    display: flex;
  }

  .team-topbar__logo {
    display: block;
  }

  .team-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(88vw, 320px);
    height: 100svh;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  }

  .team-shell.is-sidebar-open .team-sidebar {
    transform: translateX(0);
  }

  .team-sidebar__close {
    display: grid;
    place-items: center;
  }

  .team-content {
    padding: var(--space-4);
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .team-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    min-height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--team-surface) 96%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--team-glass-border);
    z-index: 30;
  }

  .team-mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.68rem;
    text-decoration: none;
    color: var(--team-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
  }

  .team-mobile-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .team-mobile-nav__item.is-active {
    color: var(--team-accent);
    font-weight: 700;
  }
}

@media (min-width: 901px) {
  .team-mobile-nav {
    display: none;
  }
}

/* Notifications */
.team-notify-btn {
  position: relative;
}

.team-notify-badge {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--status-danger);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.team-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-notify-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--team-surface);
  border: 1px solid var(--team-glass-border);
}

.team-notify-item.is-unread {
  border-color: color-mix(in srgb, var(--team-accent) 40%, transparent);
}

.team-notify-item--danger {
  border-inline-start: 3px solid var(--status-danger);
}

.team-notify-item--warning {
  border-inline-start: 3px solid var(--status-warning);
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--team-glass-border);
}

/* Gantt */
.team-gantt__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.team-gantt__label {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-gantt__track {
  position: relative;
  height: 28px;
  background: color-mix(in srgb, var(--team-text-muted) 8%, transparent);
  border-radius: var(--radius-sm);
}

.team-gantt__bar {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: #fff;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  .team-gantt__row {
    grid-template-columns: 1fr;
  }
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.team-viral-card .team-section__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.team-saved-views {
  margin-bottom: 1rem;
  padding: 12px 16px;
}

.team-saved-views__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.team-saved-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-accent) 12%, transparent);
  font-size: var(--text-sm);
}

.team-saved-views__save {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.team-inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.team-form .team-field {
  margin-bottom: 12px;
}

.team-form .team-field label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-sm);
  color: var(--team-text-muted);
}

.team-form__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.team-scenario-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1rem;
  padding: 16px;
}

.team-scenario-workflow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-scenario-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-comment-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.team-comment-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--team-glass-border);
  font-size: var(--text-sm);
}

.team-moodboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.team-moodboard__item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--team-glass-border);
}

.team-moodboard__item img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.team-moodboard__item span {
  display: block;
  font-size: 10px;
  padding: 4px;
  text-align: center;
}

.team-pillar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.team-reject-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--team-glass-border);
}

.team-embed-wrap {
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.team-embed-wrap iframe {
  width: 100%;
  height: 200px;
  border: 0;
}

.team-diff__line {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 2px;
}

.team-diff__line--add {
  background: color-mix(in srgb, #22c55e 20%, transparent);
  color: #166534;
}

.team-diff__line--remove {
  background: color-mix(in srgb, #ef4444 20%, transparent);
  color: #991b1b;
}

.team-diff__line--same {
  color: var(--team-text-muted);
}

.team-kanban {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.team-kanban__col {
  min-width: 220px;
  max-width: 260px;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--team-surface) 90%, transparent);
  border: 1px solid var(--team-glass-border);
  border-radius: var(--radius-md);
}

.team-kanban__head {
  padding: 10px 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 1px solid var(--team-glass-border);
  display: flex;
  justify-content: space-between;
}

.team-kanban__cards {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
}

.team-kanban__card {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--team-surface);
  border: 1px solid var(--team-glass-border);
  font-size: var(--text-sm);
}

.team-kanban-drop.is-drag-over {
  background: color-mix(in srgb, var(--team-accent) 12%, transparent);
  outline: 2px dashed var(--team-accent);
}

.team-kanban__card[draggable] {
  cursor: grab;
}

.team-kanban__actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.team-checklist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.85rem;
}

.team-checklist li {
  padding: 4px 0;
  color: var(--team-muted);
}

.team-checklist li.is-done {
  color: var(--team-success);
}

.team-checklist li.is-done::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  margin-inline-end: 6px;
  border: solid var(--team-success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  vertical-align: 1px;
}

.team-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.team-progress-bar {
  height: 8px;
  background: var(--team-border);
  border-radius: 4px;
  margin: 8px 0;
  overflow: hidden;
}

.team-progress-bar span {
  display: block;
  height: 100%;
  background: var(--team-accent);
  border-radius: 4px;
}

.team-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
}

.team-calendar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-calendar__head,
.team-calendar__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.team-calendar__head span {
  font-size: 0.75rem;
  color: var(--team-muted);
  text-align: center;
  padding: 4px;
}

.team-calendar__day {
  min-height: 100px;
  border: 1px solid var(--team-border);
  border-radius: 8px;
  padding: 6px;
  background: var(--team-surface);
}

.team-calendar__day.is-muted {
  opacity: 0.45;
}

.team-calendar__day.is-today {
  outline: 2px solid var(--team-accent);
}

.team-calendar__day header {
  font-size: 0.8rem;
  color: var(--team-muted);
  margin-bottom: 4px;
}

.team-calendar__slot {
  display: block;
  padding: 4px 6px;
  margin-top: 4px;
  border-radius: 6px;
  font-size: 0.75rem;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--team-accent);
  background: color-mix(in srgb, var(--team-accent) 8%, transparent);
}

.team-calendar__slot--published {
  border-left-color: var(--team-success);
  background: color-mix(in srgb, var(--team-success) 10%, transparent);
}

.team-calendar__slot--missed {
  border-left-color: var(--team-danger);
  background: color-mix(in srgb, var(--team-danger) 10%, transparent);
}

.team-calendar-legend {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
}

.team-field--inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.team-stat {
  text-align: center;
  padding: 16px;
}

.team-stat strong {
  display: block;
  font-size: 1.5rem;
}

.team-stat--danger strong {
  color: var(--team-danger);
}

.team-progress-bar--sm {
  height: 4px;
  margin-bottom: 4px;
}

.team-review-comments {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  font-size: 0.85rem;
}

.team-review-comments code {
  background: var(--team-border);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.team-compliance-form label {
  display: block;
  font-size: var(--text-sm);
  margin: 4px 0;
}

.team-calendar-sync {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-calendar-sync__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.team-calendar-sync__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-calendar-sync__map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--team-glass-border);
}

.team-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
}

.team-badge--ok {
  background: rgba(95, 154, 56, 0.15);
  color: var(--team-accent-deep);
}

.team-badge--warn {
  background: rgba(200, 120, 0, 0.12);
  color: #a66b00;
}
