/* High-Tech Continuous Qualification & 100-Point Mock Assessment Center */
.hta-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ==================== Hero Card ==================== */
.hta-hero {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #f4f8ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.hta-hero.has-veto {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fffafa 0%, #ffffff 58%, #fff7f7 100%);
}
.hta-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hta-gauge {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}
.hta-gauge svg {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}
.hta-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hta-gauge-score {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.hta-gauge-max {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}
.hta-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hta-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.hta-hero-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}
.hta-window-chip {
  font-size: 12px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.hta-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.hta-risk-badge.green { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.hta-risk-badge.blue { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.hta-risk-badge.orange { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.hta-risk-badge.red { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.hta-headline {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
}
.hta-redlines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hta-redline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  white-space: nowrap;
}
.hta-redline-pill.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.hta-redline-pill.fail {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.hta-redline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.hta-redline-pill.ok .hta-redline-dot { background: #16a34a; color: #fff; }
.hta-redline-pill.fail .hta-redline-dot { background: #dc2626; color: #fff; }
.hta-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.hta-hero-actions .primary {
  white-space: nowrap;
  padding: 8px 16px;
  font-weight: 500;
}
.hta-hero-sub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== Simulator & Annual Progress ==================== */
.hta-section {
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 10px;
  padding: 18px 20px;
}
.hta-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.hta-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hta-section-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--blue, #1685ff);
  display: inline-block;
}
.hta-section-sub {
  font-size: 12px;
  color: #64748b;
}
.hta-sim-bar {
  background: #f4f8ff;
  border: 1px solid #d7e6ff;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin-bottom: 14px;
}
.hta-sim-bar.active {
  background: #eff6ff;
  border-color: #60a5fa;
}
.hta-sim-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 190px;
}
.hta-sim-field label {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}
.hta-sim-field input {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
  width: 200px;
  background: #fff;
}
.hta-sim-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hta-sim-note {
  margin-left: auto;
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hta-sim-active-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.hta-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 1240px) {
  .hta-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hta-prog-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fafcff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hta-prog-card.ok { border-color: #bbf7d0; background: #f8fffb; }
.hta-prog-card.warn { border-color: #fde68a; background: #fffdf5; }
.hta-prog-card.fail { border-color: #fecaca; background: #fff9f9; }
.hta-prog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.hta-prog-top .tag {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11px;
  padding: 1px 7px;
}
.hta-prog-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hta-prog-val {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.hta-prog-card.ok .hta-prog-val { color: #166534; }
.hta-prog-card.fail .hta-prog-val { color: #b91c1c; }
.hta-prog-card.warn .hta-prog-val { color: #b45309; }
.hta-prog-meta {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}
.hta-prog-meta strong {
  color: #0f172a;
}
.hta-dual-bar {
  position: relative;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: visible;
  margin: 4px 0 2px;
}
.hta-dual-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #1685ff;
  transition: width 0.25s ease;
}
.hta-dual-bar-fill.ok { background: #16a34a; }
.hta-dual-bar-fill.warn { background: #f59e0b; }
.hta-dual-bar-fill.fail { background: #ef4444; }
.hta-bar-tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 13px;
  background: #475569;
  border-radius: 1px;
}
.hta-bar-tick.safe { background: #16a34a; }

/* 12-Month Matrix */
.hta-months-box {
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}
.hta-months-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #334155;
}
.hta-months-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
}
.hta-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
}
.hta-months-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
}
.hta-month-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
  font-size: 12px;
  line-height: 1.25;
}
.hta-month-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.hta-month-cell b { font-size: 12.5px; font-weight: 600; }
.hta-month-cell small { font-size: 10.5px; margin-top: 2px; }
.hta-month-cell.done { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.hta-month-cell.partial { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.hta-month-cell.empty { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.hta-month-cell.future { background: #f8fafc; border-color: #e2e8f0; color: #94a3b8; }

/* ==================== Six Dimensions 2x3 Grid ==================== */
.hta-dim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1240px) {
  .hta-dim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hta-dim-card {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 15px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hta-dim-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.hta-dim-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
}
.hta-dim-safe {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.hta-dim-score-box {
  text-align: right;
  white-space: nowrap;
}
.hta-dim-score {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.hta-dim-score.passed { color: #166534; }
.hta-dim-score.warning { color: #b45309; }
.hta-dim-score.failed { color: #b91c1c; }
.hta-dim-max {
  font-size: 12px;
  color: #64748b;
}
.hta-dim-summary {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}
.hta-sub-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid #f1f5f9;
  padding-top: 9px;
}
.hta-sub-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
}
.hta-sub-left {
  min-width: 0;
  flex: 1;
}
.hta-sub-title {
  color: #1e293b;
  font-weight: 500;
}
.hta-sub-detail {
  color: #64748b;
  font-size: 11.5px;
  margin-top: 1px;
}
.hta-sub-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hta-sub-pill {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hta-sub-pill.passed { background: #dcfce7; color: #166534; }
.hta-sub-pill.warning { background: #fef3c7; color: #92400e; }
.hta-sub-pill.failed { background: #fee2e2; color: #991b1b; }
.hta-sub-link {
  font-size: 11.5px;
  color: #1685ff;
  white-space: nowrap;
}
.hta-sub-link:hover { text-decoration: underline; }

/* ==================== Rectification List ==================== */
.hta-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hta-filter-btn {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  color: #475569;
  line-height: 18px;
}
.hta-filter-btn.active {
  background: #1685ff;
  border-color: #1685ff;
  color: #fff;
}
.hta-rect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hta-rect-item {
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  padding: 12px 15px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.hta-rect-item.veto { border-left-color: #dc2626; background: #fffafa; border-color: #fecaca; }
.hta-rect-item.high { border-left-color: #ea580c; background: #fffdf9; border-color: #fed7aa; }
.hta-rect-item.medium { border-left-color: #d97706; }
.hta-rect-item.low { border-left-color: #2563eb; }
.hta-rect-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hta-rect-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.hta-sev-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.hta-sev-tag.veto { background: #dc2626; color: #fff; }
.hta-sev-tag.high { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.hta-sev-tag.medium { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.hta-sev-tag.low { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hta-dim-chip {
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 4px;
}
.hta-deduct-chip {
  font-size: 11px;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  padding: 1px 7px;
  border-radius: 4px;
}
.hta-rect-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}
.hta-rect-reason {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}
.hta-rect-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.hta-target-chip {
  font-size: 11.5px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 8px;
  max-width: 100%;
  word-break: break-all;
}
.hta-rect-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.hta-rect-cta a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  background: #eff6ff;
  color: #1685ff;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}
.hta-rect-cta a:hover {
  background: #1685ff;
  color: #fff;
  border-color: #1685ff;
}
.hta-empty-ok {
  padding: 18px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  text-align: center;
}

/* ==================== Homepage Compact Health Card ==================== */
.hta-home-card {
  grid-column: 1 / -1;
  background: linear-gradient(105deg, #ffffff 0%, #f6faff 65%, #eef5ff 100%);
  border: 1px solid #d5e6ff !important;
  border-radius: 8px !important;
  padding: 15px 18px !important;
  min-height: 0 !important;
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(350px, 1.35fr) auto;
  align-items: center;
  gap: 14px 18px;
}
@media (max-width: 1220px) {
  .hta-home-card {
    grid-template-columns: 1fr;
  }
  .hta-home-right {
    align-items: flex-start;
  }
}
.hta-home-card.has-veto {
  border-color: #fecaca !important;
  background: linear-gradient(105deg, #ffffff 0%, #fffaf9 68%, #fff3f2 100%);
}
.hta-home-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}
.hta-home-ring {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.hta-home-ring svg {
  width: 68px;
  height: 68px;
  transform: rotate(-90deg);
}
.hta-home-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.hta-home-ring-num b {
  font-size: 20px;
  line-height: 1;
  color: #0f172a;
}
.hta-home-ring-num small {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}
.hta-home-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.hta-home-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
}
.hta-home-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}
.hta-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
  flex: 0 1 460px;
}
.hta-home-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8f0;
  min-width: 0;
}
.hta-home-stat span {
  font-size: 11px;
  color: #64748b;
}
.hta-home-stat b {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.hta-home-stat.ok b { color: #166534; }
.hta-home-stat.fail b { color: #b91c1c; }
.hta-home-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.hta-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  background: #1685ff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(22, 133, 255, 0.22);
}
.hta-home-cta:hover {
  background: #0878f9;
}
.hta-home-meta {
  font-size: 11.5px;
  color: #64748b;
}
