.origination-root { padding: 28px 34px 48px; color: var(--texto, #20242b); }
.orig-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.orig-header h2 { margin: 3px 0 4px; font-size: clamp(24px, 3vw, 34px); }
.orig-header p { margin: 0; color: #59616d; font-size: 13px; }
.orig-eyebrow { color: #d45b24; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.orig-tabs { display: flex; gap: 6px; margin: 0 0 22px; padding: 5px; overflow-x: auto; background: #edf1f4; border-radius: 11px; }
.orig-tabs button { padding: 9px 13px; border: 0; border-radius: 8px; background: transparent; color: #5a6370; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.orig-tabs button:hover { background: rgba(255, 255, 255, .62); }
.orig-tabs button.active { background: #fff; color: #2f2453; box-shadow: 0 2px 8px rgba(34, 27, 55, .1); }
.orig-metrics { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.orig-metrics-six { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
.orig-metric { position: relative; overflow: hidden; min-height: 105px; padding: 17px 18px; background: #fff; border: 1px solid #dce3ea; border-radius: 12px; box-shadow: 0 8px 24px rgba(35, 30, 61, .055); }
.orig-metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #5d419f; }
.orig-metric.success::before { background: #25765f; }
.orig-metric.warning::before { background: #d79227; }
.orig-metric.danger::before { background: #a33b4b; }
.orig-metric.blocked::before { background: #6c727c; }
.orig-metric-label, .orig-metric-detail { display: block; color: #68717d; font-size: 11.5px; }
.orig-metric-value { display: block; margin: 5px 0 2px; color: #211d36; font-size: 30px; font-variant-numeric: tabular-nums; }
.orig-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 10px; }
.orig-filters { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(170px, 1fr) minmax(145px, .8fr) minmax(145px, .8fr) auto; gap: 10px; align-items: end; margin: 0 0 14px; padding: 14px; background: #fff; border: 1px solid #dce3ea; border-radius: 12px; }
.orig-filter-field { display: grid; gap: 5px; color: #646d78; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.orig-filter { min-width: 210px; padding: 9px 11px; background: #fff; border: 1px solid #ccd5de; border-radius: 8px; color: #2d3239; }
.orig-filter-field .orig-filter { min-width: 0; width: 100%; box-sizing: border-box; }
.orig-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #dce3ea; border-radius: 12px; box-shadow: 0 8px 24px rgba(35, 30, 61, .045); }
.orig-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 12.5px; }
.orig-table th { padding: 11px 13px; background: #f3f6f8; color: #59616d; text-align: left; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.orig-table td { padding: 13px; border-top: 1px solid #edf1f4; vertical-align: top; }
.orig-table tbody tr:hover { background: #fbfcfd; }
.orig-sub { display: block; margin-top: 3px; color: #757e89; font-size: 11px; font-weight: 400; }
.orig-message { max-width: 310px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orig-reason { max-width: 220px; color: #765a24; white-space: normal; }
.orig-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #edf2f7; color: #415165; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.orig-status.ok { background: #e7f4ef; color: #17624d; }
.orig-status.warn { background: #fbf1d9; color: #765615; }
.orig-status.danger { background: #f8e8eb; color: #852a39; }
.orig-status.blocked { background: #eceff2; color: #545c66; }
.orig-source-active { color: #17624d; font-weight: 700; }
.orig-source-blocked { color: #7a5d23; font-weight: 700; }
.orig-actions { text-align: right; }
.orig-actions .btn { margin: 3px; }
.orig-connection-card { max-width: 900px; padding: 18px 20px; background: #fff; border: 1px solid #dce3ea; border-radius: 12px; box-shadow: 0 8px 24px rgba(35, 30, 61, .045); }
.orig-connection-card .orig-section-title { margin-top: 0; }
.orig-config-list { margin: 12px 0 0; padding-left: 22px; color: #505965; font: 600 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.orig-qr { display: block; width: min(280px, 100%); margin: 20px auto; border: 12px solid #fff; border-radius: 8px; box-shadow: 0 4px 18px rgba(35, 30, 61, .14); }
.orig-pairing-code { margin: 16px 0; padding: 12px; background: #f3f0fa; border-radius: 8px; color: #3d2f66; text-align: center; font: 800 18px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.orig-empty { padding: 42px !important; color: #737d88; text-align: center; }
.orig-alert { margin-bottom: 14px; padding: 11px 13px; background: #f8e8eb; border: 1px solid #e2b7bf; border-radius: 8px; color: #7b2937; }
.orig-section-title { margin: 26px 0 10px; color: #29233d; font-size: 16px; }
.orig-section-intro { margin: 0 0 12px; color: #68717d; font-size: 13px; }
.orig-sources-table { min-width: 1050px; }
.orig-history { position: relative; display: grid; gap: 10px; max-width: 920px; padding-left: 20px; }
.orig-history::before { content: ""; position: absolute; inset: 8px auto 8px 5px; width: 2px; background: #d9dfe6; }
.orig-history-item { position: relative; padding: 14px 17px; background: #fff; border: 1px solid #dce3ea; border-radius: 10px; }
.orig-history-item::before { content: ""; position: absolute; left: -20px; top: 19px; width: 10px; height: 10px; background: #5d419f; border: 3px solid #f4f6f8; border-radius: 50%; }
.orig-history-item time { display: block; color: #7a838e; font-size: 10.5px; }
.orig-history-item strong { display: block; margin-top: 2px; color: #28213f; font-size: 12px; }
.orig-history-item p { margin: 5px 0 0; color: #505965; font-size: 12.5px; }
@media (max-width: 820px) {
  .origination-root { padding: 20px 16px 38px; }
  .orig-header { align-items: flex-start; }
  .orig-metrics { grid-template-columns: repeat(2, 1fr); }
  .orig-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .orig-header { display: grid; }
  .orig-metrics, .orig-metrics-six, .orig-filters { grid-template-columns: 1fr; }
}
