main {
  width: min(100% - 36px, 1320px);
}

.bridge-shell {
  grid-template-columns: minmax(270px, .82fr) minmax(470px, 1.25fr) minmax(270px, .82fr);
  height: 650px;
  min-height: 0;
}

.bridge-shell.has-transaction {
  height: 720px;
}

.brand-panel {
  justify-content: flex-start;
  height: 100%;
  padding: 266px 25px 24px;
}

.brand-panel::after {
  border-right: 1px solid var(--line);
}

.portrait-frame {
  width: min(92%, 220px);
  top: 27px;
}

.brand-copy h2 {
  font-size: 27px;
  line-height: 1.03;
  margin: 13px 0 11px;
}

.brand-copy p {
  font-size: 11px;
}

.protocol-row {
  margin-top: 18px;
  padding-top: 14px;
}

.bridge-card {
  height: 100%;
  padding: 32px;
  overflow-y: auto;
}

.bridge-card .result {
  margin-top: 12px;
  padding: 13px;
  border-color: rgba(82, 248, 244, .16);
  background: rgba(82, 248, 244, .035);
}

.tx-result-heading,
.tx-result-row,
.tx-result-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tx-result-heading {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #c8ccda;
  font-weight: 700;
}

.tx-result-heading strong {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(82, 248, 244, .08);
  font-size: 8px;
  text-transform: uppercase;
}

.tx-result-row {
  padding: 3px 0;
  color: var(--muted);
}

.tx-result-row strong,
.tx-result-row code {
  color: #d7dae4;
  font: 600 10px "Space Grotesk";
  text-align: right;
}

.tx-result-links {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.tx-result-links a {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.activity-panel {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 29px 24px 22px;
  background: linear-gradient(155deg, rgba(10, 13, 20, .94), rgba(5, 7, 12, .95));
}

.activity-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.activity-heading h3 {
  margin: 6px 0 0;
  font: 600 23px/1 "Space Grotesk";
  letter-spacing: -.045em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(82, 248, 244, .18);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(82, 248, 244, .05);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.activity-intro {
  margin: 13px 0 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.activity-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(82, 248, 244, .18) transparent;
  scrollbar-width: thin;
}

.activity-item {
  display: block;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 12px;
  color: inherit;
  background: rgba(5, 7, 12, .58);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.activity-item:hover {
  transform: translateY(-1px);
  border-color: rgba(82, 248, 244, .2);
  background: rgba(82, 248, 244, .035);
}

.activity-top,
.activity-meta,
.activity-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.activity-amount {
  overflow: hidden;
  font: 600 13px "Space Grotesk";
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-status {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 999px;
  color: #c8b4ff;
  background: rgba(156, 105, 255, .09);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.activity-status.delivered {
  color: var(--cyan);
  background: rgba(82, 248, 244, .08);
}

.activity-status.failed {
  color: var(--red);
  background: rgba(255, 141, 154, .08);
}

.activity-route {
  justify-content: flex-start;
  margin-top: 9px;
  color: #c7cad5;
  font-size: 9px;
  font-weight: 700;
}

.activity-route .route-arrow {
  color: var(--cyan);
}

.activity-meta {
  margin-top: 7px;
  color: #666d7e;
  font-size: 8px;
}

.activity-meta code {
  color: #858ca0;
  font: inherit;
}

.activity-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  place-items: center;
  padding: 30px 12px;
  color: var(--muted);
  text-align: center;
}

.activity-empty strong {
  margin-top: 10px;
  color: #c8ccda;
  font: 600 12px "Space Grotesk";
}

.activity-empty small {
  margin-top: 4px;
  font-size: 9px;
}

.activity-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(82, 248, 244, .12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: activity-spin .8s linear infinite;
}

.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #555c6d;
  font-size: 8px;
}

.activity-footer button {
  border: 0;
  padding: 3px;
  color: var(--cyan);
  background: transparent;
  font: 700 8px "DM Sans";
  cursor: pointer;
  text-transform: uppercase;
}

@keyframes activity-spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  main { width: min(100% - 30px, 860px); }
  .bridge-shell, .bridge-shell.has-transaction { grid-template-columns: minmax(210px, .62fr) minmax(460px, 1.38fr); height: auto; }
  .brand-panel, .bridge-card, .activity-panel { height: auto; }
  .activity-panel { grid-column: 1 / -1; min-height: 360px; }
  .activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; }
  .activity-empty { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  main { width: min(100% - 24px, 580px); }
  .bridge-shell { grid-template-columns: minmax(0, 1fr); }
  .brand-panel { min-height: 255px; }
  .brand-panel::after { border-right: 0; border-bottom: 1px solid var(--line); }
  .portrait-frame { width: 220px; top: 6px; right: -15px; left: auto; transform: none; }
  .brand-copy { max-width: 58%; }
  .brand-copy h2 { font-size: 25px; }
  .protocol-row { max-width: 58%; }
  .activity-panel { grid-column: auto; }
}

@media (max-width: 520px) {
  .activity-panel { min-height: 420px; padding: 24px 18px 18px; }
  .activity-list { display: flex; max-height: 360px; }
  .activity-heading h3 { font-size: 21px; }
}
