:root {
  --trust-navy: #071a33;
  --trust-navy-2: #0d294b;
  --trust-gold: #d7a72d;
  --trust-warm: #fffaf0;
  --trust-ink: #172033;
  --trust-muted: #667085;
  --trust-line: #dfe5ec;
  --trust-good: #16794d;
  --trust-watch: #9a6700;
  --trust-danger: #b42318;
}

.trust-shield-link {
  display: flex !important;
  align-items: center;
  gap: .6rem;
}

.trust-shield-link::before {
  content: "🛡️";
  font-size: .95rem;
}

.trust-shell-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(7, 26, 51, .28);
  color: var(--trust-ink);
}

.trust-shell-dialog::backdrop {
  background: rgba(7, 26, 51, .68);
  backdrop-filter: blur(4px);
}

.trust-dialog-card {
  margin: 0;
  padding: 0;
  background: #fff;
}

.trust-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--trust-navy), var(--trust-navy-2));
}

.trust-dialog-head small,
.trust-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #f3d77e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.trust-dialog-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.trust-dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.trust-dialog-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px 8px;
}

.trust-dialog-body p {
  margin: 0;
  color: var(--trust-muted);
  line-height: 1.55;
}

.trust-dialog-body label {
  display: grid;
  gap: 7px;
  font-size: .86rem;
  font-weight: 750;
}

.trust-dialog-body input,
.trust-dialog-body select,
.trust-dialog-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--trust-line);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--trust-ink);
  background: #fff;
  font: inherit;
}

.trust-dialog-body textarea {
  min-height: 96px;
  resize: vertical;
}

.trust-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 24px;
}

.trust-button {
  border: 1px solid var(--trust-line);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: var(--trust-ink);
  background: #fff;
}

.trust-button.primary {
  border-color: var(--trust-gold);
  color: #111827;
  background: var(--trust-gold);
}

.trust-button.danger {
  border-color: #f5c2bd;
  color: var(--trust-danger);
  background: #fff5f4;
}

.trust-action-list {
  display: grid;
  gap: 10px;
}

.trust-action-list button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--trust-line);
  border-radius: 13px;
  color: var(--trust-ink);
  background: #fff;
  cursor: pointer;
}

.trust-action-list button span:first-child {
  font-size: 1.1rem;
}

.trust-action-list button b,
.trust-action-list button small {
  display: block;
}

.trust-action-list button small {
  margin-top: 2px;
  color: var(--trust-muted);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
}

.trust-badge.new {
  color: #475467;
  background: #f2f4f7;
}

.trust-badge.verified {
  color: #075985;
  background: #e0f2fe;
}

.trust-badge.trusted {
  color: #155e3f;
  background: #dcfce7;
}

.trust-preview-note {
  border: 1px solid #f0dca0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #755600;
  background: #fff9e8;
  font-size: .82rem;
}

.trust-center-body {
  margin: 0;
  min-height: 100vh;
  color: var(--trust-ink);
  background: #f4f6f9;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.trust-center-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--trust-navy);
}

.trust-center-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.trust-center-brand span {
  color: var(--trust-gold);
}

.trust-center-topbar nav {
  display: flex;
  gap: 12px;
}

.trust-center-topbar nav a {
  border-radius: 10px;
  padding: 8px 10px;
  color: #dce6f3;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}

.trust-center-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.trust-center-hero {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.trust-center-hero > div,
.trust-panel {
  border: 1px solid var(--trust-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(19, 40, 70, .07);
}

.trust-center-hero-copy {
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 90% 20%, rgba(215,167,45,.18), transparent 34%),
    linear-gradient(145deg, #fff, var(--trust-warm));
}

.trust-center-hero h1 {
  margin: 0 0 12px;
  color: var(--trust-navy);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
}

.trust-center-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--trust-muted);
  line-height: 1.65;
}

.trust-score-card {
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 26px;
  text-align: center;
  color: #fff;
  background: linear-gradient(155deg, var(--trust-navy), #123d6a) !important;
}

.trust-score-card strong {
  font-size: 3.4rem;
  line-height: 1;
}

.trust-score-card small {
  color: #c7d7ea;
}

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

.trust-panel {
  grid-column: span 6;
  padding: 24px;
}

.trust-panel.wide {
  grid-column: 1 / -1;
}

.trust-panel h2 {
  margin: 0 0 8px;
  color: var(--trust-navy);
  font-size: 1.2rem;
}

.trust-panel > p {
  margin: 0 0 18px;
  color: var(--trust-muted);
  line-height: 1.55;
}

.trust-levels,
.trust-checklist,
.trust-activity {
  display: grid;
  gap: 10px;
}

.trust-level-card,
.trust-check,
.trust-activity-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--trust-line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.trust-level-card.active {
  border-color: #e2be53;
  box-shadow: 0 0 0 3px rgba(215,167,45,.12);
}

.trust-level-card header,
.trust-check,
.trust-activity-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.trust-level-card p,
.trust-check small,
.trust-activity-row small {
  margin: 0;
  color: var(--trust-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.trust-state {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .7rem;
  font-weight: 850;
}

.trust-state.complete { color: var(--trust-good); background: #e9f8f0; }
.trust-state.pending { color: var(--trust-watch); background: #fff4d6; }
.trust-state.locked { color: #475467; background: #f2f4f7; }

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

.trust-tool {
  display: grid;
  gap: 7px;
  border: 1px solid var(--trust-line);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  color: var(--trust-ink);
  background: #fff;
  cursor: pointer;
}

.trust-tool span { font-size: 1.25rem; }
.trust-tool small { color: var(--trust-muted); line-height: 1.4; }

.trust-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.trust-matrix th,
.trust-matrix td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--trust-line);
  text-align: left;
}

.trust-matrix th {
  color: #475467;
  background: #f8fafc;
}

.trust-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--trust-good);
  font-size: .84rem;
  font-weight: 750;
}

@media (max-width: 820px) {
  .trust-center-hero { grid-template-columns: 1fr; }
  .trust-panel { grid-column: 1 / -1; }
  .trust-center-topbar nav a:not(:last-child) { display: none; }
}

@media (max-width: 560px) {
  .trust-center-main { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .trust-tool-grid { grid-template-columns: 1fr; }
  .trust-dialog-actions { justify-content: stretch; }
  .trust-dialog-actions .trust-button { flex: 1 1 auto; }
  .trust-matrix { display: block; overflow-x: auto; white-space: nowrap; }
}
