.gap-content {
  padding: 14px 16px 22px;
}

.gap-content .section-title {
  margin-top: 18px;
}

.gap-card {
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gap-card + .gap-card {
  margin-top: 9px;
}

.gap-card-head,
.gap-card-foot,
.gap-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.gap-card-head strong,
.gap-card-head small,
.gap-card-foot small {
  display: block;
}

.gap-card-head strong {
  font-size: 13px;
}

.gap-card-head small,
.gap-card-foot small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.gap-status-line {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 10px;
}

.gap-status-line > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gap-card-actions {
  display: flex;
  margin-top: 11px;
  justify-content: flex-end;
  gap: 8px;
}

.gap-card-actions button {
  min-height: 44px;
  padding: 0 12px;
  font-size: 11px;
}

.signal-reason {
  margin: 13px 0 0;
  padding-top: 11px;
  color: var(--muted-strong);
  border-top: 1px solid var(--border);
  font-size: 10px;
  line-height: 1.6;
}

.mapping-summary {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mapping-summary div {
  min-height: 66px;
  padding: 10px;
  border-right: 1px solid var(--border);
}

.mapping-summary div:last-child {
  border-right: 0;
}

.mapping-summary span,
.mapping-summary strong {
  display: block;
}

.mapping-summary span {
  color: var(--muted);
  font-size: 9px;
}

.mapping-summary strong {
  margin-top: 7px;
  font-size: 18px;
}

.mapping-row {
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mapping-row + .mapping-row {
  margin-top: 9px;
}

.mapping-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mapping-row-head strong,
.mapping-row-head small {
  display: block;
}

.mapping-row-head strong {
  font-size: 12px;
}

.mapping-row-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.mapping-pair {
  display: grid;
  margin-top: 12px;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 6px;
}

.mapping-pair div {
  min-height: 54px;
  padding: 9px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.mapping-pair span,
.mapping-pair strong {
  display: block;
}

.mapping-pair span {
  color: var(--muted);
  font-size: 8px;
}

.mapping-pair strong {
  margin-top: 4px;
  font-size: 11px;
}

.mapping-pair > span {
  color: var(--gold-strong);
  text-align: center;
}

.mapping-actions {
  display: grid;
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mapping-actions button {
  min-height: 44px;
  font-size: 10px;
}

.warning-banner {
  display: flex;
  margin-bottom: 12px;
  padding: 10px 11px;
  align-items: flex-start;
  gap: 8px;
  color: #f0d58c;
  background: #241e10;
  border: 1px solid #5e4e25;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.5;
}

.warning-banner svg {
  width: 16px;
  flex: 0 0 16px;
}

.source-metric {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.source-metric div {
  padding: 10px 6px 0 0;
}

.source-metric span,
.source-metric strong {
  display: block;
}

.source-metric span {
  color: var(--muted);
  font-size: 8px;
}

.source-metric strong {
  margin-top: 4px;
  font-size: 11px;
}

.evidence-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.evidence-list li {
  display: grid;
  min-height: 49px;
  padding: 9px 11px;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
}

.evidence-list li:last-child {
  border-bottom: 0;
}

.evidence-list span {
  color: var(--muted);
}

.evidence-list strong {
  font-size: 10px;
}

.evidence-list .up {
  color: var(--green);
}

.evidence-list .down {
  color: var(--red);
}

.order-detail-head {
  padding: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.order-detail-head h2,
.order-detail-head p {
  margin: 0;
}

.order-detail-head h2 {
  font-size: 17px;
}

.order-detail-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.order-detail-grid {
  display: grid;
  margin-top: 13px;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.order-detail-grid div {
  min-height: 65px;
  padding: 11px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.order-detail-grid div:nth-child(2n) {
  border-right: 0;
}

.order-detail-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.order-detail-grid span,
.order-detail-grid strong {
  display: block;
}

.order-detail-grid span {
  color: var(--muted);
  font-size: 9px;
}

.order-detail-grid strong {
  margin-top: 6px;
  font-size: 14px;
}

.test-result {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.test-result div {
  min-height: 76px;
  padding: 11px;
  border-right: 1px solid var(--border);
}

.test-result div:last-child {
  border-right: 0;
}

.test-result span,
.test-result strong,
.test-result small {
  display: block;
}

.test-result span,
.test-result small {
  color: var(--muted);
  font-size: 8px;
}

.test-result strong {
  margin: 6px 0 3px;
  font-size: 18px;
}

.notification-row {
  display: grid;
  min-height: 74px;
  padding: 11px 16px;
  grid-template-columns: 32px 1fr auto;
  align-items: start;
  gap: 9px;
  border-bottom: 1px solid var(--border);
}

.notification-row.unread {
  background: #15130d;
}

.notification-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--gold-strong);
  background: #1a170f;
  border-radius: 6px;
}

.notification-row strong,
.notification-row small {
  display: block;
}

.notification-row strong {
  font-size: 11px;
}

.notification-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.notification-row time {
  color: var(--muted);
  font-size: 8px;
}

.recovery-codes {
  display: grid;
  margin-top: 14px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recovery-codes code {
  display: block;
  min-height: 42px;
  padding: 11px 9px;
  color: var(--gold-strong);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}

.backup-status {
  display: flex;
  min-height: 58px;
  padding: 11px;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.backup-status strong,
.backup-status small {
  display: block;
}

.backup-status strong {
  font-size: 12px;
}

.backup-status small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
