.sidebar nav a #activityNavLabel { width: auto; font: inherit; text-align: left; }
.activity-page { --activity-muted: #73766f; --activity-soft: #f7f6f9; }
.activity-page [hidden] { display: none !important; }
.activity-page button { cursor: pointer; font: inherit; }
.activity-page button:disabled { opacity: .45; cursor: default; }
.activity-page :is(button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.activity-page svg { height: 19px; width: 19px; flex-shrink: 0; }
.activity-page :is(h1, h2, h3) { font-family: inherit; }
.activity-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.activity-heading h1 { margin: 0 0 7px; font-size: 30px; font-weight: 650; letter-spacing: -.04em; }
.activity-heading p { margin: 0; color: var(--activity-muted); font-size: 14px; }
.activity-heading-actions { flex-shrink: 0; }
.activity-heading .secondary { height: 38px; font-size: 13px; border-radius: 8px; }
.activity-summary { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.activity-summary button { border: 0; border-bottom: 2px solid transparent; padding: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; background: none; color: var(--activity-muted); font-size: 13px; white-space: nowrap; }
.activity-summary button > span { padding: 2px 7px; background: #ecece7; color: #6d7067; border-radius: 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
.activity-summary button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.activity-summary button[aria-pressed="true"] > span { background: var(--accent-soft); color: var(--accent); }
.activity-workspace { border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.activity-filters { display: flex; align-items: center; gap: 10px; padding: 17px 20px 4px; }
.activity-filters input, .activity-filters select { font: inherit; min-width: 0; height: 38px; background: #fff; color: var(--ink); font-size: 13px; }
.activity-filters select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 26px 7px 10px; max-width: 190px; }
.activity-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 120px; color: #8b8c85; }
.activity-search input { border: 0; padding: 0; width: 100%; outline-offset: 0; }
.activity-text-button { border: 0; background: none; color: var(--accent); padding: 6px 0; font-size: 12px !important; font-weight: 500 !important; white-space: nowrap; }
.activity-filters .activity-text-button { color: var(--activity-muted); }
.activity-live { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 20px 15px; color: var(--activity-muted); font-size: 11px; }
.activity-list-head, .activity-row { display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(155px, 1fr) minmax(120px, .7fr) 115px 30px; gap: 20px; align-items: center; padding: 18px 20px; }
.activity-list-head { padding-block: 10px; background: #fafaf8; border-block: 1px solid #eeeee8; color: var(--activity-muted); font-size: 11px; }
.activity-row { border-bottom: 1px solid #eeeee8; }
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { background: #fcfbfe; }
.activity-task { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.activity-kind-icon { display: grid; place-items: center; height: 34px; width: 34px; flex-shrink: 0; border-radius: 9px; background: #f4f2f8; color: #8978a8; }
.activity-task > div { min-width: 0; }
.activity-task-title { display: block; border: 0; background: none; padding: 0; color: var(--ink); text-align: left; font-size: 13px !important; font-weight: 600 !important; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-task-title:hover { color: var(--accent); text-decoration: underline; }
.activity-task p { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; color: var(--activity-muted); font-size: 11px; }
.activity-task small { display: block; font-size: 11px; line-height: 1.5; color: var(--activity-muted); }
.activity-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; padding: 4px 7px; font-size: 11px; line-height: 1.4; background: #f1f0eb; color: #6f7068; white-space: nowrap; }
.activity-badge i { background: currentColor; width: 5px; height: 5px; border-radius: 50%; }
.activity-badge[data-state="running"] { background: #f1ecfb; color: #7658b9; }
.activity-badge[data-state="completed"] { background: #edf6f0; color: #327453; }
.activity-badge[data-state="needs_attention"], .activity-badge[data-state="waiting"], .activity-badge[data-state="stale"] { background: #fbf2e5; color: #8b6324; }
.activity-badge[data-state="failed"] { background: #fbeeea; color: #a85042; }
.activity-progress { margin-top: 10px; max-width: 480px; }
.activity-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--activity-muted); margin-bottom: 6px; }
.activity-track { height: 4px; border-radius: 4px; background: #eeeaf5; overflow: hidden; }
.activity-track i { display: block; height: 100%; border-radius: inherit; background: #a089d5; }
.activity-progress-note { font-size: 11px; color: var(--activity-muted); line-height: 1.6; margin-top: 8px; }
.activity-progress-note:empty { display: none; }
.activity-progress-note small { display: block; margin-top: 4px; font-size: 12px; }
.activity-row-results { display: grid; gap: 5px; font-size: 11px; color: var(--activity-muted); }
.activity-row-results strong { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.activity-row time { font-size: 11px; line-height: 1.7; color: var(--activity-muted); }
.activity-icon-button { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; border-radius: 8px; border: 0; padding: 6px; background: none; color: #8b8c84; }
.activity-icon-button:hover { background: var(--activity-soft); color: var(--accent); }
.activity-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--activity-muted); font-size: 12px; }
.activity-pagination > div { display: flex; align-items: center; gap: 14px; }
.activity-pagination button { width: 33px; height: 32px; padding: 0; border-radius: 7px; }
.activity-footnote { font-size: 11px; line-height: 1.7; color: var(--activity-muted); margin: 16px 2px; }
.activity-empty { text-align: center; padding: 65px 20px; }
.activity-empty > svg { width: 32px; height: 32px; color: #a196b0; }
.activity-empty h2 { font-size: 17px; margin: 15px 0 8px; }
.activity-empty p { color: var(--activity-muted); max-width: 420px; margin: auto; font-size: 13px; line-height: 1.7; }
.activity-empty button { margin-top: 20px; font-size: 13px; }
.activity-error { color: #9b584c; background: #fcf3f0; padding: 14px 20px; font-size: 13px; line-height: 1.6; }
.activity-notice { background: #edf6f0; color: #327453; font-size: 12px; padding: 12px 26px; }
.activity-loading { padding: 45px 20px; color: var(--activity-muted); text-align: center; font-size: 13px; }
.activity-dialog { width: min(650px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; margin: 0 0 0 auto; border-radius: 0; padding: 0; overflow: hidden; background: #fff; color: var(--ink); }
.activity-dialog[open] { display: flex; flex-direction: column; }
.activity-dialog::backdrop { background: rgb(27 26 33 / 23%); backdrop-filter: blur(1px); }
.activity-dialog > header { display: flex; align-items: flex-start; gap: 8px; padding: 25px 24px 20px; flex-shrink: 0; }
.activity-dialog > header > div { min-width: 0; flex: 1; margin-right: 12px; }
.activity-dialog > header p { font-size: 10px; letter-spacing: .12em; color: var(--activity-muted); margin: 0 0 8px; }
.activity-dialog h2 { font-size: 19px; margin: 0; overflow-wrap: anywhere; line-height: 1.45; max-height: 110px; overflow: auto; }
.activity-detail-tabs { display: flex; gap: 24px; padding: 0 26px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.activity-detail-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 12px 0; font-size: 13px; color: var(--activity-muted); }
.activity-detail-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.activity-detail-body { padding: 25px 26px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.activity-detail-body h3 { font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.activity-detail-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--activity-muted); }
.activity-explanation { margin: 22px 0; }
.activity-explanation strong { font-size: 15px; font-weight: 600; }
.activity-explanation p, .activity-muted { font-size: 13px; line-height: 1.8; color: var(--activity-muted); }
.activity-explanation p { margin: 6px 0 0; }
.activity-detail-body .activity-progress { max-width: none; margin-block: 24px; }
.activity-detail-body .activity-progress > div:first-child { font-size: 12px; }
.activity-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 0; border-block: 1px solid var(--line); }
.activity-results > span { display: grid; gap: 5px; font-size: 12px; color: var(--activity-muted); }
.activity-results strong { color: var(--ink); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.activity-result { margin-top: 28px; }
.activity-result pre { font: inherit; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; background: #f8f7fa; padding: 18px; border-radius: 9px; margin: 0; color: #555861; }
.activity-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); margin: 28px 0 0; }
.activity-meta dt { color: var(--activity-muted); font-size: 11px; }
.activity-meta dd { margin: 5px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.activity-reference { grid-column: 1 / -1; }
.activity-reference code { font-size: 11px; color: var(--activity-muted); }
.activity-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 20px; }
.activity-usage > div { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 9px; }
.activity-usage span { font-size: 11px; color: var(--activity-muted); }
.activity-usage strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.activity-timeline { padding: 8px 0 0; margin: 0; list-style: none; }
.activity-timeline li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.activity-timeline li > div { flex: 1; min-width: 0; }
.activity-step-number { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: #f2f0f6; color: #8b7b9e; font-size: 11px; }
.activity-step-number[data-state="processed"], .activity-step-number[data-state="completed"] { background: #edf6f0; color: #408064; }
.activity-timeline strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.activity-timeline small { display: block; margin-top: 5px; color: var(--activity-muted); font-size: 11px; }
.activity-timeline p { font-size: 12px; color: #9a6b2a; line-height: 1.6; margin-bottom: 0; }
.activity-step-state { font-size: 11px; color: var(--activity-muted); max-width: 90px; text-align: right; }
.activity-no-steps { font-size: 13px; line-height: 1.7; color: var(--activity-muted); background: #fafaf8; padding: 18px; border-radius: 9px; margin-top: 20px; }
.activity-detail-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 18px 26px; border-top: 1px solid var(--line); flex-shrink: 0; }
.activity-detail-actions:empty { display: none; }
.activity-detail-actions .primary, .activity-detail-actions .secondary, .activity-retry-confirm button { font-size: 12px; min-height: 38px; height: auto; padding: 9px 13px; border-radius: 8px; }
.activity-retry-confirm { padding: 18px 26px; background: #fbf6eb; border-top: 1px solid #eee2ca; flex-shrink: 0; }
.activity-retry-confirm p, .activity-retry-time { font-size: 12px; line-height: 1.7; }
.activity-retry-confirm p { margin: 0 0 12px; }
.activity-retry-confirm > div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1150px) {
  .activity-list-head, .activity-row { grid-template-columns: minmax(180px, 1fr) minmax(140px, .8fr) 115px 28px; gap: 15px; }
  .activity-list-head > span:nth-child(4), .activity-row > time { display: none; }
}
@media (max-width: 700px) {
  .activity-heading { margin-bottom: 22px; align-items: flex-start; }
  .activity-heading h1 { font-size: 27px; }
  .activity-heading p { font-size: 12px; }
  .activity-heading .secondary { width: 36px; padding: 0; }
  .activity-heading .secondary span { display: none; }
  .activity-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border: 0; margin-bottom: 16px; }
  .activity-summary button { justify-content: space-between; padding: 9px 10px; border: 0; border-radius: 7px; font-size: 12px; }
  .activity-summary button[aria-pressed="true"] { background: var(--accent-soft); }
  .activity-filters { flex-wrap: wrap; padding: 14px 16px 4px; }
  .activity-search { flex-basis: 100%; }
  .activity-filters select { flex: 1; max-width: none; width: 110px; }
  .activity-live { padding-inline: 16px; font-size: 10px; }
  .activity-live > span:last-child { display: none; }
  .activity-list-head { display: none; }
  .activity-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 14px; padding: 18px 16px; }
  .activity-task { grid-column: 1; grid-row: 1; }
  .activity-task-title { font-size: 14px !important; white-space: normal; overflow-wrap: anywhere; }
  .activity-open { grid-column: 2; grid-row: 1; }
  .activity-state { grid-column: 1 / -1; padding-left: 46px; }
  .activity-row-results { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-left: 46px; }
  .activity-progress { max-width: none; }
  .activity-dialog > header { padding: 22px 18px 15px; }
  .activity-dialog h2 { font-size: 17px; }
  .activity-dialog > header > div { margin-right: 0; }
  .activity-detail-body, .activity-detail-actions, .activity-retry-confirm { padding-inline: 20px; }
  .activity-detail-tabs { padding-inline: 20px; gap: 22px; }
  .activity-usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-detail-actions { gap: 8px 14px; }
  .activity-detail-actions .primary { flex-basis: 100%; }
}
