.history-nav { margin: 16px 10px; color: var(--muted); font-size: 12px; }
.history-nav summary { cursor: pointer; padding: 8px 0; }
.history-nav a { display: block; padding: 7px 0; }
.history-nav a:hover { color: var(--green); }
.sidebar { overflow-y: auto; }
.pipeline-tabs, .pipeline-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; }
.pipeline-filters label { flex: 1 1 180px; }
.pipeline-filters input, .pipeline-filters select { width: 100%; }
.compact-page { min-height: 66px; padding-top: 24px; margin-bottom: 18px; }
.compact-page h1 { margin: 0; }
.compact-form .pipeline-filters { margin-bottom: 0; }
.compact-filter { overflow: hidden; }
.compact-filter > summary { padding: 14px 18px; color: var(--green); cursor: pointer; font-weight: 650; }
.compact-filter[open] > summary { border-bottom: 1px solid var(--line); background: #fbfcfb; }
.compact-filter .pipeline-filters { padding: 16px 18px; margin: 0; }
.compact-note { margin: 12px 4px 0; color: var(--muted); font-size: 11px; }
.compact-note summary { width: max-content; color: var(--green); cursor: pointer; }
.compact-note p { max-width: 760px; margin: 8px 0 0; }
.filter-more { flex-basis: 100%; margin-top: 2px; }
.filter-more summary, .bulk-options summary { width: max-content; color: #47715e; cursor: pointer; font-size: 12px; }
.filter-more-grid { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.bulk-options { align-self: center; }
.bulk-options label { display: block; margin-top: 8px; white-space: nowrap; }
.pipeline-letter { white-space: normal; overflow-wrap: anywhere; line-height: 1.8; }
.table-scroll { width: 100%; overflow-x: auto; }
.payment-summary { min-width: 760px; }
.payment-summary th:first-child, .payment-summary td:first-child { min-width: 220px; }
.panel article + article { border-top: 1px solid var(--line); }
.spaced { margin-top: 20px; }
.padded > h2 { margin-bottom: 16px; }
.padded form textarea { width: 100%; min-height: 240px; }
.padded form p > input:not([type=checkbox]), .padded form p > select { width: 100%; }
.panel input[type=checkbox] { display: inline-block; width: 16px; height: 16px; min-height: 0; margin: 0 8px 0 0; vertical-align: middle; accent-color: #245e4c; }
.stage-chip { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #687c72; background: #eef2f0; font-size: 10px; white-space: nowrap; }
.stage-chip.completed, .stage-chip.ready { color: #246b50; background: #e5f3eb; }
.stage-chip.running, .stage-chip.queued, .stage-chip.waiting { color: #536f9e; background: #edf1fb; }
.stage-chip.failed, .stage-chip.blocked, .stage-chip.attention { color: #98473e; background: #fae9e6; }
.case-meta { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mail-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.mail-status > div { display: flex; align-items: center; gap: 10px; }
.mail-status h2 { margin: 0; }
.mail-status > details { color: var(--muted); font-size: 11px; }
.mail-status > details > summary { color: var(--green); cursor: pointer; font-weight: 650; }
.mail-status > details[open] { flex-basis: 100%; }
.mail-status > details ul { padding-left: 18px; }
.disclosure-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(130px, auto) minmax(80px, auto); align-items: center; gap: 14px; padding: 14px 18px; }
.disclosure-row h3, .disclosure-row p { margin: 0; }
.disclosure-row h3 { font-size: 13px; }
.disclosure-row p { margin-top: 3px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.disclosure-row > input { margin: 0 !important; }
.disclosure-spacer { width: 16px; }
.disclosure-state strong, .disclosure-state span { display: block; }
.disclosure-state strong { font-size: 11px; }
.disclosure-state span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.disclosure-row > details summary { color: var(--green); cursor: pointer; font-size: 11px; }
.disclosure-row > details small { max-width: 260px; margin-top: 6px; }
.disclosure-group-action { border-top: 1px solid var(--line); }
.disclosure-group-action > summary { padding: 14px 18px; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 650; }
.disclosure-group-action > div { display: flex; align-items: center; gap: 12px; padding: 0 18px 16px; }
.disclosure-group-action p { margin: 0; }
.bulk-progress progress { display: block; width: 100%; height: 12px; accent-color: #36745d; }
.proxy-settings h2, .proxy-route h3 { margin: 0 0 6px; }
.proxy-settings details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.proxy-settings summary { width: max-content; color: var(--green); cursor: pointer; font-weight: 650; }
.proxy-status { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.proxy-status > span { padding: 5px 8px; border-radius: 999px; background: #f1f5f2; color: var(--muted); font-size: 10px; }
.proxy-status > div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; }
.proxy-status dt { color: var(--muted); font-size: 10px; }
.proxy-status dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 650; }
.proxy-route { margin-top: 16px; }
.proxy-grid { display: grid; grid-template-columns: 2fr .7fr 1.2fr 1.6fr; gap: 10px; margin-top: 10px; }
.proxy-grid label { min-width: 0; color: var(--muted); font-size: 10px; }
.proxy-grid input { width: 100%; margin-top: 5px; }
.proxy-form > .button { margin-top: 14px; }
.wallet-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.wallet-kpis article { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wallet-kpis strong, .wallet-kpis span { display: block; }
.wallet-kpis strong { margin-bottom: 3px; color: var(--ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.wallet-kpis span { color: var(--muted); font-size: 11px; }
.wallet-registration { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 14px 18px; }
.wallet-registration > div strong, .wallet-registration > div span { display: block; }
.wallet-registration > div span, .wallet-registration small, .wallet-registration dt { color: var(--muted); font-size: 11px; }
.wallet-registration dl { display: flex; gap: 20px; margin: 0; }
.wallet-registration dl div { min-width: 74px; }
.wallet-registration dd { margin: 2px 0 0; color: var(--ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet-controls { margin-bottom: 18px; padding: 0; }
.wallet-network-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: center; gap: 10px; padding: 16px 18px; }
.wallet-network-status > div { display: flex; align-items: baseline; gap: 8px; }
.wallet-network-status span { color: var(--muted); font-size: 11px; }
.wallet-controls > details { border-top: 1px solid var(--line); }
.wallet-controls > details > summary { padding: 14px 18px; color: var(--green); cursor: pointer; font-weight: 650; }
.wallet-filters { padding: 0 18px 18px; }
.wallet-bulk { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; padding: 14px 18px; }
.wallet-bulk > div { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.wallet-bulk label { color: var(--muted); font-size: 10px; }
.wallet-bulk select { display: block; min-width: 150px; margin-top: 4px; }
.wallet-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wallet-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.wallet-list-heading h2 { margin: 0; font-size: 18px; }
.wallet-list-heading span { color: var(--muted); font-size: 11px; }
.wallet-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 18px; }
.wallet-card + .wallet-card { border-top: 1px solid var(--line); }
.wallet-card-main { min-width: 0; }
.wallet-card-title, .wallet-card-footer { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.wallet-card-title > div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.wallet-card-title > div > small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.wallet-card .full-address { display: block; max-width: 680px; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.wallet-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.wallet-balances > div { padding: 8px 10px; border-radius: 7px; background: #f7faf8; }
.wallet-balances span, .wallet-balances strong, .wallet-balances small { display: block; }
.wallet-balances span, .wallet-balances small { color: var(--muted); font-size: 10px; }
.wallet-balances strong { margin: 2px 0; font-size: 14px; }
.wallet-unchecked { margin: 8px 0; color: var(--muted); font-size: 10px; }
.wallet-card-footer summary { color: var(--green); cursor: pointer; font-size: 11px; }
.wallet-card-footer small { display: block; margin-top: 8px; line-height: 1.6; }
.compact-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 18px; }
.compact-capabilities .capability { min-width: 0; padding: 14px 0; }
.compact-capabilities .capability:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
.compact-capabilities .capability:nth-child(even) { padding-left: 18px; }
.compact-capabilities .capability:nth-last-child(-n + 2) { border-bottom: 0; }
.compact-capabilities details { margin-top: 7px; }
.compact-capabilities summary { width: max-content; color: var(--green); cursor: pointer; font-size: 10px; }
.compact-capabilities p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.settings-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer; }
.settings-details > summary span { display: flex; align-items: baseline; gap: 9px; }
.settings-details > summary small { font-size: 10px; }
.settings-details[open] > summary { border-bottom: 1px solid var(--line); background: #fbfcfb; }
.provider-list article, .scope-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; }
.provider-list h3, .provider-list p, .scope-list p { margin: 0; }
.provider-list h3 { font-size: 13px; }
.provider-list p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.provider-list details summary, .scope-list details summary { color: var(--green); cursor: pointer; font-size: 10px; }
.provider-list details small, .scope-list details code { display: block; max-width: 420px; margin-top: 6px; overflow-wrap: anywhere; }
.scope-list article > div { min-width: 0; }
.scope-list article > div > strong, .scope-list article > div > small { display: block; }
.scope-list article > div > small { margin: 3px 0 5px; }
.attempt-list p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 11px; }
.attempt-list p:last-child { border-bottom: 0; }
.attempt-list span { color: var(--muted); text-align: right; }
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(90px, auto); align-items: center; gap: 16px; padding: 14px 18px; }
.report-row h3, .report-row p { margin: 0; }
.report-row p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.report-row details summary, .case-links summary { color: var(--green); cursor: pointer; font-size: 11px; }
.report-row details small { max-width: 320px; margin-top: 7px; }
.case-heading h1 { margin: 7px 0 3px; }
.case-heading .full-address { max-width: 720px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.case-links { margin: -4px 0 14px; }
.case-links .pipeline-tabs { align-items: center; margin: 10px 0 0; }
.case-links .hash { margin-left: auto; color: var(--muted); font-size: 9px; }
@media (max-width: 760px) {
  .pipeline-tabs .button { white-space: normal; }
  .history-nav { margin-top: 8px; }
  .proxy-status, .proxy-grid { grid-template-columns: 1fr; }
  .wallet-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-network-status { grid-template-columns: 1fr; }
  .wallet-registration { grid-template-columns: 1fr; }
  .wallet-registration dl { justify-content: space-between; }
  .wallet-bulk, .wallet-bulk > div, .wallet-bulk .button { width: 100%; }
  .wallet-bulk .button { text-align: center; }
  .wallet-list-heading, .wallet-card-title, .wallet-card-footer { align-items: stretch; flex-direction: column; }
  .wallet-balances { grid-template-columns: 1fr; }
  .compact-capabilities { grid-template-columns: 1fr; }
  .compact-capabilities .capability:nth-child(odd), .compact-capabilities .capability:nth-child(even) { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mail-status, .mail-status > div { align-items: flex-start; flex-direction: column; }
  .mail-status > details { width: 100%; }
  .disclosure-row { grid-template-columns: auto minmax(0, 1fr); }
  .disclosure-state, .disclosure-row > details { grid-column: 2; }
  .disclosure-group-action > div, .provider-list article, .scope-list article, .attempt-list p { align-items: stretch; flex-direction: column; }
  .attempt-list span { text-align: left; }
  .report-row { grid-template-columns: 1fr; }
  .case-heading { align-items: stretch; }
  .case-heading form, .case-heading .button { width: 100%; }
  .case-links .hash { width: 100%; margin-left: 0; }
}

.pipeline-heading { align-items: center; min-height: 66px; padding-top: 24px; margin-bottom: 18px; }
.pipeline-heading h1 { margin: 0; }
.pipeline-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pipeline-safety { margin-bottom: 20px; }
.pipeline-primary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 20px; }
.pipeline-primary-copy h2 { margin: 12px 0 8px; font-size: clamp(22px, 3vw, 30px); }
.pipeline-primary-copy > p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.65; }
.pipeline-status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pipeline-status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.pipeline-status::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.pipeline-status.running { color: #246b50; background: #e5f3eb; }
.pipeline-status.stopped { color: #95601b; background: #fcf0df; }
.pipeline-updated { color: var(--muted); font-size: 11px; }
.pipeline-explanation { margin-top: 14px !important; padding: 12px 14px; border-left: 3px solid #d3a24e; background: #fff8eb; color: #725327 !important; }
.pipeline-primary-action { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 9px; min-width: 220px; }
.pipeline-primary-action .button { width: 100%; }
.pipeline-primary-action small { max-width: 240px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.pipeline-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding-top: 17px; border-top: 1px solid var(--line); }
.pipeline-kpis a { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: inherit; background: #fbfcfb; }
.pipeline-kpis a:hover { background: #f1f7f3; }
.pipeline-kpis strong { display: block; margin-bottom: 4px; font-size: 22px; font-variant-numeric: tabular-nums; }
.pipeline-kpis span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.pipeline-section-heading { align-items: end; }
.pipeline-section-heading .eyebrow { margin: 0 0 5px; }
.pipeline-section-heading h2 { margin: 0; }
.pipeline-section-heading > span { max-width: 320px; color: var(--muted); font-size: 11px; text-align: right; }
.pipeline-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pipeline-lane { padding: 17px 18px; border-top: 0 !important; border-right: 1px solid var(--line); }
.pipeline-lane:last-child { border-right: 0; }
.pipeline-lane-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pipeline-lane-heading h3 { margin: 0; font-size: 16px; }
.pipeline-lane-state { padding: 4px 7px; border-radius: 5px; color: #687c72; background: #eef2f0; font-size: 10px; white-space: nowrap; }
.pipeline-lane-state.running { color: #246b50; background: #e5f3eb; }
.pipeline-lane-state.waiting { color: #95601b; background: #fcf0df; }
.pipeline-lane-state.attention { color: #98473e; background: #fae9e6; }
.pipeline-lane dl, .pipeline-scanner dl { margin: 12px 0; }
.pipeline-lane dl > div, .pipeline-scanner dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid #edf1ef; font-size: 10px; }
.pipeline-lane dt, .pipeline-scanner dt { color: var(--muted); }
.pipeline-lane dd, .pipeline-scanner dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.pipeline-scanners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding: 17px 18px; }
.pipeline-scanner { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }
.pipeline-scanner.legacy { background: #f7f7f6; }
.pipeline-scanner-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pipeline-scanner-heading h3 { margin: 0; font-size: 17px; }
.pipeline-scanner-heading span { padding: 4px 6px; border-radius: 4px; color: #776b58; background: #eeeae2; font-size: 9px; }
.pipeline-scanner > p { margin: 12px 0 8px; color: var(--muted); font-size: 11px; }
.pipeline-scanner > p strong { color: var(--ink); font-size: 21px; }
.pipeline-scanner progress { display: block; width: 100%; height: 10px; accent-color: #36745d; }
.pipeline-scanner dl { margin-bottom: 0; }
.pipeline-footnote { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.pipeline-footnote summary { width: max-content; color: var(--green); cursor: pointer; }
.pipeline-footnote p { max-width: 760px; margin: 8px 0 0; }
.pipeline-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer; list-style-position: inside; }
.pipeline-details > summary span:first-child { display: inline-flex; flex-direction: column; gap: 5px; }
.pipeline-details > summary strong { font-size: 15px; }
.pipeline-details > summary small { color: var(--muted); font-size: 11px; font-weight: 400; }
.pipeline-details[open] > summary { border-bottom: 1px solid var(--line); background: #fbfcfb; }
.pipeline-attention-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pipeline-attention-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); color: inherit; }
.pipeline-attention-list a:nth-child(odd) { border-right: 1px solid var(--line); }
.pipeline-attention-list a:hover { background: #fff9ef; }
.pipeline-attention-list strong, .pipeline-attention-list small { display: block; }
.pipeline-attention-list small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pipeline-attention-list b { flex: 0 0 auto; font-size: 11px; }
.pipeline-case-list > article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.pipeline-case-list h3 { margin: 0 0 8px; font-size: 14px; }
.pipeline-case-list p { margin: 0; }
.pipeline-case-list small { display: block; margin-top: 8px; color: #8b642c; font-size: 11px; }
.pipeline-history-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pipeline-history-columns > div { min-width: 0; padding: 22px; }
.pipeline-history-columns > div + div { border-left: 1px solid var(--line); }
.pipeline-history-columns h3 { margin: 0 0 12px; font-size: 14px; }
.pipeline-history-columns .operation-list a { padding-left: 0; padding-right: 0; }

@media (max-width: 900px) {
  .pipeline-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline-lanes, .pipeline-scanners { grid-template-columns: 1fr; }
  .pipeline-lane { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipeline-lane:last-child { border-bottom: 0; }
}

@media (max-width: 650px) {
  .pipeline-heading { align-items: stretch; }
  .pipeline-heading-actions, .pipeline-heading-actions .button { width: 100%; }
  .pipeline-heading-actions .button { flex: 1; text-align: center; }
  .pipeline-primary { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .pipeline-primary-action { min-width: 0; }
  .pipeline-primary-action small { max-width: none; }
  .pipeline-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .pipeline-kpis a { padding: 12px; }
  .pipeline-kpis strong { font-size: 22px; }
  .pipeline-section-heading { align-items: start; flex-direction: column; }
  .pipeline-section-heading > span { text-align: left; }
  .pipeline-scanners { padding: 16px; }
  .pipeline-attention-list, .pipeline-history-columns { grid-template-columns: 1fr; }
  .pipeline-attention-list a:nth-child(odd) { border-right: 0; }
  .pipeline-history-columns > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pipeline-case-list > article { align-items: stretch; flex-direction: column; }
  .pipeline-case-list form, .pipeline-case-list .button { width: 100%; }
}
