/* Collection is a process overview, with bounded aggregate data only. */
.collection-page{padding-top:24px;max-width:1600px}
.collection-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.collection-title-row{display:flex;align-items:center;gap:18px}
.collection-title-row h1{font-size:28px;line-height:1.3;margin:0;letter-spacing:.02em}
.collection-heading p{color:var(--t2);font-size:12px;margin:10px 0 0}
.collection-heading-actions{display:flex;align-items:center;gap:14px}
.collection-link{display:inline-flex;align-items:center;gap:6px;color:var(--teal,#65e6d0);font:inherit;font-size:12px;background:none;border:0;padding:2px 0;cursor:pointer;text-underline-offset:4px}
.collection-link:hover{text-decoration:underline}
.collection-link:disabled{cursor:default;opacity:.45}
.collection-link svg{width:14px;height:14px}
.collection-state{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--t2);white-space:nowrap}
.collection-state i{width:6px;height:6px;border-radius:50%;background:currentColor}
.collection-state.published,.collection-state.legacy_complete{color:#65dfcc}
.collection-state.running{color:#65dfcc}
.collection-state.incomplete,.collection-state.deferred,.collection-warning{color:var(--amber)}
.collection-state.failed,.collection-state.interrupted{color:var(--red)}
.collection-title-row .collection-state{background:rgba(74,215,189,.07);border-radius:5px;padding:6px 9px}
.collection-title-row .collection-state.running{color:#8aefdb;background:rgba(74,215,189,.13);box-shadow:inset 0 0 0 1px rgba(101,223,204,.2)}
.collection-title-row .collection-state.running i{position:relative;box-shadow:0 0 8px rgba(101,223,204,.5)}
.collection-title-row .collection-state.running i::after{content:"";position:absolute;inset:-3px;border:1px solid currentColor;border-radius:50%;animation:collection-pulse 2s ease-out infinite}
.collection-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;font-size:11px;color:var(--t2);margin-bottom:18px}
.collection-meta b{font-weight:400;color:#b5c6ce;margin-left:5px}
.collection-provider{margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.collection-provider-status{font-size:11px;line-height:1.5}
.collection-provider-status.recovered{color:var(--accent,#58d8c2)}
.collection-source{display:flex;align-items:center;gap:7px}
.collection-source select{font:inherit;background:#101e25;border:1px solid rgba(131,180,194,.2);color:#bccbd2;border-radius:5px;height:26px;padding:0 6px;width:112px}
.collection-flow-wrap{position:relative;border:1px solid rgba(121,177,192,.2);background:linear-gradient(120deg,rgba(25,48,57,.4),rgba(12,26,32,.44));border-radius:12px;overflow:hidden;box-shadow:inset 0 1px rgba(218,255,255,.02);backdrop-filter:blur(18px)}
/* Activity only: the sweeping highlight never represents a completion percentage. */
.collection-flow-wrap.is-running::before{content:"";position:absolute;top:0;left:0;width:28%;height:2px;pointer-events:none;background:linear-gradient(90deg,transparent,#65dfcc 55%,#b3fff0 75%,transparent);animation:collection-sweep 3.6s linear infinite}
.collection-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:22px 4px}
.collection-stage{position:relative;padding:0 22px;border-right:1px solid rgba(120,174,190,.18);min-width:0}
.collection-stage:last-child{border:0}
.collection-stage h2{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin:0 0 6px;white-space:nowrap}
.collection-stage-status{font-size:10px;color:var(--t2);min-height:28px;line-height:14px}
.collection-stage.active .collection-stage-status,.collection-stage.accumulating .collection-stage-status{color:#8aefdb}
.collection-metric-label{font-size:11px;color:var(--t2);height:20px;line-height:20px}
.collection-evidence-details summary{cursor:pointer;color:var(--amber);font-size:11px}
.collection-evidence-details>div{display:flex;flex-direction:column;gap:6px;padding-top:8px;line-height:1.5}
.collection-evidence-details small{font-size:10px;color:var(--t2)}
.collection-stage-icon{color:#69818d;font-size:12px;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none}
.collection-stage-icon svg{width:19px;height:19px}
.collection-stage.done .collection-stage-icon,.collection-stage.active .collection-stage-icon{color:#69e4cf}
.collection-receipt.running>div>svg{animation:collection-spin 2s linear infinite;flex:none}
.collection-stage-value{font-size:28px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.03em}
.collection-stage-value small{font-size:16px;font-weight:400;color:#a4b7c2}
.collection-stage-copy{display:flex;flex-direction:column;gap:7px;margin-top:14px;font-size:11px;color:var(--t2);min-height:34px}
.collection-stage-copy b{color:#c5d9df;font-weight:500;margin-left:3px}
.collection-evidence-summary{display:flex;flex-wrap:wrap;gap:4px 10px}
.collection-evidence-summary>span{white-space:nowrap}
.collection-connector{position:absolute;right:-8px;top:59px;color:#8dabb7;background:#0e1b21}
.collection-connector svg{width:15px;height:15px}
.collection-receipt{border-top:1px solid rgba(112,174,187,.17);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;font-size:12px;color:#b1c8cf}
.collection-receipt.published{background:rgba(42,148,129,.07);border-color:rgba(88,209,189,.25)}
.collection-receipt>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.collection-receipt>div>svg{color:#69e4cf;width:18px;height:18px}
.collection-receipt b{font-weight:500;color:#d5e4e8}
.collection-receipt>.collection-link{flex:none}
.collection-history{margin-top:26px}
.collection-history>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.collection-history h2{font-size:16px;margin:0}
.collection-history header span{font-size:11px;color:var(--t2)}
.collection-history-wrap{overflow-x:auto;border:1px solid rgba(121,177,192,.18);border-radius:10px;background:linear-gradient(120deg,rgba(24,44,54,.35),rgba(12,25,31,.38))}
.collection-history table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:460px;font-size:12px}
.collection-history th{height:34px;background:rgba(165,213,227,.035);font-size:11px;font-weight:400;color:#9db1bd;text-align:center}
.collection-history td{height:39px;text-align:center;padding:6px 16px;border-top:1px solid rgba(121,177,192,.12);font-variant-numeric:tabular-nums}
.collection-history .collection-empty{height:76px;color:var(--t2)}
.collection-error{display:flex;gap:14px;padding:10px 0;color:var(--red);font-size:12px}
@keyframes collection-spin{to{transform:rotate(360deg)}}
@keyframes collection-pulse{0%{transform:scale(.6);opacity:.85}80%,100%{transform:scale(1.65);opacity:0}}
@keyframes collection-sweep{from{transform:translateX(-100%)}to{transform:translateX(360%)}}
@media(max-width:1100px){.collection-stage{padding:0 14px}.collection-stage-value{font-size:25px}.collection-stage h2{font-size:12px;gap:5px}.collection-stage-copy{font-size:10px}.collection-stage-value small{font-size:14px}.collection-provider{margin-left:0}}
@media(max-width:760px){.collection-page{padding-top:16px}.collection-heading{gap:12px;margin-bottom:16px}.collection-title-row{gap:9px;flex-wrap:wrap}.collection-title-row h1{font-size:23px}.collection-heading p{line-height:1.6;max-width:230px}.collection-heading-actions{flex-direction:column;gap:7px}.collection-meta{gap:9px 14px}.collection-flow{grid-template-columns:1fr;padding:0}.collection-stage{padding:14px 16px;border-right:0;border-bottom:1px solid rgba(120,174,190,.14);display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 14px}.collection-stage h2{margin:0;font-size:13px}.collection-stage-value{font-size:24px;text-align:right;grid-column:2;grid-row:1 / 3}.collection-stage-copy{margin:0 0 0 25px;min-height:0;gap:8px;flex-direction:row;flex-wrap:wrap;font-size:11px}.collection-connector{display:none}.collection-receipt{align-items:flex-start;flex-direction:column;padding:13px 16px}.collection-receipt>div{gap:8px 12px;font-size:11px}.collection-history{margin-top:20px}.collection-history td{padding:6px 8px}.collection-heading .collection-state{font-size:10px}}
@media(prefers-reduced-motion:reduce){.collection-receipt.running>div>svg,.collection-title-row .collection-state.running i::after,.collection-flow-wrap.is-running::before{animation:none}.collection-title-row .collection-state.running i::after{opacity:.4}.collection-flow-wrap.is-running::before{width:100%;opacity:.6}}

.collection-global-status{position:fixed;right:24px;bottom:24px;z-index:80;background:#132a2e;color:#78e3cc;border:1px solid #285157;border-radius:8px;padding:10px 15px;font:12px var(--sans);cursor:pointer}@media(max-width:760px){.collection-global-status{bottom:76px;right:14px}}

@media(max-width:760px){.collection-stage-status{grid-column:1;min-height:0;margin-left:25px}.collection-metric-label{grid-column:2;grid-row:1;height:auto;font-size:10px;text-align:right}.collection-stage-value{grid-row:2 / 4}.collection-stage-copy{grid-column:1;grid-row:3}.collection-evidence-details{max-width:220px}}

@media(max-width:760px){.collection-history table{min-width:350px;font-size:11px}}
