[data-phase5-root]:not(.phase5-ready) {
  visibility: hidden;
}

[data-phase5-root].phase5-ready {
  visibility: visible;
}

[data-phase5-root] [hidden] {
  display: none !important;
}

.tp5-shell {
  color: #1c2b4a;
}

.tp5-toolbar,
.tp5-card,
.tp5-security,
.tp5-list-panel,
.tp5-detail-panel {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(18, 35, 74, .05);
}

.tp5-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.tp5-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  flex: 1;
}

.tp5-filter-grid--portrait {
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(120px, 1fr));
}

.tp5-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tp5-field label {
  color: #64708c;
  font-size: 11px;
  font-weight: 700;
}

.tp5-field input,
.tp5-field select {
  width: 100%;
  height: 36px;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #fff;
  color: #1c2b4a;
  font-size: 12px;
  outline: none;
  padding: 0 10px;
}

.tp5-field input:focus,
.tp5-field select:focus {
  border-color: #2f6ae6;
  box-shadow: 0 0 0 3px rgba(47, 106, 230, .11);
}

.tp5-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tp5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #fff;
  color: #33415f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.tp5-btn:hover:not(:disabled) {
  border-color: #9db8f1;
  background: #f6f9ff;
}

.tp5-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.tp5-btn:focus-visible {
  outline: 3px solid rgba(47, 106, 230, .2);
  outline-offset: 1px;
}

.tp5-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.tp5-btn--primary {
  border-color: #2f6ae6;
  background: #2f6ae6;
  color: #fff;
}

.tp5-btn--primary:hover:not(:disabled) {
  border-color: #1e50c4;
  background: #1e50c4;
}

.tp5-btn--soft {
  border-color: #cbd9f7;
  background: #eaf1fe;
  color: #1e50c4;
}

.tp5-btn--danger {
  border-color: rgba(229, 72, 77, .25);
  background: rgba(229, 72, 77, .07);
  color: #c92f35;
}

.tp5-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tp5-kpi {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 15px;
}

.tp5-kpi__label {
  color: #64708c;
  font-size: 11px;
  font-weight: 700;
}

.tp5-kpi__value {
  display: block;
  margin-top: 8px;
  color: #172442;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.tp5-kpi__meta {
  display: block;
  margin-top: 8px;
  color: #64708c;
  font-size: 10px;
}

