.team-dashboard-open {
  overflow: hidden;
}

.team-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 35, 71, 0.94), rgba(3, 18, 39, 0.96));
  color: #ffffff;
  font: 700 0.78rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(6, 24, 49, 0.34);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(6, 24, 49, 0.38);
}

.team-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}

.team-overlay.is-open {
  display: block;
}

.team-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(10px);
}

.team-shell {
  --team-primary: #2563eb;
  --team-primary-deep: #1d4ed8;
  --team-primary-soft: #dbeafe;
  --team-secondary: #1f2937;
  --team-background: #f9fafb;
  --team-card: #ffffff;
  --team-border: #e5e7eb;
  --team-muted: #6b7280;
  --team-text: #111827;
  --team-success: #16a34a;
  --team-danger: #dc2626;
  --team-warning: #f97316;
  --team-shadow: 0 24px 72px rgba(15, 23, 42, 0.2);
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 24%),
    linear-gradient(180deg, #2563eb 0%, #1e40af 17%, #f9fafb 17%, #f9fafb 100%);
  box-shadow: var(--team-shadow);
}

.team-shell__header {
  padding: 20px 28px 14px;
  color: #ffffff;
}

.team-shell__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.team-shell__copy {
  min-width: 0;
}

.team-shell__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.76;
}

