.tp2-live-panel {
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 43, 74, .06);
}

.tp2-live-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #eef2f8;
  background: linear-gradient(135deg, rgba(47, 106, 230, .06), rgba(20, 184, 166, .04));
}

.tp2-live-panel__title {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #1c2b4a;
  font-size: 14px;
  font-weight: 900;
}

.tp2-live-panel__sub {
  margin-top: .15rem;
  color: #64708c;
  font-size: 11px;
}

.tp2-live-panel__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.tp2-live-panel__body {
  padding: 1rem 1.15rem 1.15rem;
}

.tp2-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 22px;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #eaf1fe;
  color: #1e50c4;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.tp2-badge--success { background: rgba(34, 165, 88, .1); color: #168046; }
.tp2-badge--warning { background: rgba(245, 166, 35, .13); color: #a96606; }
.tp2-badge--danger { background: rgba(229, 72, 77, .1); color: #bd2e33; }
.tp2-badge--muted { background: #eef2f8; color: #64708c; }

.tp2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 32px;
  padding: .42rem .72rem;
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #fff;
  color: #475470;
  font-size: 11px;
  font-weight: 800;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.tp2-button:hover { border-color: #2f6ae6; color: #2f6ae6; }
.tp2-button:disabled { cursor: not-allowed; opacity: .55; }
.tp2-button--primary { border-color: #2f6ae6; background: #2f6ae6; color: #fff; }
.tp2-button--primary:hover { border-color: #1e50c4; background: #1e50c4; color: #fff; }
.tp2-button--danger { border-color: rgba(229, 72, 77, .28); color: #d83d42; }

.tp2-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .9rem;
}

.tp2-kpi {
  padding: .75rem .85rem;
  border: 1px solid #eef2f8;
  border-radius: 11px;
  background: #fafcff;
}

.tp2-kpi__label { color: #64708c; font-size: 10px; font-weight: 700; }
.tp2-kpi__value { margin-top: .2rem; color: #1c2b4a; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }

.tp2-table-wrap {
  overflow-x: auto;
  border: 1px solid #eef2f8;
  border-radius: 10px;
}

.tp2-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  font-size: 11px;
}

.tp2-table th {
  padding: .65rem .75rem;
  background: #f5f7fb;
  color: #64708c;
  text-align: left;
  font-weight: 800;
  white-space: nowrap;
}

.tp2-table td {
  padding: .68rem .75rem;
  border-top: 1px solid #eef2f8;
  color: #475470;
  vertical-align: middle;
}

.tp2-table tbody tr:hover { background: #fbfdff; }
.tp2-table__actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.tp2-strong { color: #1c2b4a; font-weight: 800; }
.tp2-muted { color: #7a859d; }

.tp2-empty,
.tp2-error,
.tp2-loading {
  padding: 1.2rem;
  color: #64708c;
  text-align: center;
  font-size: 12px;
}

.tp2-error { color: #bd2e33; }

.tp2-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem;
}

.tp2-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: #475470;
  font-size: 12px;
  font-weight: 800;
}

.tp2-field--wide { grid-column: 1 / -1; }
.tp2-required::after { content: " *"; color: #e5484d; }

.tp2-field input,
.tp2-field select,
.tp2-field textarea {
  width: 100%;
  min-height: 38px;
  padding: .55rem .65rem;
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #1c2b4a;
  font-size: 12px;
  font-weight: 500;
}

.tp2-field textarea { min-height: 86px; resize: vertical; }
.tp2-field input:focus,
.tp2-field select:focus,
.tp2-field textarea:focus { border-color: #2f6ae6; box-shadow: 0 0 0 3px rgba(47, 106, 230, .1); }

.tp2-note {
  grid-column: 1 / -1;
  padding: .65rem .75rem;
  border-radius: 8px;
  background: #f3f7fe;
  color: #53617d;
  font-size: 11px;
  line-height: 1.65;
}

.tp2-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.tp2-score-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .7rem;
  border: 1px solid #e7edf6;
  border-radius: 9px;
  background: #fafcff;
  color: #273654;
  font-size: 11px;
  font-weight: 800;
}

.tp2-score-field span { min-width: 0; }
.tp2-score-field small { display: block; margin-top: .15rem; color: #7a859d; font-size: 9px; font-weight: 600; }
.tp2-score-field input { width: 82px; min-height: 34px; flex: 0 0 auto; text-align: center; }

@media (max-width: 900px) {
  .tp2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp2-live-panel__head { align-items: flex-start; flex-direction: column; }
  .tp2-live-panel__tools { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .tp2-form { grid-template-columns: 1fr; }
  .tp2-field--wide, .tp2-note { grid-column: auto; }
  .tp2-score-grid { grid-template-columns: 1fr; }
}