.tp5-tone--success { color: #17864a; }
.tp5-tone--danger { color: #cf363c; }
.tp5-tone--warning { color: #b76d00; }
.tp5-tone--primary { color: #2f6ae6; }
.tp5-muted { color: #64708c; }

.tp5-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.tp5-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.tp5-card {
  min-width: 0;
  padding: 17px;
}

.tp5-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tp5-card__title {
  margin: 0;
  color: #172442;
  font-size: 14px;
  font-weight: 900;
}

.tp5-card__sub {
  margin: 3px 0 0;
  color: #7a859d;
  font-size: 10px;
}

.tp5-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #eef2f8;
  color: #58657d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.tp5-badge--primary { background: #eaf1fe; color: #1e50c4; }
.tp5-badge--success { background: #e8f7ee; color: #17864a; }
.tp5-badge--warning { background: #fff5df; color: #a96500; }
.tp5-badge--danger { background: #fdebec; color: #c92f35; }

.tp5-radar {
  min-height: 260px;
}

.tp5-radar svg,
.tp5-line-chart svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.tp5-radar__legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 4px;
}

.tp5-radar__legend span,
.tp5-chart-labels span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64708c;
  font-size: 10px;
}

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

.tp5-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 11px;
}

.tp5-bar__name { font-weight: 700; }
.tp5-bar__value { font-variant-numeric: tabular-nums; font-weight: 900; }

.tp5-bar__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f8;
}

.tp5-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6ae6, #14b8a6);
}

.tp5-rate-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid #edf0f6;
  padding-top: 12px;
  text-align: center;
}

.tp5-rate-strip small {
  display: block;
  color: #7a859d;
  font-size: 9px;
}

.tp5-rate-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

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

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

.tp5-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid #edf0f6;
  border-radius: 9px;
  background: #fbfcff;
  padding: 9px 10px;
}

button.tp5-list-row {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

button.tp5-list-row:hover {
  border-color: #b9caf0;
  background: #f5f8ff;
}

.tp5-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
  background: #eaf1fe;
  color: #1e50c4;
  font-size: 10px;
  font-weight: 900;
}

.tp5-list-row:nth-child(1) .tp5-rank { background: #fff1c8; color: #9b6100; }
.tp5-list-row:nth-child(2) .tp5-rank { background: #e9eef7; color: #64708c; }
.tp5-list-row:nth-child(3) .tp5-rank { background: #f7e9df; color: #965626; }

.tp5-list-main {
  flex: 1;
  min-width: 0;
}

.tp5-list-main strong,
.tp5-list-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp5-list-main strong { font-size: 11px; }
.tp5-list-main span { margin-top: 2px; color: #7a859d; font-size: 9px; }

.tp5-list-score {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.tp5-warning-row {
  align-items: flex-start;
}

.tp5-warning-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, .1);
}

.tp5-archive-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tp5-mini-stat {
  border-radius: 9px;
  background: #f6f8fc;
  padding: 11px;
}

.tp5-mini-stat span { color: #64708c; font-size: 10px; }
.tp5-mini-stat strong { display: block; margin-top: 4px; font-size: 19px; font-variant-numeric: tabular-nums; }

.tp5-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tp5-tab {
  border: 1px solid #dce3ef;
  border-radius: 999px;
  background: #fff;
  color: #64708c;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
}

.tp5-tab.is-active {
  border-color: #2f6ae6;
  background: #eaf1fe;
  color: #1e50c4;
}

.tp5-table-wrap {
  overflow-x: auto;
}

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

.tp5-table th,
.tp5-table td {
  border-bottom: 1px solid #edf0f6;
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}

.tp5-table th {
  color: #64708c;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.tp5-table tbody tr:hover { background: #fafcff; }

.tp5-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px dashed #d9e1ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
  padding: 28px;
  text-align: center;
}

.tp5-state__inner { max-width: 470px; }
.tp5-state__icon { color: #8aa0c8; font-size: 25px; }
.tp5-state h3 { margin: 10px 0 5px; font-size: 15px; font-weight: 900; }
.tp5-state p { margin: 0; color: #64708c; font-size: 11px; line-height: 1.65; }
.tp5-state .tp5-btn { margin-top: 14px; }
.tp5-state--error { border-color: rgba(229, 72, 77, .25); background: rgba(229, 72, 77, .035); }
.tp5-state--error .tp5-state__icon { color: #e5484d; }

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

.tp5-skeleton {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-radius: 11px;
  background: #e9edf4;
}

.tp5-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .72) 45%, transparent 70%);
  content: '';
  transform: translateX(-100%);
  animation: tp5-shimmer 1.25s infinite;
}

.tp5-skeleton--wide {
  min-height: 300px;
  margin-top: 14px;
}

@keyframes tp5-shimmer {
  to { transform: translateX(100%); }
}

.tp5-security {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 11px 14px;
  color: #64708c;
  font-size: 10px;
}

.tp5-security__scope {
  margin-left: auto;
}

.tp5-portrait-layout {
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(0, 2fr);
  gap: 14px;
}

.tp5-list-panel,
.tp5-detail-panel {
  min-width: 0;
  padding: 15px;
}

.tp5-list-panel {
  align-self: start;
}

.tp5-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: #64708c;
  font-size: 10px;
}

.tp5-teacher-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #edf0f6;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  margin-bottom: 7px;
  padding: 9px;
  text-align: left;
}

.tp5-teacher-row:hover,
.tp5-teacher-row.is-active {
  border-color: #9db8f1;
  background: #f5f8ff;
}

.tp5-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 10px;
  background: #eaf1fe;
  color: #1e50c4;
  font-size: 11px;
  font-weight: 900;
}

.tp5-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp5-teacher-row__main { min-width: 0; }
.tp5-teacher-row__main strong,
.tp5-teacher-row__main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp5-teacher-row__main strong { font-size: 11px; }
.tp5-teacher-row__main span { color: #7a859d; font-size: 9px; margin-top: 2px; }
.tp5-teacher-row__score { font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 900; }

.tp5-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf0f6;
  margin-top: 11px;
  padding-top: 11px;
}

.tp5-page-info { color: #64708c; font-size: 10px; }

.tp5-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid #edf0f6;
  padding-bottom: 14px;
}

.tp5-profile-head .tp5-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 14px;
  font-size: 17px;
}

.tp5-profile-main { flex: 1; min-width: 0; }
.tp5-profile-main h2 { margin: 0; font-size: 18px; font-weight: 900; }
.tp5-profile-main p { margin: 5px 0 0; color: #64708c; font-size: 10px; }
.tp5-profile-score { min-width: 100px; text-align: right; }
.tp5-profile-score strong { display: block; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1; }
.tp5-profile-score span { display: block; color: #64708c; font-size: 9px; margin-top: 5px; }

.tp5-info-grid,
.tp5-ranks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tp5-info-item,
.tp5-rank-card {
  border-radius: 8px;
  background: #f6f8fc;
  padding: 9px 10px;
}

.tp5-info-item span,
.tp5-rank-card span { display: block; color: #7a859d; font-size: 9px; }
.tp5-info-item strong,
.tp5-rank-card strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 11px; }
.tp5-rank-card strong { color: #1e50c4; font-size: 18px; font-variant-numeric: tabular-nums; }

.tp5-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-top: 14px;
}

.tp5-section {
  border: 1px solid #edf0f6;
  border-radius: 10px;
  padding: 13px;
}

.tp5-section--wide { grid-column: 1 / -1; }
.tp5-section h3 { margin: 0 0 11px; font-size: 12px; font-weight: 900; }

.tp5-dimensions {
  display: grid;
  gap: 9px;
}

.tp5-dimension {
  border: 1px solid #edf0f6;
  border-radius: 9px;
  overflow: hidden;
}

.tp5-dimension__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8faff;
  padding: 9px 10px;
}

.tp5-dimension__head strong { font-size: 11px; }
.tp5-dimension__head span { font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 900; }

.tp5-indicator-list {
  display: grid;
  gap: 0;
}

.tp5-indicator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #edf0f6;
  padding: 8px 10px;
  font-size: 10px;
}

.tp5-indicator:first-child { border-top: 0; }
.tp5-indicator__score { font-variant-numeric: tabular-nums; font-weight: 900; }
.tp5-link-btn {
  border: 0;
  background: transparent;
  color: #2f6ae6;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 0;
}

.tp5-archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f6;
  padding: 9px 0;
}