.team-shell__title {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.team-shell__subtitle {
  margin: 10px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  line-height: 1.55;
}

.team-shell__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.team-shell__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.team-shell__button,
.team-shell__button--ghost,
.team-shell__button--close,
.team-inline-action,
.team-sort__button,
.team-table__action,
.filter-chip,
.team-shell__tab,
.team-secret__button {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.team-shell__button:hover,
.team-shell__button--ghost:hover,
.team-shell__button--close:hover,
.team-inline-action:hover,
.team-sort__button:hover,
.team-table__action:hover,
.filter-chip:hover,
.team-shell__tab:hover,
.team-secret__button:hover {
  transform: translateY(-2px);
}

.team-shell__button,
.team-shell__button--ghost,
.team-shell__button--close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font: 700 0.78rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-shell__button {
  background: #ffffff;
  color: var(--team-primary-deep);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.team-shell__button--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.team-shell__button--ghost.is-subtle {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.team-shell__button--close {
  width: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-shell__button-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.team-shell__button-icon svg {
  width: 100%;
  height: 100%;
}

.team-shell__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 28px 28px;
}

.team-modal-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-shell__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.team-shell__tab {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font: 700 0.76rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-shell__tab.is-active {
  background: #ffffff;
  color: var(--team-primary-deep);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.team-login {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 20px 0 40px;
}

.team-login__card {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.team-login__card h2 {
  margin: 0 0 10px;
  color: var(--team-secondary);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.team-login__card p {
  margin: 0 0 22px;
  color: var(--team-muted);
  line-height: 1.6;
}

.team-login__field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.team-login__field label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--team-primary-deep);
}

.team-login__field input,
.team-filter,
.team-search,
.team-analytics__field input {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--team-border);
  padding: 0 14px;
  font: 600 0.95rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: var(--team-text);
}

.team-login__status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--team-primary-deep);
  font-size: 0.95rem;
  line-height: 1.5;
}

.team-login__status.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.team-login__meta {
  margin-top: 18px;
  color: var(--team-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.dashboard-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-card--span-12 {
  grid-column: span 12;
}

.dashboard-card--span-8 {
  grid-column: span 8;
}

.dashboard-card--span-4 {
  grid-column: span 4;
}

.section {
  margin-bottom: 32px;
}

.team-card {
  background: var(--team-card);
  border: 1px solid var(--team-border);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-card:hover,
.dashboard-mini-card:hover,
.kpi-card:hover,
.insight-card:hover,
.property-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.team-card__body {
  padding: 20px;
}

.team-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.team-card__heading.is-compact {
  margin-bottom: 20px;
}

.team-card__eyebrow {
  margin: 0 0 6px;
  color: var(--team-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card__title {
  margin: 0;
  color: var(--team-secondary);
  font-size: 1.5rem;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.team-card__subtitle {
  margin: 8px 0 0;
  color: var(--team-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--team-primary-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-badge.is-fallback {
  background: #fef3c7;
  color: #92400e;
}

.dashboard-heading__actions,
.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-actions {
  justify-content: flex-start;
}

.team-inline-action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--team-border);
  background: #ffffff;
  color: var(--team-primary-deep);
  font: 700 0.72rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-inline-action.is-subtle {
  background: #f9fafb;
  color: var(--team-muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi-card,
.insight-card,
.dashboard-mini-card {
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--team-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--team-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 10px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--team-secondary);
  letter-spacing: -0.04em;
}

.metric-value.is-compact {
  font-size: 1.55rem;
}

.metric-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--team-muted);
}

.metric-delta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.metric-delta__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.metric-delta.is-up {
  color: var(--team-success);
}

.metric-delta.is-down {
  color: var(--team-danger);
}

.metric-delta.is-flat {
  color: var(--team-muted);
}

.section-title {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--team-secondary);
  letter-spacing: 0.03em;
}

.insight-grid {
  display: grid;
  gap: 14px;
}

.tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid transparent;
  color: var(--team-muted);
  font: 700 0.76rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.filter-chip.is-active {
  background: var(--team-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.ranked-list {
  display: grid;
  gap: 8px;
}

.property-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.property-row:last-child {
  border-bottom: 0;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--team-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.property-row__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.property-row__title {
  color: var(--team-secondary);
  font-weight: 700;
  line-height: 1.45;
}

.property-row__meta {
  color: var(--team-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.property-row__metric {
  color: var(--team-primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.team-analytics__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.team-analytics__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.team-analytics__tab {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--team-muted);
  border: 1px solid transparent;
  font: 700 0.78rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.team-analytics__tab.is-active {
  background: var(--team-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.team-analytics__range-copy {
  color: var(--team-muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.team-analytics__custom {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.team-analytics__field {
  display: grid;
  gap: 8px;
}

.team-analytics__field span {
  color: var(--team-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-analytics__legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--team-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.team-analytics__legend-key {
  width: 24px;
  height: 12px;
  border: 2px solid var(--team-warning);
  background: rgba(249, 115, 22, 0.18);
}

.chart-card,
.team-area-chart {
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--team-border);
}

.team-area-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.team-area-chart__grid {
  stroke: rgba(148, 163, 184, 0.26);
  stroke-width: 1;
}

.team-area-chart__grid.is-vertical {
  stroke: rgba(148, 163, 184, 0.14);
}

.team-area-chart__axis {
  fill: var(--team-muted);
  font: 600 11px/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.team-area-chart__area {
  fill: rgba(249, 115, 22, 0.2);
}

.team-area-chart__line {
  fill: none;
  stroke: #f97316;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-area-chart__point {
  fill: #f97316;
  stroke: rgba(249, 115, 22, 0.18);
  stroke-width: 4;
}

.team-area-chart__labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.team-area-chart__label {
  flex: 1 1 0;
  color: var(--team-muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

.team-analytics__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.team-analytics__stat {
  padding: 16px;
  text-align: left;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--team-border);
}

.team-analytics__value {
  color: var(--team-secondary);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.team-analytics__label {
  margin-top: 8px;
  color: var(--team-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-list {
  display: grid;
  gap: 12px;
}

.team-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--team-border);
}

.team-list__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.team-list__item:last-child {
  padding-bottom: 0;
}

.team-list__primary {
  color: var(--team-secondary);
  font-weight: 700;
  line-height: 1.45;
}

.team-list__secondary {
  display: block;
  margin-top: 4px;
  color: var(--team-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.team-list__metric {
  white-space: nowrap;
  color: var(--team-primary-deep);
  font-size: 1rem;
  font-weight: 700;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-mini-card__title {
  margin: 0 0 14px;
  color: var(--team-secondary);
  font-size: 1rem;
  line-height: 1.3;
}

.team-bars {
  display: grid;
  gap: 12px;
}

.team-bars__row {
  display: grid;
  gap: 8px;
}

.team-bars__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.team-bars__label {
  color: var(--team-text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.team-bars__value {
  color: var(--team-primary-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.team-bars__track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eff6ff;
}

.team-bars__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 62%, #93c5fd 100%);
}

.team-empty {
  color: var(--team-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.team-trend {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 220px;
}

.team-trend__item {
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
}

.team-trend__value {
  color: var(--team-primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.team-trend__bar {
  width: 100%;
  min-height: 8px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.team-trend__label {
  color: var(--team-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-performance {
  width: 100%;
  border-collapse: collapse;
}

.team-performance th,
.team-performance td {
  padding: 12px 0;
  border-top: 1px solid var(--team-border);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.45;
}

.team-performance tr:first-child th,
.team-performance tr:first-child td {
  border-top: 0;
  padding-top: 0;
}

.team-performance th {
  color: var(--team-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-performance td strong {
  color: var(--team-secondary);
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.team-search {
  flex: 1 1 260px;
}

.team-filter {
  flex: 1 1 160px;
}

.team-ledger__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.team-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-sort__button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--team-primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-sort__button.is-active {
  background: var(--team-primary);
  color: #ffffff;
}

.team-ledger__table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--team-border);
}

.team-offers {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: #ffffff;
}

.team-offers thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px;
  background: #f9fafb;
  color: var(--team-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--team-border);
}

.team-offers tbody td {
  padding: 14px;
  border-top: 1px solid #eef2f7;
  color: var(--team-text);
  font-size: 0.9rem;
  line-height: 1.45;
  vertical-align: top;
}

.team-offers tbody tr:hover,
.team-offers tbody tr.is-selected {
  background: #f8fbff;
}

.team-offers__strong {
  color: var(--team-secondary);
  font-weight: 700;
}

.team-offers__muted {
  color: var(--team-muted);
  font-size: 0.82rem;
}

.team-offers__doc {
  color: var(--team-primary-deep);
  font-weight: 700;
}

.team-table__action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--team-border);
  background: #ffffff;
  color: var(--team-primary-deep);
  font: 700 0.74rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(6px);
}

.team-modal__dialog {
  position: relative;
  width: min(980px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--team-border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.team-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--team-border);
}

.team-modal__title {
  margin: 0;
  color: var(--team-secondary);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.team-modal__subtitle {
  margin: 8px 0 0;
  color: var(--team-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.team-modal__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--team-border);
  background: #f9fafb;
  color: var(--team-secondary);
  font: 700 0.9rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.team-modal__body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.team-modal__hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-detail__summary {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(219, 234, 254, 0.92));
  border: 1px solid rgba(147, 197, 253, 0.66);
}

.team-detail__title {
  margin: 0;
  color: var(--team-secondary);
  font-size: 1.2rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.team-detail__meta {
  margin-top: 10px;
  color: var(--team-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.team-detail__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-detail__panel {
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--team-border);
}

.team-detail__label {
  color: var(--team-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-detail__value {
  margin-top: 8px;
  color: var(--team-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--team-primary-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.team-docs {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.team-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--team-border);
}

.team-doc__meta {
  color: var(--team-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.team-doc__link {
  color: var(--team-primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-loading__text {
  margin: 0;
  color: var(--team-muted);
  line-height: 1.6;
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s linear infinite;
}

.skeleton--title {
  width: 40%;
  height: 26px;
  margin-bottom: 12px;
}

.skeleton--subtitle {
  width: 72%;
  height: 14px;
  margin-bottom: 18px;
}

.skeleton--metric {
  width: 56%;
  height: 28px;
  margin-bottom: 10px;
}

.skeleton--line {
  width: 70%;
  height: 12px;
}

.skeleton--chart {
  width: 100%;
  height: 260px;
  margin-top: 16px;
}

.skeleton--list {
  width: 100%;
  height: 54px;
  margin-top: 12px;
}

.kpi-card.is-skeleton {
  box-shadow: none;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.team-manual {
  display: grid;
  gap: 18px;
  padding-bottom: 10px;
}

.team-manual__prose {
  color: var(--team-text);
  font-size: 0.98rem;
  line-height: 1.72;
}

.team-manual__prose h4 {
  margin: 0 0 10px;
  color: var(--team-secondary);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.team-manual__prose h4 + ul,
.team-manual__prose h4 + ol,
.team-manual__prose h4 + p {
  margin-top: 0;
}

.team-manual__prose ul,
.team-manual__prose ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.team-manual__prose li + li {
  margin-top: 8px;
}

.team-manual__prose code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--team-primary-deep);
  font: 700 0.88em/1.4 Menlo, Monaco, Consolas, monospace;
}

.team-manual__code {
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: auto;
  background: #0f172a;
  color: #edf5ff;
}

.team-manual__code pre {
  margin: 0;
  padding: 16px 18px;
  font: 600 0.88rem/1.7 Menlo, Monaco, Consolas, monospace;
}

.team-manual__callout {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid rgba(147, 197, 253, 0.65);
  color: var(--team-text);
  line-height: 1.65;
}

.team-manual__callout.is-warn {
  background: #fff7ed;
  border-color: #fdba74;
}

.team-secret-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.team-secret {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--team-border);
}

.team-secret__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.team-secret__title {
  color: var(--team-secondary);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
}

.team-secret__note {
  margin-top: 4px;
  color: var(--team-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.team-secret__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-secret__button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--team-primary-deep);
  border: 1px solid var(--team-border);
  font: 700 0.74rem/1 "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-secret__button.is-active {
  background: var(--team-primary);
  color: #ffffff;
  border-color: var(--team-primary);
}

.team-secret__value {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #edf5ff;
  font: 600 0.84rem/1.7 Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .team-shell {
    inset: 0;
    border-radius: 0;
  }

  .team-shell__bar,
  .team-ledger__tools,
  .team-card__heading,
  .team-shell__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .team-shell__actions,
  .dashboard-heading__actions {
    justify-content: flex-start;
  }

  .dashboard-card--span-8,
  .dashboard-card--span-4,
  .dashboard-mini-grid,
  .team-analytics__summary,
  .team-modal__hero,
  .team-detail__grid {
    grid-column: span 12;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-grid {
    gap: 16px;
  }

  .team-trend {
    gap: 8px;
  }

  .team-analytics__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .team-secret__row {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-shell__header,
  .team-shell__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .team-fab {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 0.72rem;
  }

  .team-card__body,
  .team-login__card,
  .team-modal__body,
  .team-modal__header {
    padding: 16px;
  }

  .team-shell__title {
    font-size: 1.6rem;
  }

  .kpi-grid,
  .dashboard-mini-grid,
  .team-analytics__summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-bar {
    flex-direction: column;
  }

  .team-offers {
    min-width: 760px;
  }
}

@media (max-width: 600px) {
  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-modal__dialog {
    width: calc(100% - 18px);
    max-height: calc(100% - 18px);
  }
}
