.activity-page .app-shell { grid-template-rows: auto 1fr auto; }
.activity-page .topbar { grid-template-columns: 210px minmax(0,1fr); min-height: 90px; }
.activity-page .topbar .top-tabs { justify-self: end; flex-wrap: wrap; }
.activity-page .topbar .top-tabs a { flex: none; min-width: 0; }
.activity-page .activity-dashboard { width: 100%; max-width: 1440px; margin: 0 auto; overflow: visible; }
.activity-panel { padding: 24px; margin: 20px 0; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); min-width: 0; }
.activity-panel h2 { font-size: 17px; font-weight: 550; margin: 0 0 14px; }
.activity-panel p { line-height: 1.65; }
.activity-note { color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.activity-panel summary { cursor: pointer; font-size: 13px; }
.activity-page .overview-kpis .metric-unavailable { font-size: 18px; color: var(--muted); line-height: 1.6; }
.activity-page label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; min-width: 0; }
.activity-page input, .activity-page select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 13px; }
.activity-page .recipient-search { font-size: 15px; color: var(--text); }
.activity-page .recipient-search input { min-height: 48px; }
.schedule-filter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.schedule-filter-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.schedule-filter-actions button:first-child { color: var(--accent-strong); border: 1px solid var(--accent); }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th { font-size: 11px; color: var(--muted); font-weight: 550; text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.schedule-table td { padding: 18px 10px; font-size: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.schedule-table tbody tr { cursor: pointer; }
.schedule-table tbody tr:hover { background: var(--surface-2); }
.activity-value { display: inline-flex; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.activity-value code { overflow-wrap: anywhere; font-size: 12px; }
.activity-value .copy-button, .activity-value .cexplorer-icon-button { flex: 0 0 auto; }
.activity-link { color: var(--accent-strong); font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.activity-link:hover { text-decoration: underline; }
.schedule-status { display: inline-block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.schedule-status[data-status="scheduled"] { color: var(--current); border-color: #8aa89955; }
.schedule-status[data-status="due"] { color: var(--peak); border-color: #c5a56b55; }
.schedule-status[data-status="payment_observed"] { color: var(--current); border-color: #8aa89966; }
.schedule-status[data-status="withdrawal_observed"] { color: var(--peak); border-color: #c5a56b66; }
.schedule-amount { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 220px; }
.schedule-chart { height: 190px; }
.schedule-chart svg { width: 100%; height: 100%; }
.schedule-chart text { fill: var(--muted); font-size: 11px; }
.activity-chart-values { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 8px 24px; max-height: 260px; overflow: auto; padding-right: 16px; }
.schedule-back { display: inline-block; padding: 12px 0; }
.schedule-detail-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.activity-panel .schedule-hero-amount { font-size: clamp(24px,4vw,40px); margin: 24px 0 8px; color: var(--accent-strong); font-weight: 550; overflow-wrap: anywhere; }
.schedule-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.schedule-field { min-width: 0; }
.schedule-field dt { font-size: 11px; color: var(--muted); margin: 0 0 10px; }
.schedule-field dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.schedule-lifecycle { padding: 20px 0 4px; }
.lifecycle-main { display: flex; list-style: none; padding: 0; margin: 0; gap: 28px; }
.lifecycle-node { position: relative; flex: 1; min-width: 0; display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }
.lifecycle-node:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 40%; color: var(--subtle); }
.lifecycle-node strong, .lifecycle-cancel strong { font-size: 13px; font-weight: 550; }
.lifecycle-node small, .lifecycle-cancel small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.lifecycle-node.observed { border-color: var(--current); }
.lifecycle-node.current { border-color: var(--current); animation: schedule-pulse 2.6s ease-in-out infinite; }
.lifecycle-node.current.observed { animation: none; }
.lifecycle-node.neutral { border-color: var(--muted); }
.lifecycle-node.unobserved, .lifecycle-cancel.unobserved { opacity: .62; }
.lifecycle-cancel { position: relative; display: grid; gap: 6px; border: 1px dashed #c5a56b66; border-radius: 6px; padding: 14px 18px; width: fit-content; margin: 28px 0 0 27%; color: var(--peak); }
.lifecycle-cancel::before { content: ""; position: absolute; height: 28px; top: -29px; left: 20px; border-left: 1px dashed var(--subtle); }
.lifecycle-cancel.observed { border-style: solid; background: var(--bg); }
.schedule-output-refs { display: flex; flex-direction: column; gap: 10px; }
.schedule-transaction-observations { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.schedule-transaction-observations h3 { font-size: 14px; font-weight: 550; }
.schedule-outcome .schedule-receipt, .schedule-outcome .schedule-refund { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
@keyframes schedule-pulse { 0%,100% { box-shadow: 0 0 0 0 #8aa89900; } 50% { box-shadow: 0 0 0 4px #8aa89920; } }
.schedule-recipient { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 6px; }
.schedule-recipient strong { color: var(--accent-strong); font-size: 17px; overflow-wrap: anywhere; }
.schedule-events { list-style: none; padding: 0; }
.schedule-events li { display: grid; grid-template-columns: minmax(160px,1fr) minmax(200px,1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.schedule-events small { color: var(--muted); }
.schedule-technical pre { overflow: auto; max-height: 500px; background: var(--bg); padding: 16px; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.babel-usage { border-left: 3px solid var(--peak); }
.babel-usage > p:first-of-type { color: var(--peak); font-size: 20px; }
.babel-token-config { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.babel-token-config strong { display: block; margin-bottom: 5px; }
.babel-token-config code { color: var(--muted); overflow-wrap: anywhere; }
.activity-page .history-table { min-width: 0; }
.activity-page .history-page-size { display: flex; }
.activity-page .history-page-size select { width: auto; }
.activity-page [hidden] { display: none !important; }
@media (max-width: 1100px) { .schedule-created { display: none; } .activity-page .topbar .top-tabs { justify-self: center; } .schedule-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .activity-page .topbar { grid-template-columns: minmax(0,1fr); }
  .activity-page .topbar .top-tabs { justify-content: center; width: 100%; }
  .activity-page .topbar .top-tabs a { padding: 9px 8px; }
  .activity-panel { padding: 18px 14px; }
  .activity-page input, .activity-page select { font-size: 16px; }
  .schedule-filter-grid, .schedule-fields { grid-template-columns: minmax(0,1fr); }
  .schedule-table thead { display: none; }
  .schedule-table tbody, .schedule-table tr { display: block; width: 100%; }
  .schedule-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .schedule-table td { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 0; padding: 9px 0; max-width: none; width: 100%; }
  .schedule-table td::before { content: attr(data-label); font-size: 11px; color: var(--muted); }
  .schedule-table .schedule-created { display: none; }
  .lifecycle-main { flex-direction: column; gap: 24px; }
  .lifecycle-node:not(:last-child)::after { content: "↓"; top: auto; bottom: -23px; left: 20px; right: auto; }
  .lifecycle-cancel { margin-left: 30px; }
  .schedule-events li { grid-template-columns: minmax(0,1fr); }
  .activity-page .panel-header { flex-wrap: wrap; gap: 14px; }
  .activity-page .overview-kpis .metric-unavailable { font-size: 15px; }
  .activity-page .history-table { min-width: 410px; }
  .babel-token-config { grid-template-columns: minmax(0,1fr) auto; }
  .babel-token-config > span { grid-column: 1; }
  .babel-token-config .copy-button { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .lifecycle-node.current { animation: none; box-shadow: 0 0 0 2px #8aa89920; } }