.tp5-archive-row:last-child { border-bottom: 0; }
.tp5-archive-row strong { display: block; font-size: 10px; }
.tp5-archive-row span { display: block; color: #7a859d; font-size: 9px; margin-top: 2px; }

.tp5-source-modal {
  display: grid;
  gap: 10px;
}

.tp5-source-modal__summary {
  border-radius: 8px;
  background: #f6f8fc;
  padding: 11px;
  color: #33415f;
  font-size: 12px;
  line-height: 1.7;
}

.tp5-source-modal dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 0; font-size: 11px; }
.tp5-source-modal dt { color: #7a859d; }
.tp5-source-modal dd { margin: 0; overflow-wrap: anywhere; }

.tp5-inline-error {
  border: 1px solid rgba(229, 72, 77, .22);
  border-radius: 9px;
  background: rgba(229, 72, 77, .045);
  color: #a52d32;
  font-size: 10px;
  line-height: 1.6;
  padding: 10px;
}

.tp5-empty-inline {
  border: 1px dashed #dce3ef;
  border-radius: 9px;
  color: #7a859d;
  font-size: 10px;
  padding: 18px;
  text-align: center;
}

.tp5-score-basis {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #f0f3f8;
  color: #64708c;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 7px;
}

@media (max-width: 1280px) {
  .tp5-kpis,
  .tp5-skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp5-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp5-grid--3 > :first-child { grid-column: 1 / -1; }
  .tp5-filter-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .tp5-filter-grid--portrait { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .tp5-portrait-layout { grid-template-columns: minmax(290px, .75fr) minmax(0, 1.5fr); }
}

@media (max-width: 980px) {
  .tp5-toolbar { align-items: stretch; flex-direction: column; }
  .tp5-portrait-layout,
  .tp5-grid--2,
  .tp5-grid--3,
  .tp5-detail-grid { grid-template-columns: 1fr; }
  .tp5-grid--3 > :first-child,
  .tp5-section--wide { grid-column: auto; }
  .tp5-info-grid,
  .tp5-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .tp5-filter-grid,
  .tp5-filter-grid--portrait,
  .tp5-kpis,
  .tp5-skeleton-grid,
  .tp5-distributions,
  .tp5-archive-summary { grid-template-columns: 1fr; }
  .tp5-actions .tp5-btn { flex: 1; }
  .tp5-profile-head { flex-wrap: wrap; }
  .tp5-profile-score { width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .tp5-skeleton::after { animation: none; }
  .tp5-btn { transition: none; }
}

/* F3-F7 live replacement panels */
.tp2-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 2px;
}

.tp2-tab {
  min-height: 34px;
  border: 1px solid #dce3ef;
  border-radius: 999px;
  background: #fff;
  color: #64708c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 13px;
  white-space: nowrap;
}

.tp2-tab.is-active {
  border-color: #2f6ae6;
  background: #eaf1fe;
  color: #1e50c4;
}

.tp2-selector-bar,
.tp2-filter-bar,
.tp2-pagination,
.tp2-scope-card,
.tp2-flow {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #e7ecf4;
  border-radius: 10px;
  background: #fafcff;
  margin-bottom: 13px;
  padding: 11px 12px;
}

.tp2-selector-bar label,
.tp2-filter-bar label {
  display: grid;
  gap: 4px;
  min-width: 170px;
  color: #64708c;
  font-size: 10px;
  font-weight: 800;
}

.tp2-selector-bar select,
.tp2-filter-bar input,
.tp2-filter-bar select {
  min-height: 34px;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #fff;
  color: #1c2b4a;
  padding: 5px 9px;
  font-size: 11px;
}

.tp2-scope-card {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  color: #64708c;
  font-size: 10px;
}

.tp2-scope-card strong { color: #1c2b4a; font-size: 11px; }
.tp2-section-tools { justify-content: flex-start; margin-bottom: 10px; }
.tp2-subtitle { margin: 14px 0 8px; color: #1c2b4a; font-size: 12px; font-weight: 900; }
.tp2-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tp2-pagination { justify-content: space-between; align-items: center; margin: 12px 0 0; color: #64708c; font-size: 10px; }
.tp2-pagination > div { display: flex; gap: 6px; }

.tp2-empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px dashed #dce3ef;
  border-radius: 11px;
  color: #64708c;
  padding: 28px;
  text-align: center;
}

.tp2-empty-state > i { color: #8aa0c8; font-size: 24px; }
.tp2-empty-state > strong { color: #1c2b4a; font-size: 14px; }
.tp2-empty-state > p { margin: 0; font-size: 11px; }
.tp2-indicator-stack { display: grid; gap: 5px; min-width: 410px; }
.tp2-indicator-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #eef2f8; padding: 5px 0; }
.tp2-indicator-item:last-child { border-bottom: 0; }
.tp2-indicator-item strong,
.tp2-indicator-item small { display: block; }
.tp2-indicator-item small { margin-top: 2px; color: #7a859d; font-size: 9px; }
.tp2-inline-actions { display: inline-flex; gap: 5px; margin-left: 6px; }
.tp2-link-button { border: 0; background: transparent; color: #2f6ae6; cursor: pointer; font-size: 10px; font-weight: 800; padding: 3px; }
.tp2-link-button.is-danger,
.tp2-danger-text { color: #c92f35; }

.tp2-flow { align-items: center; justify-content: center; color: #64708c; font-size: 10px; font-weight: 800; }
.tp2-flow span { border-radius: 999px; background: #eef4ff; color: #1e50c4; padding: 6px 10px; }
.tp2-flow i { font-style: normal; }

.tp2-lesson-editor { display: grid; gap: 7px; margin-bottom: 8px; }
.tp2-lesson-row { display: grid; grid-template-columns: auto minmax(130px, 1fr) 105px minmax(150px, 1.2fr) 78px auto auto auto; gap: 6px; align-items: center; border: 1px solid #e7ecf4; border-radius: 9px; background: #fafcff; padding: 7px; }
.tp2-lesson-row input,
.tp2-lesson-row select { min-width: 0; min-height: 34px; border: 1px solid #dce3ef; border-radius: 7px; background: #fff; padding: 5px 7px; font-size: 10px; }
.tp2-drag-handle { color: #9aa7bd; }

.tp-warning-timeline { display: grid; gap: 9px; margin: 0 0 14px; padding: 0; list-style: none; }
.tp-warning-timeline li { position: relative; border-left: 3px solid #b9caf0; border-radius: 0 8px 8px 0; background: #f8faff; padding: 9px 11px; }
.tp-warning-timeline span,
.tp-warning-timeline small { color: #7a859d; font-size: 9px; }
.tp-warning-timeline strong { display: block; margin: 2px 0; font-size: 11px; }
.tp-warning-timeline p { margin: 3px 0; color: #475470; font-size: 10px; }

@media (max-width: 980px) {
  .tp2-grid-2 { grid-template-columns: 1fr; }
  .tp2-scope-card { grid-template-columns: auto 1fr; }
  .tp2-lesson-row { grid-template-columns: auto 1fr 110px; }
  .tp2-lesson-row input[name="content_url"] { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .tp2-selector-bar,
  .tp2-filter-bar { align-items: stretch; flex-direction: column; }
  .tp2-selector-bar label,
  .tp2-filter-bar label { width: 100%; }
  .tp2-indicator-stack { min-width: 300px; }
}
