/* PhaseT7: robust two-column PO Production Trail workspace. */
.n1-po.j6b-workspace-open .j6-ta[data-t7-ready="1"] {
    padding: 0 !important;
    overflow: hidden;
}

.t7-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 650px;
}

.t7-summary {
    padding: 24px;
    border-right: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
}

.t7-summary-label,
.t7-workspace-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.t7-photo {
    height: 240px;
    margin: 14px 0 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.t7-photo-open {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.t7-photo-open img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.t7-photo-open span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--green);
    color: var(--paper);
    font-size: 11px;
    font-weight: 800;
}

.t7-photo-empty {
    display: grid;
    place-content: center;
    height: 100%;
    padding: 20px;
    color: var(--muted);
    text-align: center;
}
.t7-photo-empty span { font-weight: 800; }
.t7-photo-empty small { margin-top: 5px; }

.t7-summary h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.15;
}

.t7-summary h2 {
    margin: 5px 0 0;
    font-size: 19px;
    line-height: 1.25;
}

.t7-color {
    margin: 7px 0 20px;
    color: var(--muted);
    font-weight: 700;
}

.t7-summary dl { margin: 0; }
.t7-summary dt {
    margin-top: 13px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.t7-summary dd { margin: 3px 0 0; font-weight: 700; }

.t7-config {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.t7-config > div {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 9px;
    align-items: start;
}
.t7-config i {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--green);
}
.t7-config span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.t7-config b { display: block; color: var(--ink); font-size: 12px; }

.t7-workspace {
    min-width: 0;
    padding: 24px;
    background: var(--paper);
}

.t7-workspace-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.t7-workspace-head h2 { margin: 4px 0 0; font-size: 23px; }

.t7-progress {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    height: 12px;
    margin: -4px 0 16px;
}
.t7-progress span {
    background: var(--line);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
}
.t7-progress span:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.t7-progress .is-done { background: var(--green); }
.t7-progress .is-risk { background: var(--accent); }

.t7-workspace .j6-process-strip { margin-top: 14px; }
.t7-workspace .j6-picker { width: 520px; margin-top: 8px; }
.t7-workspace .j6-editor { border-radius: 13px; }
.t7-workspace .j6-editor > footer .primary { min-width: 280px; }
.t7-workspace .j7-add-panel,
.t7-workspace .j7-internal-settings { background: var(--soft); }

.t7-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
}
.t7-viewer-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1100px, 96vw);
    height: min(850px, 92vh);
    border-radius: 15px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.t7-viewer-dialog header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}
.t7-viewer-dialog button {
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: var(--paper);
    font-weight: 800;
}
.t7-viewer-dialog > div { min-height: 0; padding: 18px; }
.t7-viewer-dialog img { width: 100%; height: 100%; object-fit: contain; }
.t7-viewer-open { overflow: hidden; }

@media (max-width: 1150px) {
    .t7-layout { grid-template-columns: 250px minmax(0, 1fr); }
    .t7-summary { padding: 18px; }
    .t7-photo { height: 190px; }
    .t7-workspace { padding: 18px; }
}

@media (max-width: 850px) {
    .t7-layout { grid-template-columns: 1fr; }
    .t7-summary { border-right: 0; border-bottom: 1px solid var(--line); }
    .t7-photo { width: 180px; height: 180px; float: right; margin: 0 0 16px 18px; }
    .t7-workspace-head { flex-direction: column; }
}

@media (max-width: 560px) {
    .t7-photo { float: none; width: 100%; height: 220px; margin: 14px 0; }
    .t7-workspace .j6-picker { width: 100%; }
}
