/* Scoped live reporting; provider data is never styled as demonstration data. */
.reporting-service { margin: 24px 0; min-width: 0; }
.reporting-service p { line-height: 1.65; }
.reporting-service h2, .reporting-service h3 { margin: 8px 0 12px; }
.reporting-head, .reporting-actions, .reporting-account { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.reporting-actions { justify-content: flex-start; margin: 18px 0; }
.reporting-account { margin: 24px 0; }
.reporting-current-account { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.reporting-current-account span { font-size: 12px; }
.reporting-account label { flex: 1; min-width: 0; }
.reporting-service select, .reporting-service input[type=date] { display: block; width: 100%; max-width: 100%; margin-top: 8px; }
.reporting-service label { font-size: 13px; font-weight: 500; }
.reporting-service input[type=date] { min-width: 0; background: var(--white, #fff); border: 1px solid var(--line); color: var(--ink); font: inherit; padding: 10px; border-radius: 4px; }
.reporting-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 24px 0; }
.reporting-details > div { min-width: 0; }
.reporting-details dt { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.reporting-details dd { margin: 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.reporting-wrap { overflow-wrap: anywhere; word-break: break-word; }
.reporting-sources { display: grid; gap: 24px; min-width: 0; }
.reporting-source, .reporting-identity { padding: 24px; min-width: 0; }
.reporting-results { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; min-width: 0; }
.reporting-resource-choice label { display: block; }
.reporting-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 16px; margin: 20px 0; }
.reporting-history summary { cursor: pointer; padding: 12px 0; }
.reporting-history ul, .reporting-notes { padding-left: 20px; line-height: 1.75; }
.reporting-history li { padding: 10px 0; overflow-wrap: anywhere; }
.reporting-table { max-width: 100%; max-height: 520px; overflow: auto; }
.reporting-table caption { text-align: left; font-size: 12px; padding: 12px; color: var(--ink-3); }
.reporting-table td { max-width: 480px; overflow-wrap: anywhere; }
.reporting-service :is(button, select, summary, input, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media(max-width:900px) { .reporting-details { grid-template-columns: repeat(2, minmax(0,1fr)); } .reporting-source { padding: 20px; } }
@media(max-width:600px) { .reporting-details, .reporting-dates { grid-template-columns: minmax(0,1fr); } .reporting-source, .reporting-identity { padding: 16px; } .reporting-account { align-items: stretch; } .reporting-account > *, .reporting-actions .btn { width: 100%; } .reporting-head { align-items: flex-start; } .reporting-service select { min-width: 0; } }
/* The active next step remains visible without expanding saved reports. */
.reporting-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 20px 0; }
.reporting-step { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-3); }
.reporting-step.is-current { border: 2px solid var(--ink); padding: 11px; background: #f4f4f4; color: var(--ink); }
.reporting-step.is-complete { color: var(--ink); }
.reporting-step-number { display: flex; flex: 0 0 23px; align-items: center; justify-content: center; height: 23px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.reporting-step.is-current .reporting-step-number, .reporting-step.is-complete .reporting-step-number { background: var(--ink); color: #fff; border-color: var(--ink); }
.reporting-step-label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; line-height: 1.4; }
.reporting-step-label strong { color: inherit; font-size: 13px; }
.reporting-step-panel { min-width: 0; padding: 18px; margin: 14px 0; border: 1px solid var(--line); border-radius: 4px; }
.reporting-step-panel.is-current { border-left: 4px solid var(--ink); padding-left: 15px; }
.reporting-import { border-top: 0; padding-top: 0; margin-top: 0; }
.reporting-resource-choice { border-top: 0; padding-top: 0; margin-top: 16px; }
.reporting-saved-import { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.reporting-saved-import > div { flex: 1; min-width: 190px; }
.reporting-saved-import strong { font-size: 13px; }
.reporting-saved-import p { font-size: 12px; margin: 6px 0 0; }
.reporting-service-details { margin: 16px 0 24px; }
.reporting-service-details summary, .reporting-connection-settings summary { cursor: pointer; font-size: 12px; padding: 12px 0; color: var(--ink-3); }
.reporting-connection-settings { border-top: 1px solid var(--line); }
.reporting-connection-settings .reporting-actions { margin: 8px 0; }
.reporting-connection-settings > p { font-size: 12px; }
@media(max-width:1100px) { .reporting-steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width:600px) { .reporting-steps { gap: 6px; } .reporting-step { padding: 9px; gap: 7px; } .reporting-step.is-current { padding: 8px; } .reporting-step-label strong { font-size: 12px; } .reporting-step-label { font-size: 11px; } .reporting-step-number { flex-basis: 20px; height: 20px; } .reporting-step-panel { padding: 14px; } .reporting-step-panel.is-current { padding-left: 11px; } .reporting-saved-import .btn { width: 100%; } }
.reporting-import-mode { display: block; max-width: 420px; margin: 16px 0; }
.reporting-history-range { margin: 16px 0; }
.reporting-history-range p { max-width: 68ch; font-size: 12px; }
.reporting-historical-progress { padding: 18px; margin: 20px 0; border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.reporting-historical-progress progress { width: 100%; max-width: 560px; height: 10px; accent-color: var(--ink); }
.reporting-historical-progress .muted { font-size: 12px; }
.reporting-historical-progress li .btn { display: block; margin-top: 8px; }
@media(max-width:600px) { .reporting-import-mode { max-width: none; } .reporting-historical-progress { padding: 14px; } .reporting-history-range .btn, .reporting-historical-progress .btn { width: 100%; } }

/* Source catalog: live status comes from the scoped reporting session. */
.data-manager-catalog { margin: 24px 0; }
.data-manager-catalog > p { max-width: 72ch; font-size: 13px; }
.data-manager-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.data-manager-tile { display: flex; align-items: center; gap: 12px; padding: 18px 16px; min-width: 0; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font: inherit; cursor: pointer; }
.data-manager-tile:hover { background: #f7f7f7; border-color: var(--ink-3); }
.data-manager-tile.is-selected { border: 2px solid var(--ink); padding: 17px 15px; background: #f5f5f5; }
.data-manager-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 700; background: #fafafa; }
.data-manager-tile-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; }
.data-manager-tile-copy strong { font-size: 13px; line-height: 1.4; }
.data-manager-tile-status { font-size: 11px; line-height: 1.5; color: var(--ink-3); }
.data-manager-tile-arrow { font-size: 20px; color: var(--ink-3); }
.data-manager-detail { min-width: 0; scroll-margin-top: 24px; }
.data-manager-detail:focus { outline: none; }
.data-manager-planned > p { max-width: 70ch; }
.data-manager-source-kind { font-size: 12px; }
@media(max-width:1100px) { .data-manager-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:600px) { .data-manager-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; } .data-manager-tile { padding: 15px 14px; } .data-manager-tile.is-selected { padding: 14px 13px; } }

/* Automatic source history keeps setup separate from report presentation. */
.reporting-automatic{margin:20px 0;padding:22px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#000}
.reporting-automatic .reporting-head{gap:12px;flex-wrap:wrap}.reporting-automatic .reporting-head strong{font-size:12px}
.reporting-automatic>p,.reporting-automatic-progress p{font-size:12px;line-height:1.7;max-width:76ch;color:#000}
.reporting-automatic .reporting-details{margin:18px 0 10px}.reporting-retention-note{margin:8px 0 16px}
.reporting-automatic-progress{margin:16px 0}.reporting-automatic progress{width:100%;max-width:560px;height:9px;accent-color:#000}
.reporting-manual-imports{margin:18px 0;border-top:1px solid var(--line);padding-top:14px}.reporting-manual-imports>summary{cursor:pointer;font-size:12px;padding:8px 0;color:#000}
@media(max-width:600px){.reporting-automatic{padding:16px}.reporting-automatic .reporting-actions{display:flex;flex-direction:column;align-items:stretch}.reporting-automatic .btn{width:100%}}
