/* Shared workspace presentation. Library, Schedules and Analyze establish this visual language. */
.workspace-standard {
    --ink: #172b49;
    --muted: #718096;
    --line: #dce3ed;
    --soft: #f9fbfe;
    --paper: #fff;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding: 24px clamp(20px, 2.4vw, 42px) 40px;
    min-height: calc(100vh - 53px);
    background: #f4f6fa;
    color: var(--ink);
}
.workspace-standard > :is(.workspace-header, .schedule-header) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.workspace-standard h1 { margin: 0; font-size: 1.7rem; font-weight: 700; letter-spacing: -.035em; }
.workspace-standard .eyebrow { margin: 0 0 8px; color: #7c8ba3; font-size: .65rem; font-weight: 750; letter-spacing: .12em; }
.workspace-standard :is(.workspace-header, .schedule-header) p:not(.eyebrow) { margin: 8px 0 0; max-width: 85ch; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.workspace-standard .workspace-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.workspace-standard :is(.insight-panel, .analytics-panel, .settings-list-panel, .schedule-editor) {
    padding: 20px;
    border: 1px solid #dfe6f1;
    border-radius: 12px;
    background: white;
    box-shadow: none;
}
.workspace-standard :is(.panel-heading, .provider-editor-heading) { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.workspace-standard :is(.panel-heading, .provider-editor-heading) h2 { margin: 0; font-size: 1.1rem; font-weight: 650; letter-spacing: -.02em; }
.workspace-standard :is(.panel-heading, .provider-editor-heading) p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.workspace-standard :is(.management-card, .source-rail) h2 { font-size: 1.1rem; font-weight: 650; }
.workspace-standard :is(.management-card, .source-rail) > p:not(.eyebrow) { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.workspace-standard :is(.primary-action, .secondary-action, .connector-actions > button, .close-editor) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: #365c9a;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
.workspace-standard :is(button, a).primary-action, .login-card .primary-action { border-color: #2563eb; background: #2563eb; color: white; }
.workspace-standard .primary-action:hover:not(:disabled), .login-card .primary-action:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }
.workspace-standard .danger-action, .workspace-standard .connector-actions > .danger-action { color: #b3424a; border-color: #efcbd0; background: #fff7f8; }
.workspace-standard button:disabled { opacity: .55; cursor: default; }
.workspace-standard :is(button, a, input, select, textarea, [tabindex="0"]):focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.workspace-standard :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) {
    min-width: 0;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f9fbfe;
    color: var(--ink);
    font: inherit;
    font-size: .82rem;
    font-weight: 400;
}
.workspace-standard label { font-size: .8rem; font-weight: 600; }
.workspace-standard :is(input[type="checkbox"], input[type="radio"]) { accent-color: #2563eb; }
.workspace-standard .data-table-wrap, .workspace-standard .schedule-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workspace-standard :is(.data-table, .schedule-table) { width: 100%; min-width: 720px; border: 0; border-radius: 0; border-collapse: collapse; text-align: left; background: white; }
.workspace-standard :is(.data-table, .schedule-table) th { padding: 15px 14px; border-bottom: 1px solid var(--line); background: #edf1f6; color: #63728a; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.workspace-standard :is(.data-table, .schedule-table) td { padding: 17px 14px; border-bottom: 1px solid #e5eaf1; background: white; color: #526782; font-size: .81rem; font-weight: 400; vertical-align: middle; overflow-wrap: anywhere; }
.workspace-standard :is(.data-table, .schedule-table) td strong { font-weight: 650; color: #344963; }
.workspace-standard :is(.data-table, .schedule-table) td small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.5; }
.workspace-standard :is(.data-table, .schedule-table) tbody tr:hover td:not(.schedule-empty):not(.empty-table-state) { background: #f9fbfe; }
.workspace-standard :is(.data-table, .schedule-table) tbody tr:last-child td { border-bottom: 0; }
.workspace-standard :is(.schedule-actions, .row-actions) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.workspace-standard :is(.schedule-actions, .row-actions) button { padding: 6px; min-height: 0; border: 0; border-radius: 5px; background: transparent; color: #365c9a; font: inherit; font-size: .76rem; font-weight: 600; }
.workspace-standard :is(.schedule-actions, .row-actions) button:hover:not(:disabled) { background: #edf3fc; }
.workspace-standard :is(.schedule-actions, .row-actions) :is(.danger, .danger-link) { color: #b3424a; }
.workspace-standard :is(.schedule-status, .status-pill) { padding: 5px 9px; border-radius: 20px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.workspace-standard td:is(.schedule-empty, .empty-table-state) { padding: 48px 24px; text-align: center; color: #60718a; }
.workspace-standard :is(.schedule-empty, .empty-table-state) strong { display: block; color: #344963; font-size: .95rem; }
.workspace-standard .schedule-empty p { margin: 8px 0 16px; font-size: .83rem; }
.workspace-standard .schedule-empty button { padding: 5px 8px; border: 0; background: transparent; color: #2563eb; font-size: .81rem; font-weight: 650; }
.workspace-standard .schedule-empty button:hover { text-decoration: underline; }
.workspace-standard :is(.connector-feedback, .action-feedback) { margin: 14px 0; padding: 12px 16px; border-radius: 8px; font-size: .8rem; line-height: 1.5; }
.workspace-standard :is(.connector-feedback, .action-feedback).error { background: #fff1f3; color: #a04755; border-color: #f2d6dc; }
.workspace-standard :is(.connector-feedback, .action-feedback).success { background: #edf9f4; color: #397d65; border-color: #cee9dc; }
.workspace-standard .integration-tabs { margin: 0 0 22px; padding: 6px; border: 1px solid #cbd5e1; gap: 8px; background: #e9eef5; }
.workspace-standard .integration-tabs button { min-width: 104px; min-height: 44px; padding: 11px 20px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; font-size: .85rem; font-weight: 650; color: #344963; }
.workspace-standard .integration-tabs button:hover:not(.active) { background: #eff6ff; border-color: #93b4f2; color: #1d4ed8; }
.workspace-standard .integration-tabs button.active { color: #fff; border-color: #2563eb; background: #2563eb; box-shadow: 0 1px 3px #172b4926; }
.workspace-standard .integration-tabs button:focus-visible { outline: 2px solid #172b49; outline-offset: 2px; }
.workspace-standard :is(.mapping-layout, .platform-section-grid, .platform-dashboard-grid, .security-layout, .saga-company-grid) { gap: 18px; }
.workspace-standard .metric-strip { gap: 14px; margin-bottom: 22px; }
.workspace-standard .platform-kpi { border: 1px solid #dfe6f1; border-top: 3px solid #4e82e2; border-radius: 11px; box-shadow: none; padding: 18px 20px; background: white; }
.workspace-standard .platform-kpi > strong { font-size: 1.85rem; letter-spacing: -.04em; }
.workspace-standard .platform-kpi > span, .workspace-standard .platform-kpi > small { color: var(--muted); font-weight: 500; }
.workspace-standard .platform-kpi.attention { border-top-color: #dcad5b; }
.workspace-standard .metric-definitions { padding: 0; border: 0; border-radius: 0; }
.workspace-standard :is(.alert-view-panel, .workspace-view-panel)[hidden] { display: none; }
.workspace-standard.alert-shell > .schedule-table-wrap .schedule-table { min-width: 1120px; table-layout: fixed; }
.workspace-standard.alert-shell > .schedule-table-wrap th:first-child { width: 20%; }
.workspace-standard.alert-shell > .schedule-table-wrap th:nth-child(2) { width: 13%; }
.workspace-standard.alert-shell > .schedule-table-wrap th:nth-child(3) { width: 9%; }
.workspace-standard.alert-shell > .schedule-table-wrap th:nth-child(4) { width: 15%; }
.workspace-standard.alert-shell > .schedule-table-wrap th:nth-child(5) { width: 19%; }
.workspace-standard.alert-shell > .schedule-table-wrap th:nth-child(6) { width: 8%; }
.workspace-standard.alert-shell > .schedule-table-wrap th:last-child { width: 16%; text-align: right; }
.workspace-standard .schedule-modal { width: min(100%, 760px); padding: 26px; border-radius: 14px; }
.workspace-standard .schedule-modal .panel-heading { padding-bottom: 18px; border-bottom: 1px solid #e5eaf1; }
.workspace-standard .schedule-modal .panel-heading > button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #365c9a; }
.workspace-standard .alert-form-grid { gap: 18px; margin: 22px 0; }
.workspace-standard .alert-form-grid .policy-toggle { padding-top: 16px; border-top: 1px solid #e5eaf1; }
.workspace-standard .alert-form-grid .policy-toggle input { width: 17px; min-height: 17px; height: 17px; }
.workspace-standard .schedule-modal .connector-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid #e5eaf1; }
@media (max-width: 760px) {
    .workspace-standard > :is(.workspace-header, .schedule-header) { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
    .workspace-standard .workspace-meta { justify-content: flex-start; }
    .workspace-standard .primary-action { width: auto; }
    .workspace-standard :is(.panel-heading, .provider-editor-heading) { flex-wrap: wrap; }
}
@media (max-width: 650px) {
    .workspace-standard h1 { font-size: 1.4rem; }
    .workspace-standard .schedule-modal-backdrop { padding: 12px; }
    .workspace-standard .schedule-modal { padding: 20px; }
    .workspace-standard .alert-form-grid { grid-template-columns: 1fr; }
}
.workspace-standard.workspace-modal { width: min(100%, 760px); min-height: 0; padding: 0; background: white; }
.workspace-modal .tenant-modal-header { align-items: center; padding: 24px 26px 18px; }
.workspace-modal .tenant-modal-header h2 { font-size: 1.3rem; }
.workspace-modal .tenant-modal-body { padding: 22px 26px; }
.workspace-modal .tenant-modal-actions { padding: 18px 26px; background: white; }
.workspace-standard .tenant-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.workspace-standard .tenant-row-actions button { padding: 6px; border: 0; border-radius: 5px; background: transparent; font-size: .76rem; font-weight: 600; color: #365c9a; }
.workspace-standard .tenant-row-actions .danger { color: #b3424a; }

.workspace-standard .import-history-panel.workspace-view-panel { margin-top: 0; }

/* Shared finishing rules for the existing report canvases and account screens. */
.exec-dashboard.exec-dashboard, .analyze-studio.analyze-studio {
    padding: 24px clamp(20px, 2.4vw, 42px) 40px;
    min-height: calc(100vh - 53px);
    color: #172b49;
    background: #f4f6fa;
}
.exec-dashboard .exec-header, .analyze-studio .studio-header { margin-bottom: 26px; }
.exec-dashboard .exec-header h1, .analyze-studio .studio-header h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.035em; }
.exec-dashboard .exec-subtitle, .analyze-studio .studio-header p:last-child { font-size: .84rem; color: #718096; line-height: 1.6; }
.exec-dashboard :is(.exec-panel, .exec-kpi), .analyze-studio .studio-composer { border-radius: 12px; border-color: #dce3ed; box-shadow: none; }
.exec-dashboard .exec-button, .analyze-studio .studio-primary { border-radius: 8px; min-height: 40px; font-size: .82rem; }
.exec-dashboard .exec-button.primary { box-shadow: none; }
.login-shell { background: #f4f6fa; color: #172b49; }
.login-shell .login-card { border: 1px solid #dce3ed; border-radius: 12px; box-shadow: 0 8px 28px #172b4908; }
.account-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.account-progress li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #52637c; }
.account-progress li span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #edf2fa; font-weight: 700; }
.account-progress li.current { color: #1d4ed8; font-weight: 700; }
.account-progress li.current span { color: white; background: #2563eb; }
.account-progress li.complete span { color: #065f46; background: #d1fae5; }
.login-card form + p { margin-top: 14px; }
.login-shell h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.035em; }
.login-shell :is(input, select) { min-height: 40px; border-radius: 7px; }
.login-shell :is(.primary-action, .external-sign-in) { border-radius: 8px; background: #2563eb; border-color: #2563eb; color: white; }
.workspace-message { max-width: 760px; padding: 26px; border: 1px solid #dce3ed; border-radius: 12px; background: white; }
.workspace-message p { color: #718096; line-height: 1.6; }
.workspace-message .request-reference { overflow-wrap: anywhere; font-size: .8rem; }
.saga-wizard.saga-wizard { width: min(760px, calc(100vw - 32px)); border-color: #dce3ed; border-radius: 14px; color: #172b49; }
.saga-wizard .wizard-header { padding: 24px 26px 18px; align-items: center; }
.saga-wizard .wizard-header h2 { font-size: 1.3rem; }
.saga-wizard .wizard-body { padding: 22px 26px; }
.saga-wizard .wizard-footer { padding: 18px 26px; background: white; }
.saga-wizard :is(input, select) { min-height: 40px; border: 1px solid #dce3ed; border-radius: 7px; background: #f9fbfe; font-size: .82rem; }
.saga-wizard .wizard-body .primary-action { min-height: 40px; padding: 11px 18px; border: 1px solid #2563eb; border-radius: 8px; background: #2563eb; color: white; font-size: .82rem; font-weight: 650; }
.saga-wizard .wizard-secondary { min-height: 40px; border-color: #dce3ed; border-radius: 7px; color: #365c9a; font-size: .82rem; }
.saga-wizard :is(button, a, input, select):focus-visible, .login-shell :is(button, a, input, select):focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (max-width: 650px) {
    .exec-dashboard .exec-header h1, .analyze-studio .studio-header h1, .login-shell h1 { font-size: 1.4rem; }
    .saga-wizard .wizard-header, .saga-wizard .wizard-body { padding: 20px; }
    .saga-wizard .wizard-footer { padding: 16px 20px; }
}

.source-connection-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 520px; }
.source-connection-status .source-state { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .78rem; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.source-connection-status .source-state:has(> small) { flex-direction: column; align-items: flex-start; gap: 0; }
.source-connection-status .online { color: #16634b; background: #edf9f4; border-color: #b9e0cd; }
.source-connection-status .neutral { color: #52627a; background: #f8fafc; }
.source-connection-status .failed { color: #a33745; background: #fff1f3; border-color: #efc5cd; }
.source-connection-status .source-state-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.source-connection-status small { display: block; font-size: .7rem; font-weight: 400; }
.source-connection-status a:hover { border-color: currentColor; }
@media (max-width: 900px) { .source-connection-status { justify-content: flex-start; max-width: 100%; } }

/* Source-first onboarding. */
.source-hub-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; }
.source-hub-heading h2, .source-setup-header h2 { margin:0; font-size:1.2rem; color:#172b49; }
.source-hub-heading p, .source-picker > p, .source-setup-header p { margin:8px 0 0; color:#718096; font-size:.84rem; line-height:1.6; }
.source-picker { border:1px solid #dce3ed; border-radius:12px; padding:26px; background:#fff; margin-bottom:22px; }
.source-picker h3 { font-size:1.1rem; margin:24px 0 0; }
.source-journey { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding-bottom:22px; border-bottom:1px solid #e5eaf1; color:#526782; font-size:.8rem; }
.source-journey span { display:flex; align-items:center; gap:8px; }
.source-journey b, .source-setup-steps b { display:grid; place-items:center; border-radius:50%; width:28px; height:28px; background:#edf3fc; color:#2563eb; }
.source-journey i { font-style:normal; color:#98a6ba; }
.source-option-grid, .configured-source-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:22px; }
.source-option { display:flex; flex-direction:column; align-items:flex-start; gap:12px; text-align:left; padding:24px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#172b49; font:inherit; }
.source-option:hover { border-color:#2563eb; background:#f6f9ff; }
.source-option:focus-visible, .source-back:focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
.source-option-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:10px; background:#edf3fc; color:#2563eb; font-size:1.6rem; }
.source-option strong { font-size:1rem; }
.source-option > span:not(.source-option-icon) { font-size:.84rem; line-height:1.6; color:#526782; }
.source-option small { font-size:.74rem; color:#718096; }
.source-option > b { margin-top:auto; padding-top:8px; color:#2563eb; font-size:.82rem; }
.configured-source { padding:22px; border:1px solid #dce3ed; border-radius:12px; background:white; min-width:0; }
.configured-source h3 { margin:16px 0 6px; font-size:1.1rem; overflow-wrap:anywhere; }
.configured-source p { color:#718096; font-size:.8rem; line-height:1.6; }
.configured-source .source-next-step { min-height:44px; color:#526782; }
.configured-source .source-state { padding:6px 10px; border-radius:20px; font-size:.73rem; font-weight:650; }
.configured-source .online { background:#edf9f4; color:#16634b; }
.configured-source .neutral { background:#edf1f6; color:#52627a; }
.configured-source .connector-actions a { font-size:.8rem; color:#2563eb; }
.source-hub-footnote { margin-top:22px; font-size:.84rem; color:#718096; }
.source-hub-footnote button, .source-back { border:0; background:transparent; color:#2563eb; padding:6px 0; font:inherit; font-size:.82rem; font-weight:600; }
.source-back { margin-bottom:14px; }
.source-setup-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; padding:18px; gap:14px; background:white; border:1px solid #dce3ed; border-radius:10px; margin:22px 0; }
.source-setup-steps li { display:flex; align-items:center; gap:9px; color:#718096; font-size:.8rem; }
.source-setup-steps b { flex-shrink:0; background:#edf1f6; color:#718096; }
.source-setup-steps .current { color:#1d4ed8; font-weight:650; }
.source-setup-steps .current b { background:#2563eb; color:white; }
.source-setup-steps .done b { background:#dcf5e9; color:#16634b; }
.workspace-standard .mapping-layout.source-input-only { grid-template-columns:minmax(0,760px); }
.source-advanced, .profile-picker { margin-top:18px; }
.source-advanced summary, .profile-picker summary { cursor:pointer; font-size:.82rem; color:#365c9a; padding:10px 0; }
.source-import-success { padding:22px; margin-bottom:22px; border:1px solid #b9e0cd; border-radius:12px; background:#edf9f4; color:#16634b; }
@media(max-width:1100px) { .source-option-grid, .configured-source-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .source-option-grid, .configured-source-grid { grid-template-columns:1fr; } .source-hub-heading { align-items:flex-start; flex-direction:column; } .source-setup-steps { grid-template-columns:1fr 1fr; } .source-picker { padding:20px; } }
.source-option-icon svg { width: 25px; height: 25px; }
