.collection-workspace { display: grid; gap: 18px; min-width: 0; }
.collection-scope { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink-700); font-size: 12px; }
.collection-scope > span, .collection-footnote { display: flex; align-items: center; gap: 8px; }
.collection-scope svg, .collection-count-note svg, .collection-footnote svg { width: 15px; height: 15px; flex-shrink: 0; }
.collection-scope small { font-size: 12px; }
.collection-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.collection-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; color: var(--ink-950); font: inherit; text-align: left; cursor: pointer; }
.collection-stat:hover { border-color: var(--ink-500); }
.collection-stat[aria-pressed="true"] { border-color: var(--ink-700); box-shadow: inset 0 -2px var(--ink-700); }
.collection-stat:focus-visible, .collection-normal-summary button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.collection-normal-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-700); }
.collection-normal-summary button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 8px 0; min-height: 36px; }
.collection-normal-summary button:hover { color: var(--ink-950); text-decoration: underline; text-underline-offset: 4px; }
.collection-stat > div { display: flex; justify-content: space-between; color: var(--ink-700); font-size: 13px; align-items: center; }
.collection-stat svg { width: 18px; height: 18px; color: var(--ink-500); }
.collection-stat > strong { display: block; margin-top: 14px; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.collection-stat strong small { font-size: 12px; color: var(--ink-700); font-weight: 400; margin-left: 7px; }
.collection-stat p { font-size: 12px; margin: 9px 0 0; color: var(--ink-700); line-height: 1.5; }
.collection-stat.success svg, .collection-stat.success > strong { color: var(--teal); }
.collection-stat.partial svg, .collection-stat.partial > strong { color: var(--amber); }
.collection-stat.failed svg, .collection-stat.failed > strong { color: var(--coral); }
.panel.collection-panel { padding: 0; min-width: 0; border-radius: 10px; overflow: hidden; }
.collection-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; flex-wrap: wrap; }
.collection-panel-head h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; margin: 0; }
.collection-panel-head h2 > span { font-size: 12px; font-weight: 500; color: var(--ink-700); border-radius: 5px; background: var(--canvas); padding: 3px 7px; }
.collection-panel-head p { margin: 7px 0 0; color: var(--ink-700); font-size: 12px; }
.collection-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.collection-controls label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-700); }
.collection-controls select { padding: 7px 28px 7px 10px; min-height: 36px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--ink-950); }
.collection-workspace .button { min-height: 36px; font-size: 12px; }
.collection-workspace button:disabled { opacity: .45; cursor: not-allowed; }
.collection-count-note { display: flex; align-items: flex-start; gap: 8px; padding: 11px 22px; font-size: 12px; color: var(--ink-700); background: #f7f9f8; line-height: 1.6; border-block: 1px solid var(--line); }
.collection-count-note svg { margin-top: 2px; }
.collection-columns, .collection-record { display: grid; grid-template-columns: minmax(140px,1fr) 140px 135px minmax(230px,1.6fr) 125px; gap: 18px; }
.collection-columns { padding: 13px 22px; font-size: 12px; font-weight: 500; color: var(--ink-700); border-bottom: 1px solid var(--line); }
.collection-record { padding: 20px 22px; font-size: 13px; line-height: 1.5; border-bottom: 1px solid #edf0ee; align-items: start; }
.collection-record:last-child { border-bottom: 0; }
.collection-record:hover { background: #fbfcfb; }
.collection-record.needs-attention { border-left: 3px solid var(--coral); }
.collection-record.quiet-record { padding-block: 13px; }
.collection-record.empty-record .collection-account > strong { font-size: 13px; font-weight: 500; }
.collection-record.empty-record .collection-account > small { display: inline; margin-left: 0; }
.collection-record.empty-record .collection-account > span { margin-top: 3px; }
.collection-record.empty-record .collection-no-change { margin: 0; font-size: 12px; }
.collection-record.empty-record .collection-time small { display: none; }
.collection-record > div { min-width: 0; }
.collection-account { overflow-wrap: anywhere; }
.collection-account > strong { display: block; font-weight: 600; font-size: 14px; }
.collection-account > span { display: block; margin-top: 5px; color: var(--ink-700); font-size: 12px; }
.collection-account b { padding: 0 6px; font-weight: 400; }
.collection-account > small { display: block; margin-top: 6px; color: var(--ink-500); font-size: 12px; }
.collection-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 8px; line-height: 1.4; border-radius: 5px; background: var(--canvas); color: var(--ink-700); }
.collection-status > span { width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.collection-status.written { color: #087363; background: var(--teal-soft); }
.collection-status.empty { background: transparent; padding-inline: 0; color: var(--ink-700); }
.collection-status.empty > span { background: var(--ink-500); }
.collection-status.failed { color: #ad3636; background: var(--coral-soft); }
.collection-status.partial { color: #915100; background: var(--amber-soft); }
.collection-status.running { color: var(--blue); background: var(--blue-soft); }
.collection-counts > strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.collection-counts strong small { font-size: 12px; font-weight: 400; color: var(--ink-700); }
.collection-counts > span, .collection-time small { display: block; font-size: 12px; color: var(--ink-700); margin-top: 5px; }
.collection-reason { overflow-wrap: anywhere; }
.collection-reason > strong { font-size: 13px; font-weight: 500; color: var(--coral); }
.collection-reason.quiet > strong { color: var(--ink-700); }
.collection-reason p { font-size: 12px; line-height: 1.65; color: var(--ink-700); margin: 5px 0 0; }
.collection-reason details { margin-top: 7px; font-size: 12px; color: var(--ink-700); }
.collection-reason summary { cursor: pointer; width: fit-content; }
.collection-reason code { display: block; overflow-wrap: anywhere; font-size: 11px; margin: 6px 0; }
.collection-reason details small { font-size: 12px; }
.collection-time time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.collection-pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-700); }
.collection-pagination > div { display: flex; align-items: center; gap: 12px; }
.collection-pagination .button { min-width: 36px; padding: 7px; }
.collection-pagination svg { width: 16px; height: 16px; }
.collection-empty { display: grid; justify-items: center; text-align: center; padding: 56px 24px; color: var(--ink-700); }
.collection-empty > svg { width: 28px; height: 28px; margin-bottom: 12px; color: var(--ink-500); }
.collection-empty h3 { font-size: 15px; font-weight: 500; margin: 0; color: var(--ink-950); }
.collection-empty p { font-size: 13px; line-height: 1.7; max-width: 520px; margin: 9px 0 16px; }
.collection-empty.error > svg { color: var(--coral); }
.collection-footnote { font-size: 12px; color: var(--ink-700); margin: 0; line-height: 1.6; align-items: flex-start; }
@media (max-width: 1250px) {
  .collection-columns, .collection-record { grid-template-columns: minmax(125px,1fr) 115px 110px minmax(200px,1.5fr) 112px; gap: 12px; padding-inline: 16px; }
}
@media (max-width: 1080px) {
  .collection-columns { display: none; }
  .collection-record { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 20px; padding: 20px; }
  .collection-record > [data-label="原因与建议"] { grid-column: 1 / -1; order: 5; }
  .collection-record > [data-label="采集结果"] { text-align: right; }
  .collection-record > [data-label="执行时间"] { text-align: right; }
  .collection-record > [data-label="内容记录"]::before { content: '内容记录'; display: block; font-size: 12px; color: var(--ink-700); margin-bottom: 5px; }
}
@media (max-width: 700px) {
  .collection-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .collection-stat { padding: 14px; }
  .collection-stat > div { font-size: 12px; }
  .collection-stat svg { display: none; }
  .collection-stat > strong { font-size: 26px; }
  .collection-panel-head { padding: 16px; }
  .collection-controls { width: 100%; justify-content: space-between; }
  .collection-count-note, .collection-pagination { padding: 12px 16px; }
  .collection-record { padding: 16px; }
  .collection-pagination > div { margin-left: auto; }
}
@media (max-width: 430px) {
  .collection-stats { grid-template-columns: minmax(0,1fr); }
  .collection-stat { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .collection-stat > strong { grid-row: 1 / 3; grid-column: 2; align-self: center; margin: 0; font-size: 24px; }
  .collection-stat p { margin: 0; }
}
