/* UI-03B. The approved UI-01A dashboard translated to native, request-scoped SSR.
   Tokens are inherited from the Control Center shell; no public or Product selectors. */
.cc-dashboard {
    min-width: 0;
    color: var(--cc-ink);
    --cc-dashboard-gap: 24px;
}
.cc-dashboard :is(h1,h2,h3,p,dl,dd,ul,ol) { margin: 0; }
.cc-dashboard :is(h1,h2,h3) { color: var(--cc-ink); }
.cc-dashboard :is(a,button,summary) { -webkit-tap-highlight-color: transparent; }
.cc-dashboard :is(a,button,summary,[tabindex]):focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 3px; }
.cc-dashboard-heading {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 16px 24px; margin-block-end: 24px;
}
.cc-dashboard-heading > div { min-width: 0; }
.cc-dashboard .cc-dashboard-eyebrow {
    margin-block-end: 3px; color: var(--cc-accent); font-size: 11px; font-weight: 650;
}
.cc-dashboard-heading h1 {
    font-size: clamp(24px, 2.1vw, 30px); font-weight: 750;
    line-height: 1.65; letter-spacing: -.6px;
}
.cc-dashboard .cc-dashboard-intro {
    max-width: 76ch; margin-block-start: 7px; color: var(--cc-ink-soft); font-size: 13px;
}
.cc-dashboard-actions {
    display: flex; align-items: center; justify-content: flex-end;
    flex-wrap: wrap; gap: 10px; padding-block-start: 8px;
}
.cc-dashboard-actions :is(a,button) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; max-width: 100%; padding: 9px 15px;
    border: 1px solid var(--cc-line); border-radius: var(--cc-radius-sm);
    background: var(--cc-surface); color: var(--cc-ink); font: inherit; font-size: 12px;
    text-decoration: none; cursor: pointer;
    box-shadow: var(--cc-shadow-sm), 0 0 16px var(--cc-glow-card);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.cc-dashboard-actions :is(a,button):hover {
    color: var(--cc-accent); border-color: var(--cc-accent-line);
    background: var(--cc-accent-soft); text-decoration: none;
}
.cc-dashboard-actions :is(a,button).cc-primary {
    color: var(--cc-accent-ink); border-color: var(--cc-accent);
    background: var(--cc-accent);
    box-shadow: inset 0 1px 0 var(--cc-glow-sheen), 0 3px 14px var(--cc-glow-button);
}
.cc-dashboard-actions :is(a,button).cc-primary:hover {
    color: var(--cc-accent-ink); border-color: var(--cc-accent-strong);
    background: var(--cc-accent-strong); box-shadow: 0 4px 16px var(--cc-glow-button-hover);
}
.cc-dashboard-actions svg { width: 18px; height: 18px; }
.cc-dashboard .cc-dashboard-updated {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-block: -8px 22px; color: var(--cc-ink-soft); font-size: 11px;
    overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.cc-dashboard-updated svg { width: 14px; height: 14px; }
.cc-dashboard-metrics {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px; margin-block-end: var(--cc-dashboard-gap);
}
.cc-dashboard .cc-dashboard-metric {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    min-width: 0; padding: 21px; border: 1px solid var(--cc-accent-line);
    border-radius: var(--cc-radius-md); background: var(--cc-surface);
    color: var(--cc-ink); text-decoration: none;
    box-shadow: var(--cc-shadow-sm), 0 0 24px var(--cc-glow-card), inset 0 1px 0 var(--cc-glow-sheen);
}
.cc-dashboard a.cc-dashboard-metric {
    transition: border-color .15s, box-shadow .15s;
}
.cc-dashboard a.cc-dashboard-metric:hover {
    color: var(--cc-ink); border-color: var(--cc-accent); text-decoration: none;
    box-shadow: var(--cc-shadow-sm), 0 0 28px var(--cc-glow-card);
}
.cc-dashboard-metric-icon {
    position: absolute; inset-inline-end: 18px; inset-block-start: 18px;
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--cc-accent-line); border-radius: 11px;
    color: var(--cc-accent); background: var(--cc-accent-soft);
}
.cc-dashboard-metric-icon svg { width: 19px; height: 19px; }
.cc-dashboard-metric-label {
    display: block; padding-inline-end: 42px; color: var(--cc-ink-soft);
    font-size: 12px; font-weight: 550; line-height: 1.9; overflow-wrap: anywhere;
}
.cc-dashboard-metric-value {
    display: block; padding-block: 4px 5px; color: var(--cc-ink);
    font-size: clamp(28px, 2.5vw, 35px); font-weight: 750; line-height: 1.7;
    letter-spacing: -.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.cc-dashboard-metric-value small { margin-inline-start: 5px; font-size: 11px; font-weight: 500; color: var(--cc-ink-soft); letter-spacing: 0; }
.cc-dashboard-metric-note {
    display: block; margin-block-start: auto; color: var(--cc-ink-soft);
    font-size: 11px; line-height: 1.9; overflow-wrap: anywhere;
}
.cc-dashboard-metric-note strong { color: var(--cc-accent); font-weight: 650; }
.cc-dashboard .cc-dashboard-metric.cc-dashboard-restricted { text-align: start; }
.cc-dashboard-metric.cc-dashboard-restricted .cc-dashboard-metric-value {
    padding-block: 13px 12px; font-size: 18px; line-height: 1.9; letter-spacing: 0;
}
.cc-dashboard-grid {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: var(--cc-dashboard-gap); align-items: start; min-width: 0;
}
.cc-dashboard-stack { display: flex; flex-direction: column; min-width: 0; gap: var(--cc-dashboard-gap); }
.cc-dashboard-panel {
    min-width: 0; border: 1px solid var(--cc-line); border-radius: var(--cc-radius-md);
    background: var(--cc-surface); color: var(--cc-ink);
    box-shadow: var(--cc-shadow-sm), 0 0 20px var(--cc-glow-card), inset 0 1px 0 var(--cc-glow-sheen);
}
.cc-dashboard-panel-heading {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px 16px; min-height: 78px;
    padding: 16px 20px; border-block-end: 1px solid var(--cc-line);
}
.cc-dashboard-panel-heading > div { min-width: 0; }
.cc-dashboard-panel-heading h2 { font-size: 15px; font-weight: 700; line-height: 1.9; }
.cc-dashboard-panel-heading p { margin-block-start: 2px; color: var(--cc-ink-soft); font-size: 11px; }
.cc-dashboard-panel-heading > a {
    display: inline-flex; align-items: center; gap: 5px;
    min-height: 44px; font-size: 11px; font-weight: 650; white-space: nowrap;
}
.cc-dashboard-panel-heading > a svg { width: 15px; height: 15px; }
.cc-dashboard-panel-body { padding: 20px; min-width: 0; }
.cc-dashboard-panel-body > p { color: var(--cc-ink-soft); font-size: 12px; }
.cc-dashboard-panel-body > p + p { margin-block-start: 10px; }
.cc-dashboard-panel-body > :is(.cc-dashboard-empty,.cc-dashboard-restricted) { padding: 14px 4px; border: 0; background: transparent; }
.cc-dashboard-request-list, .cc-dashboard-activity-list, .cc-dashboard-system-list, .cc-dashboard-pipeline-list {
    list-style: none; padding: 0; min-width: 0;
}
.cc-dashboard :is(.cc-dashboard-request-list,.cc-dashboard-activity-list,.cc-dashboard-system-list,.cc-dashboard-pipeline-list).cc-dashboard-panel-body { padding: 20px; }
.cc-dashboard .cc-dashboard-panel-body + .cc-dashboard-panel-body { padding-block-start: 0; }
.cc-dashboard-request-list > li {
    display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
    padding-block: 14px; border-block-end: 1px solid var(--cc-line); min-width: 0;
}
.cc-dashboard-request-list > li:first-child { padding-block-start: 0; }
.cc-dashboard-request-list > li:last-child { padding-block-end: 0; border-block-end: 0; }
.cc-dashboard-request-copy { flex: 1 1 190px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.cc-dashboard-request-copy :is(strong,a) { font-weight: 650; }
.cc-dashboard-request-copy :is(p,small) { display: block; margin-block-start: 3px; color: var(--cc-ink-soft); font-size: 11px; }
.cc-dashboard-request-list time { display: block; margin-block-start: 4px; color: var(--cc-ink-soft); font-size: 10px; font-variant-numeric: tabular-nums; }
.cc-dashboard-request-list > li > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; font-weight: 650; }
.cc-dashboard-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.cc-dashboard-split > * { min-width: 0; }
.cc-dashboard-split h3 { margin-block-end: 10px; font-size: 12px; font-weight: 700; }
.cc-dashboard-stat-list { display: grid; min-width: 0; }
.cc-dashboard-stat-list > div {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding-block: 9px; border-block-end: 1px solid var(--cc-line);
}
.cc-dashboard-stat-list > div:last-child { border-block-end: 0; }
.cc-dashboard-stat-list dt { color: var(--cc-ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.cc-dashboard-stat-list dd { color: var(--cc-ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cc-dashboard-status {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 5px; max-width: 100%; padding: 3px 8px; border: 1px solid transparent;
    border-radius: 6px; background: var(--cc-subtle); color: var(--cc-ink-soft);
    font-size: 10px; font-weight: 650; line-height: 1.8; overflow-wrap: anywhere;
}
.cc-dashboard-status[data-tone="success"] { background: var(--cc-success-soft); color: var(--cc-success); }
.cc-dashboard-status[data-tone="warning"] { background: var(--cc-warn-soft); color: var(--cc-warn); }
.cc-dashboard-status[data-tone="danger"] { background: var(--cc-danger-soft); color: var(--cc-danger); }
.cc-dashboard-status[data-tone="info"] { background: var(--cc-info-soft); color: var(--cc-info); }
.cc-dashboard-status svg { width: 12px; height: 12px; }
.cc-dashboard-table-wrap {
    max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
    scrollbar-width: thin; scrollbar-color: var(--cc-scrollbar) var(--cc-subtle);
}
.cc-dashboard-panel > .cc-dashboard-table-wrap:last-child { border-end-start-radius: var(--cc-radius-md); border-end-end-radius: var(--cc-radius-md); }
.cc-dashboard-table {
    width: 100%; min-width: 580px; border-collapse: collapse;
    text-align: start; color: var(--cc-ink); background: var(--cc-surface); font-size: 12px;
}
.cc-dashboard-table :is(th,td) { padding: 12px 18px; text-align: start; vertical-align: middle; border-block-end: 1px solid var(--cc-line); }
.cc-dashboard-table th { color: var(--cc-ink-soft); background: var(--cc-subtle); font-size: 11px; font-weight: 650; white-space: nowrap; }
.cc-dashboard-table tbody tr:last-child td { border-block-end: 0; }
.cc-dashboard-table tbody tr:hover { background: var(--cc-subtle); }
.cc-dashboard-table td > a { display: inline-flex; align-items: center; min-height: 44px; }
.cc-dashboard-table-name { display: block; color: var(--cc-ink); font-weight: 650; }
.cc-dashboard-secondary { display: block; margin-block-start: 3px; color: var(--cc-ink-soft); font-size: 10px; overflow-wrap: anywhere; }
.cc-dashboard-table :is(time,bdi) { font-variant-numeric: tabular-nums; }
.cc-dashboard-activity-list > li {
    position: relative; display: flex; gap: 13px; min-width: 0;
    padding-block: 1px 21px; padding-inline-start: 20px;
}
.cc-dashboard-activity-dot {
    position: absolute; inset-inline-start: 0; inset-block-start: 9px;
    z-index: 1; width: 9px; height: 9px; border: 2px solid var(--cc-accent);
    border-radius: 50%; background: var(--cc-surface);
}
.cc-dashboard-activity-list > li:not(:last-child)::after {
    content: ''; position: absolute; inset-inline-start: 4px; inset-block-start: 18px;
    inset-block-end: 0; width: 1px; background: var(--cc-line);
}
.cc-dashboard-activity-list > li:last-child { padding-block-end: 0; }
.cc-dashboard-activity-copy { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.cc-dashboard-activity-copy > strong { font-weight: 650; }
.cc-dashboard-activity-copy :is(p,small) { display: block; margin-block-start: 3px; color: var(--cc-ink-soft); font-size: 11px; }
.cc-dashboard-activity-copy time { display: block; margin-block-start: 5px; color: var(--cc-ink-soft); font-size: 10px; font-variant-numeric: tabular-nums; }
.cc-dashboard-quicklinks { display: grid; gap: 4px; min-width: 0; }
.cc-dashboard .cc-dashboard-quicklinks a {
    display: flex; align-items: center; gap: 11px; min-height: 56px; min-width: 0;
    padding: 10px; border: 1px solid transparent; border-radius: var(--cc-radius-sm);
    color: var(--cc-ink); font-size: 12px; font-weight: 550; text-decoration: none;
    transition: background-color .15s, border-color .15s;
}
.cc-dashboard .cc-dashboard-quicklinks a:hover {
    color: var(--cc-accent); background: var(--cc-accent-soft);
    border-color: var(--cc-accent-line); text-decoration: none;
}
.cc-dashboard-quicklinks a > svg { width: 18px; height: 18px; color: var(--cc-accent); }
.cc-dashboard-quicklinks a > span { min-width: 0; overflow-wrap: anywhere; }
.cc-dashboard-quicklinks a small { display: block; margin-block-start: 2px; color: var(--cc-ink-soft); font-size: 10px; font-weight: 400; }
.cc-dashboard-system-list > :is(li,div), .cc-dashboard-pipeline-list > :is(li,div) {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 8px 12px; min-width: 0; padding-block: 12px; border-block-end: 1px solid var(--cc-line);
}
.cc-dashboard-system-list > :is(li,div):first-child, .cc-dashboard-pipeline-list > :is(li,div):first-child { padding-block-start: 0; }
.cc-dashboard-system-list > :is(li,div):last-child, .cc-dashboard-pipeline-list > :is(li,div):last-child { padding-block-end: 0; border-block-end: 0; }
.cc-dashboard-system-list > :is(li,div) > :first-child, .cc-dashboard-pipeline-list > :is(li,div) > :first-child {
    min-width: 0; color: var(--cc-ink-soft); font-size: 12px; overflow-wrap: anywhere;
}
.cc-dashboard-system-list > :is(li,div) > :first-child svg { width: 17px; height: 17px; margin-inline-end: 7px; vertical-align: middle; }
.cc-dashboard-system-list dd, .cc-dashboard-pipeline-list dd { min-width: 0; max-width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-dashboard-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 29px; min-height: 27px; padding: 2px 8px; border-radius: 7px;
    color: var(--cc-accent); background: var(--cc-accent-soft);
    font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.cc-dashboard-empty, .cc-dashboard-restricted, .cc-dashboard-error, .cc-dashboard-loading {
    min-width: 0; padding: 32px 22px; border: 1px solid var(--cc-line);
    border-radius: var(--cc-radius-md); background: var(--cc-surface);
    text-align: center; overflow-wrap: anywhere;
}
.cc-dashboard-empty > svg, .cc-dashboard-restricted > svg, .cc-dashboard-loading > svg {
    width: 36px; height: 36px; margin-block-end: 12px; padding: 7px;
    border: 1px solid var(--cc-accent-line); border-radius: 11px;
    color: var(--cc-accent); background: var(--cc-accent-soft);
}
.cc-dashboard :is(.cc-dashboard-empty,.cc-dashboard-restricted,.cc-dashboard-error,.cc-dashboard-loading) :is(h2,h3) {
    margin-block-end: 6px; font-size: 14px; font-weight: 650;
}
.cc-dashboard :is(.cc-dashboard-empty,.cc-dashboard-restricted,.cc-dashboard-error,.cc-dashboard-loading) p {
    max-width: 60ch; margin-inline: auto; color: var(--cc-ink-soft); font-size: 12px;
}
.cc-dashboard-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-block-start: 8px; font-size: 12px; font-weight: 650; }
.cc-dashboard-panel > :is(.cc-dashboard-empty,.cc-dashboard-restricted),
.cc-dashboard-panel > div[data-testid="dashboard-provisioning"] > .cc-dashboard-restricted {
    border: 0; border-start-start-radius: 0; border-start-end-radius: 0; background: transparent;
}
.cc-dashboard-error { color: var(--cc-danger); background: var(--cc-danger-soft); border-color: var(--cc-danger-line); }
.cc-dashboard-error h2, .cc-dashboard-error h3 { color: var(--cc-danger); }
.cc-dashboard-error > a { display: inline-flex; align-items: center; min-height: 44px; margin-block-start: 8px; font-size: 12px; font-weight: 650; }
.cc-dashboard-details { min-width: 0; margin-block-start: 16px; color: var(--cc-ink-soft); font-size: 11px; }
.cc-dashboard-details > summary { width: fit-content; max-width: 100%; min-height: 44px; padding-block: 10px; color: var(--cc-accent); font-weight: 650; cursor: pointer; }
.cc-dashboard-details > :not(summary) { margin-block-start: 6px; overflow-wrap: anywhere; }
.cc-dashboard .cc-dashboard-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 1180px) {
    .cc-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cc-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .cc-dashboard { --cc-dashboard-gap: 20px; }
    .cc-dashboard-heading { margin-block-end: 20px; gap: 12px; }
    .cc-dashboard-heading h1 { font-size: 24px; }
    .cc-dashboard .cc-dashboard-intro { font-size: 12px; }
    .cc-dashboard-actions { justify-content: flex-start; padding-block-start: 0; }
    .cc-dashboard-actions :is(a,button) { padding-inline: 12px; font-size: 11px; }
    .cc-dashboard .cc-dashboard-updated { margin-block-start: -4px; }
    .cc-dashboard-metrics { gap: 12px; }
    .cc-dashboard .cc-dashboard-metric { padding: 16px; padding-block-start: 58px; }
    .cc-dashboard-metric-icon { inset-inline-start: 16px; inset-inline-end: auto; inset-block-start: 14px; width: 32px; height: 32px; border-radius: 9px; }
    .cc-dashboard-metric-icon svg { width: 17px; height: 17px; }
    .cc-dashboard-metric-label { padding-inline-end: 0; font-size: 11px; }
    .cc-dashboard-metric-value { font-size: 28px; padding-block: 2px 4px; }
    .cc-dashboard-metric-note { font-size: 10px; }
    .cc-dashboard-panel-heading { padding: 14px 16px; gap: 4px 12px; }
    .cc-dashboard-panel-heading h2 { font-size: 14px; }
    .cc-dashboard-panel-body { padding: 16px; }
    .cc-dashboard :is(.cc-dashboard-request-list,.cc-dashboard-activity-list,.cc-dashboard-system-list,.cc-dashboard-pipeline-list).cc-dashboard-panel-body { padding: 16px; }
    .cc-dashboard .cc-dashboard-panel-body + .cc-dashboard-panel-body { padding-block-start: 0; }
    .cc-dashboard-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .cc-dashboard-request-copy { flex-basis: 150px; }
    .cc-dashboard-table :is(th,td) { padding-inline: 16px; }
    .cc-dashboard-empty, .cc-dashboard-restricted, .cc-dashboard-error, .cc-dashboard-loading { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .cc-dashboard *, .cc-dashboard *::before, .cc-dashboard *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .cc-dashboard :is(.cc-dashboard-metric,.cc-dashboard-panel,.cc-dashboard-status,.cc-dashboard-count,.cc-dashboard-metric-icon,.cc-dashboard-empty,.cc-dashboard-restricted,.cc-dashboard-error,.cc-dashboard-loading) {
        border: 1px solid CanvasText; box-shadow: none;
    }
    .cc-dashboard a.cc-dashboard-metric:hover { border-color: LinkText; }
    .cc-dashboard .cc-dashboard-quicklinks a { border-color: LinkText; }
    .cc-dashboard :is(.cc-dashboard-metric-note,.cc-dashboard-secondary) { color: CanvasText; }
    .cc-dashboard :is(a,button,summary,[tabindex]):focus-visible { outline-color: Highlight; }
    .cc-dashboard-activity-dot { border-color: CanvasText; }
    .cc-dashboard-activity-list > li::after { background: CanvasText; }
}
@media print {
    .cc-dashboard { --cc-dashboard-gap: 16px; color: #000; }
    .cc-dashboard-actions, .cc-dashboard-quicklinks { display: none !important; }
    .cc-dashboard :is(.cc-dashboard-metric,.cc-dashboard-panel,.cc-dashboard-status,.cc-dashboard-count,.cc-dashboard-metric-icon,.cc-dashboard-empty,.cc-dashboard-restricted,.cc-dashboard-error,.cc-dashboard-loading) {
        color: #000; background: #fff; border-color: #777; box-shadow: none; break-inside: avoid;
    }
    .cc-dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cc-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .cc-dashboard :is(h1,h2,h3,p,dt,dd,a,time,.cc-dashboard-secondary,.cc-dashboard-metric-label,.cc-dashboard-metric-value,.cc-dashboard-metric-note) { color: #000; }
    .cc-dashboard-table-wrap { overflow: visible; }
    .cc-dashboard-table { min-width: 0; color: #000; background: #fff; }
    .cc-dashboard-table :is(th,td) { color: #000; background: #fff; border-color: #777; }
}
