#tuce-patch7-truthgate.tuce-truthgate-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  z-index: 9998;
  background: rgba(14, 18, 28, 0.96);
  color: #f5f7fb;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(10px);
}

.tuce-truthgate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.tuce-truthgate-head h3 {
  margin: 0;
  font-size: 1rem;
}

.tuce-truthgate-sub {
  margin: 4px 0 0;
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.82rem;
}

.tuce-truthgate-head button {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(51, 65, 85, 0.45);
  color: #f8fafc;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.tuce-truthgate-body {
  padding: 14px 16px 16px;
}

.tuce-truthgate-grid,
.tuce-gate-grid {
  display: grid;
  gap: 10px;
}

.tuce-truthgate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.tuce-gate-grid {
  grid-template-columns: 1fr;
}

.tuce-truthgate-card,
.tuce-gate-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 12px;
}

.tuce-card-label {
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tuce-card-value {
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.tuce-card-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.78);
}

.tuce-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(71, 85, 105, 0.55);
}

.tuce-pill-pass,
.tuce-pill-release-ready,
.tuce-pill-certified {
  background: rgba(22, 163, 74, 0.22);
}

.tuce-pill-warn,
.tuce-pill-nearly-ready,
.tuce-pill-partial {
  background: rgba(245, 158, 11, 0.22);
}

.tuce-pill-fail,
.tuce-pill-blocked,
.tuce-pill-broken {
  background: rgba(220, 38, 38, 0.24);
}

.tuce-gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tuce-gate-card p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.84rem;
}

.tuce-section h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.tuce-section + .tuce-section {
  margin-top: 14px;
}

.tuce-blocker-list {
  margin: 0;
  padding-left: 18px;
}

.tuce-blocker-list li {
  margin: 6px 0;
  color: rgba(226, 232, 240, 0.92);
}

.tuce-empty,
.tuce-truthgate-status,
.tuce-truthgate-error {
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.9rem;
}

.tuce-truthgate-error {
  color: #fecaca;
}
