/* PhaseT7A: retain the PhaseT7 summary sidebar in every Production Trail view. */
.n1-po.j6b-workspace-open .ps-panel[data-t7a-ready="1"],
.n1-po.j6b-workspace-open .j7-history-panel[data-t7a-ready="1"] {
    padding: 0 !important;
    overflow: hidden;
}

.t7-secondary-workspace > header {
    margin-bottom: 14px !important;
}

.t7-secondary-workspace .ps-status-strip {
    margin-top: 14px;
}

.t7-secondary-workspace .ps-process-picker {
    width: 520px;
    max-width: 100%;
}

.t7-secondary-workspace .j7-history-count {
    margin-top: 4px;
}

.t7-secondary-workspace .j7-history-table {
    max-height: 620px;
    background: var(--paper);
}

.t7a-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
}

.t7a-viewer-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1100px, 96vw);
    height: min(850px, 92vh);
    overflow: hidden;
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.t7a-viewer-dialog header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.t7a-viewer-dialog button {
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: var(--paper);
    font-weight: 800;
}

.t7a-viewer-dialog > div {
    min-height: 0;
    padding: 18px;
}

.t7a-viewer-dialog img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
