/* A production order is a workbench: stages above, work in the middle, actions below. */
.pc-segmented {display:inline-flex;flex:none;border:1px solid var(--steel-hi);border-radius:7px;overflow:hidden;}
.pc-segmented button {padding:9px 12px;min-height:38px;background:var(--bg2);color:var(--txt-lo);font:600 12px var(--font-ui);}
.pc-segmented button[aria-pressed=true] {background:var(--accent-soft);color:var(--gold-hi);}
.pc-invitations {flex:none;max-height:150px;overflow:auto;border:1px solid var(--gold-lo);border-radius:8px;background:var(--bg2);}
.pc-invitation {display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--steel);}
.pc-invitation>div {flex:1;min-width:0;overflow-wrap:anywhere;}
.pc-invitation strong {font-size:13px;color:var(--txt-hi);}
.pc-invitation p {font-size:11px;color:var(--txt-lo);margin:5px 0 0;}
.po-workspace.pc-board-workspace {display:flex;overflow:hidden;}
.pc-board {display:flex;gap:12px;flex:1;min-width:0;min-height:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;overscroll-behavior:contain;}
.pc-column {flex:0 0 248px;min-width:0;display:flex;flex-direction:column;border:1px solid var(--steel);border-radius:8px;background:var(--bg2);overflow:hidden;}
.pc-column-header {display:flex;align-items:center;gap:8px;min-height:48px;padding:12px;border-bottom:1px solid var(--steel);}
.pc-column-header i {width:7px;height:7px;border-radius:50%;flex:none;}
.pc-column-header h2 {font-size:12px;color:var(--txt-hi);margin:0;flex:1;}
.pc-column-header>span {font-size:11px;color:var(--txt-lo);}
.pc-column-cards {min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px;flex:1;}
.pc-board-card {border:1px solid var(--steel-hi);border-radius:7px;background:var(--bg);margin-bottom:8px;overflow:hidden;}
.pc-board-card[draggable=true] {cursor:grab;}
.pc-card-open {display:flex;flex-direction:column;gap:9px;padding:12px;width:100%;text-align:left;color:var(--txt);background:transparent;}
.pc-card-open strong {font-size:13px;line-height:1.6;color:var(--txt-hi);overflow-wrap:anywhere;}
.pc-card-client,.pc-card-date {font-size:11px;color:var(--txt-lo);}
.pc-card-meta {display:flex;flex-wrap:wrap;gap:8px;font-size:10px;color:var(--txt-lo);}
.pc-card-meta b {font-weight:600;color:var(--txt);}
.pc-board-card>select {width:calc(100% - 16px);margin:0 8px 8px;min-height:32px!important;padding:6px 8px!important;font-size:11px!important;}
.pc-column-empty {font-size:12px;color:var(--txt-lo);padding:18px 6px;text-align:center;}
.personal-orders-page.po-production-selected {padding:0;gap:0;overflow:hidden;}
.po-production-selected>:is(.po-header,.po-metrics,.po-toolbar,.pc-invitations) {display:none;}
.po-production-selected>.po-workspace {display:flex;gap:0;overflow:hidden;}
.production-workspace {display:flex;flex-direction:column;flex:1;width:100%;min-width:0;min-height:0;overflow:hidden;background:var(--bg);}
.pc-workspace-header {display:flex;align-items:center;gap:16px;flex:none;padding:15px 22px 10px;border-bottom:1px solid var(--steel);}
.pc-workspace-title {flex:1;min-width:0;}
.pc-workspace-title h1 {font-size:20px;line-height:1.4;font-weight:700;color:var(--txt-hi);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-workspace-title p {font-size:12px;color:var(--txt-lo);margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-access-badge {font-size:12px;border:1px solid var(--steel-hi);border-radius:5px;padding:5px 8px;white-space:nowrap;color:var(--txt-lo);}
.pc-phase-track {display:flex;gap:4px;flex:none;overflow-x:auto;overscroll-behavior:contain;padding:4px 18px;background:var(--bg2);}
.pc-phase-track button {display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;white-space:nowrap;padding:7px 10px;color:var(--txt-lo);font:600 12px var(--font-ui);border-bottom:2px solid transparent;}
.pc-phase-track button i {width:5px;height:5px;border-radius:50%;flex:none;}
.pc-phase-track button.is-current {border-color:var(--gold);color:var(--txt-hi);}
.pc-phase-track button:disabled {opacity:1;cursor:default;}
.pc-order-state {display:flex;align-items:center;gap:14px;min-height:22px;padding:3px 22px;font-size:12px;color:var(--txt-lo);white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere;}
.pc-workspace-tabs {display:flex;gap:4px;flex:none;padding:0 18px;overflow-x:auto;overscroll-behavior:contain;border-bottom:1px solid var(--steel-hi);}
.pc-workspace-tabs button {flex:none;padding:11px 12px;min-height:42px;color:var(--txt-lo);border-bottom:2px solid transparent;font:600 12px var(--font-ui);white-space:nowrap;}
.pc-workspace-tabs button[aria-current=page] {color:var(--gold-hi);border-color:var(--gold);}
.pc-workspace-scroll {flex:1;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 24px;}
.pc-tab-panel {width:100%;min-width:0;max-width:100%;}
.pc-tab-panel[hidden] {display:none;}
.pc-pane {width:100%;max-width:1120px;min-width:0;line-height:1.6;overflow-wrap:anywhere;}
.pc-pane h2 {font-size:20px;color:var(--txt-hi);margin:0 0 10px;}
.pc-pane h3 {font-size:15px;color:var(--txt-hi);margin:24px 0 12px;}
.pc-pane-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;}
.pc-pane-heading h2 {margin-bottom:3px;}
.pc-pane-heading p {font-size:12px;color:var(--txt-lo);margin:0;}
.pc-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0;}
.pc-field {display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;color:var(--txt-lo);margin-bottom:12px;}
.pc-fields .pc-field {margin:0;}
.pc-wide {grid-column:1/-1;}
/* Bound the controls themselves: iOS native select/date internals can otherwise
   add scrollable overflow even when the visible field already fits its grid. */
.pc-field input,.pc-field select,.pc-field textarea {display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-inline-size:0;max-inline-size:100%;}
.pc-field select {overflow-x:hidden;}
.pc-field>p {font-size:13px;color:var(--txt);margin:8px 0;}
.pc-actions {display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.pc-check {display:flex;align-items:center;gap:8px;min-height:40px;font-size:12px;color:var(--txt-lo);}
.pc-workspace-footer {display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none;border-top:1px solid var(--steel-hi);padding:10px 22px;background:var(--bg2);min-height:62px;box-sizing:border-box;}
.pc-workspace-footer>div:first-child {display:flex;gap:18px;font-size:12px;color:var(--txt-lo);}
.pc-empty {padding:24px 14px;font-size:13px;color:var(--txt-lo);}
.pc-plan-presets {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;border-block:1px solid var(--steel);font-size:12px;color:var(--txt-lo);margin-bottom:16px;}
.pc-task-form,.pc-team-form,.pc-document-form {padding:14px 16px 16px;background:var(--bg2);border:1px solid var(--steel);border-radius:8px;margin-bottom:20px;}
.pc-task-form h3,.pc-team-form h3,.pc-document-form h3 {margin:0 0 12px;}
.pc-invite-group {min-width:0;margin:0 0 12px;padding:0;border:0;}
.pc-invite-group legend {padding:0 0 4px;color:var(--txt-hi);font-size:13px;font-weight:600;}
.pc-invite-list {max-height:14rem;overflow-y:auto;border-block:1px solid var(--steel);}
.pc-invite-person {display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 8px;box-sizing:border-box;cursor:pointer;color:var(--txt);font-size:14px;}
.pc-invite-person+.pc-invite-person {border-top:1px solid var(--steel);}
.pc-invite-person input[type=radio] {appearance:auto;width:16px;height:16px;min-height:0;flex:none;margin:0;accent-color:var(--gold);}
.pc-invite-person span {min-width:0;overflow-wrap:anywhere;}
.pc-invite-person small {margin-inline-start:auto;text-align:end;color:var(--txt-lo);font-size:12px;}
.pc-invite-person:has(:checked) {background:var(--accent-soft);color:var(--txt-hi);}
.pc-invite-person:has(:focus-visible) {outline:2px solid var(--gold);outline-offset:-2px;}
.pc-invite-person:has(:disabled) {cursor:default;}
.pc-task-list {display:flex;flex-direction:column;gap:8px;}
.pc-task-card {display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid var(--steel);}
.pc-task-main {flex:1;min-width:0;}
.pc-task-main strong {font-size:14px;color:var(--txt-hi);overflow-wrap:anywhere;}
.pc-task-main p {font-size:12px;white-space:pre-wrap;color:var(--txt-lo);margin:6px 0;}
.pc-task-meta {display:flex;gap:10px;flex-wrap:wrap;font-size:10px;color:var(--txt-lo);margin-top:8px;}
.pc-task-meta b {color:var(--gold);font-weight:500;}
.pc-task-card.is-complete .pc-task-main strong {color:var(--txt-lo);}
.pc-task-controls {display:flex;align-items:center;gap:6px;flex:none;}
.pc-task-controls select {max-width:170px;}
.pc-person {display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--steel);}
.pc-person-avatar {width:38px;height:38px;flex:none;display:grid;place-items:center;background:var(--accent-soft);color:var(--gold);border:1px solid var(--gold-lo);border-radius:50%;}
.pc-person-info {flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;}
.pc-person-info strong {color:var(--txt-hi);}
.pc-person-info p {font-size:12px;margin:3px 0;color:var(--txt-lo);}
.pc-person-access {font-size:10px;color:var(--txt-lo);}
.pc-document-form>.pc-segmented {margin-bottom:14px;}
.pc-file-input {display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--txt-lo);margin:14px 0;}
.pc-file-input input {width:100%;}
.pc-file-input ::file-selector-button {background:var(--surface-raised);color:var(--txt);font:inherit;border:1px solid var(--steel-hi);padding:6px 10px;border-radius:4px;margin-right:10px;}
.pc-document {border:1px solid var(--steel-hi);border-radius:8px;padding:14px;margin-bottom:10px;background:var(--bg2);}
.pc-document-row {display:flex;align-items:flex-start;gap:16px;padding:4px 0;}
.pc-document-info {flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere;}
.pc-document-info strong {color:var(--txt-hi);}
.pc-document-info p {font-size:11px;color:var(--txt-lo);margin:5px 0;}
.pc-document-info>span {font-size:11px;color:var(--txt-lo);}
.pc-document-info>b {display:inline-block;margin-left:9px;font-size:10px;color:var(--gold);}
.pc-document-actions {display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap;max-width:470px;}
.pc-document-actions select {max-width:170px;}
.pc-doc-state {font-size:11px;color:var(--txt-lo);}
.pc-document-versions {border-top:1px solid var(--steel);margin-top:12px;padding-top:10px;}
.pc-document-versions summary {font-size:11px;color:var(--txt-lo);cursor:pointer;margin-bottom:10px;}
.pc-document-versions .pc-document-row {padding:14px 0;border-bottom:1px solid var(--steel);}
.pc-document-row.is-archived {opacity:.65;}
.pc-estimate-total {font-size:22px;color:var(--gold-hi);font-weight:650;white-space:nowrap;}
.pc-estimate-table {overflow:auto;max-width:100%;margin:12px 0;overscroll-behavior:contain;}
.pc-estimate-table table {border-collapse:collapse;width:100%;min-width:680px;text-align:left;font-size:12px;}
.pc-estimate-table th {padding:8px;color:var(--txt-lo);font-size:11px;font-weight:500;border-bottom:1px solid var(--steel-hi);}
.pc-estimate-table td {padding:8px;border-bottom:1px solid var(--steel);}
.pc-estimate-table td:first-child {width:40%;}
.pc-estimate-table td input {width:100%;}
.pc-estimate-table td:nth-child(2) input,.pc-estimate-table td:nth-child(3) input {min-width:65px;}
.pc-estimate-table td:nth-child(4) input {min-width:100px;}
.pc-estimate-table td:nth-child(5) {white-space:nowrap;}
.pc-comments {display:flex;flex-direction:column;gap:10px;margin:18px 0;}
.pc-comment {padding:14px 16px;background:var(--bg2);border:1px solid var(--steel);border-radius:8px;}
.pc-comment header {display:flex;justify-content:space-between;gap:12px;align-items:center;}
.pc-comment strong {font-size:12px;color:var(--txt-hi);}
.pc-comment time {font-size:10px;color:var(--txt-lo);}
.pc-comment p {font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0;}
.pc-link-button {font:500 11px var(--font-ui);color:var(--txt-lo);padding:6px 0;text-decoration:underline;}
.pc-comment-form {border-top:1px solid var(--steel);padding-top:18px;}
.pc-timeline {list-style:none;padding:0;margin:14px 0;}
.pc-timeline li {position:relative;display:flex;justify-content:space-between;gap:20px;padding:14px 0 14px 18px;border-bottom:1px solid var(--steel);font-size:12px;}
.pc-timeline li::before {content:'';position:absolute;left:1px;top:23px;width:5px;height:5px;border-radius:50%;background:var(--gold-lo);}
.pc-timeline strong {font-weight:600;color:var(--txt-hi);}
.pc-timeline p {margin:4px 0;color:var(--txt-lo);}
.pc-timeline li>div:last-child {display:flex;flex-direction:column;text-align:right;font-size:10px;color:var(--txt-lo);gap:5px;flex:none;}
.pc-document-preview {position:fixed;inset:0;margin:auto;padding:0;width:min(1100px,calc(100vw - 32px));height:calc(100vh - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;background:var(--bg2);color:var(--txt);border:1px solid var(--steel-hi);border-radius:9px;overflow:hidden;}
.pc-document-preview:not([open]) {display:none;}
.pc-document-preview[open] {display:flex;flex-direction:column;}
.pc-document-preview::backdrop {background:rgba(0,0,0,.72);}
.pc-document-preview>header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;flex:none;}
.pc-document-preview>header>strong {font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.pc-document-preview>header>.pc-actions {flex:none;}
.pc-document-preview iframe {flex:1;min-height:0;width:100%;border:0;background:white;}
@media(max-width:1000px) {
 .pc-workspace-header {padding:12px 14px 9px;gap:10px;}
 .pc-workspace-title h1 {font-size:18px;}
 .pc-workspace-scroll {padding:16px;}
 .pc-workspace-footer {padding:9px 14px;}
 .pc-workspace-footer>div:first-child {flex-direction:column;gap:3px;}
 .pc-document-row {flex-direction:column;}
 .pc-document-actions {justify-content:flex-start;max-width:none;}
 .pc-task-card {flex-direction:column;}
 .pc-task-controls {width:100%;}
}
@media(max-width:650px) {
 .personal-orders-page:not(.po-has-editor) .po-workspace.pc-board-workspace {display:flex;height:420px;min-height:300px;}
 .pc-column {flex-basis:calc(100vw - 40px);}
 .pc-board {gap:9px;}
 .po-toolbar>.pc-segmented {grid-column:1/-1;justify-self:start;}
 .pc-segmented button {min-height:40px;}
 .pc-invitation {flex-wrap:wrap;padding:12px;}
 .pc-invitation>div {flex-basis:100%;}
 .personal-orders-page.po-production-selected {display:flex;padding:0;}
 .pc-workspace-header {gap:8px;padding:10px;}
 .pc-back {padding:8px;min-width:91px;font-size:11px;}
 .pc-workspace-title h1 {font-size:16px;}
 .pc-workspace-title p {font-size:12px;}
 .pc-access-badge {font-size:12px;padding:5px;}
 .pc-phase-track {padding:3px 8px;}
 .pc-phase-track button {min-height:44px;font-size:12px;}
 .pc-order-state {padding:6px 10px;gap:8px;font-size:12px;}
 .pc-workspace-tabs {padding:0 6px;}
 .pc-workspace-tabs button {font-size:12px;min-height:44px;padding:10px;}
 .pc-workspace-scroll {padding:14px 10px;}
 .pc-pane h2 {font-size:18px;}
 .pc-fields {grid-template-columns:minmax(0,1fr);gap:12px;}
 .pc-wide {grid-column:auto;}
 .pc-field {font-size:13px;}
 .pc-field input:is([type=date],[type=time]) {appearance:none;-webkit-appearance:none;}
 .pc-field input::-webkit-date-and-time-value {min-width:0;text-align:left;}
 .pc-task-form,.pc-team-form,.pc-document-form {padding:12px 10px;}
 .pc-workspace-footer {padding:8px 10px;gap:8px;min-height:62px;}
 .pc-workspace-footer>div:first-child {font-size:12px;}
 .pc-workspace-footer .po-button {padding:8px 10px;font-size:12px;}
 .pc-workspace-footer .pc-actions {gap:5px;flex-wrap:nowrap;}
 .pc-person {flex-wrap:wrap;}
 .pc-person>.pc-actions {flex-basis:100%;padding-left:50px;}
 .pc-timeline li {flex-direction:column;gap:6px;}
 .pc-timeline li>div:last-child {flex-direction:row;text-align:left;}
 .pc-document-preview {width:calc(100vw - 16px);height:calc(100dvh - 16px);}
 .pc-document-preview>header {padding:9px;flex-wrap:wrap;}
 .pc-document-preview>header>.pc-actions {width:100%;}
}
@media(max-height:520px) {
 .pc-phase-track {display:none;}
 .pc-workspace-header {padding:5px 12px;min-height:36px;}
 .pc-workspace-title h1 {font-size:15px;}
 .pc-workspace-title p {display:none;}
 .pc-workspace-tabs button {padding:6px 10px;min-height:32px;}
 .pc-workspace-footer {padding:5px 12px;min-height:44px;}
 .pc-workspace-footer .po-button {min-height:34px;padding:6px 10px;}
 .pc-order-state {min-height:18px;padding:2px 12px;}
 .pc-workspace-scroll {padding:12px;}
}

.pc-source-order { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:10px 18px; color:var(--text2); border-bottom:1px solid var(--border); font-size:12px; }
.pc-source-order > span:first-child,.pc-card-origin { color:var(--gold); font-size:12px; }
.pc-project-teams{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--steel-hi)}
.pc-project-team{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px;border:1px solid var(--steel-hi);border-radius:9px;margin:10px 0;background:var(--bg2)}
.pc-project-team>div{flex:1;min-width:0}.pc-project-team strong{overflow-wrap:anywhere}.pc-project-team p{margin:6px 0;color:var(--txt-lo)}.pc-project-team small{color:var(--txt-lo)}
.pc-task-team{color:var(--gold);padding:2px 6px;border:1px solid var(--steel-hi);border-radius:5px}

/* Linked marketplace identity stays one compact row; explanation is available on demand. */
.production-workspace .pc-source-order{display:flex;align-items:center;gap:6px 10px;padding:6px 12px;color:var(--txt-lo);border-bottom:1px solid var(--steel);font-size:12px;}
.pc-source-toggle{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 0;color:var(--txt);font:600 12px var(--font-ui);text-align:left;cursor:pointer;}
.pc-source-toggle>span{font-size:15px;color:var(--txt-lo);}
.pc-source-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.pc-source-explanation{display:flex;flex:1 1 100%;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:4px 0 8px;line-height:1.6;}
.pc-source-explanation>span{flex-basis:100%;}
.pc-phase-current{color:var(--txt-hi);font-weight:600;}
.production-workspace .form-draft-recovery{margin:0 0 14px;padding:0;border:0;border-radius:0;background:transparent;font-size:12px;line-height:1.5;}
.production-workspace .form-draft-recovery>.po-hint{margin:0;font-size:12px;line-height:1.5;}
@media(max-width:650px){
 .pc-workbench .pc-workspace-title h1{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;font-size:16px;line-height:1.5;}
 .pc-source-toggle{min-height:44px;}
 .production-workspace .pc-source-order{gap:4px 10px;padding:4px 10px;}
 .production-workspace .pc-source-order>.po-button{font-size:12px;padding:8px 10px;}
}
.pc-source-parent{display:flex;flex:1 1 100%;align-items:center;gap:8px 12px;flex-wrap:wrap;padding-bottom:4px;}
.pc-source-explanation[hidden]{display:none;}
.pc-source-warning{flex-basis:100%;line-height:1.6;}

/* Order details: keep document actions and the event history legible within
   the compact work area, without changing their behaviour elsewhere. */
.production-workspace .ow-chapter .pc-pane {max-width:100%;line-height:1.55;}
.production-workspace .ow-chapter .pc-pane-heading {align-items:flex-start;gap:16px;margin-bottom:20px;}
.production-workspace .ow-chapter .pc-pane-heading > div:first-child {min-width:0;}
.production-workspace .ow-chapter .pc-pane-heading h2 {font-size:18px;line-height:1.35;margin:0 0 5px;}
.production-workspace .ow-chapter .pc-pane-heading p {font-size:13px;line-height:1.5;}
.production-workspace .ow-chapter .pc-document {padding:16px;margin:0 0 10px;background:var(--bg);border-color:var(--steel);border-radius:10px;}
.production-workspace .ow-chapter .pc-document-row {align-items:flex-start;gap:16px;padding:0;}
.production-workspace .ow-chapter .pc-document-info {font-size:14px;line-height:1.5;}
.production-workspace .ow-chapter .pc-document-info p,
.production-workspace .ow-chapter .pc-document-info > span {font-size:12px;line-height:1.5;}
.production-workspace .ow-chapter .pc-document-info > b {font-size:12px;}
.production-workspace .ow-chapter .pc-document-actions {gap:8px;min-width:0;}
.production-workspace .ow-chapter .pc-document-actions :is(button,select) {min-height:44px;max-width:100%;}
.production-workspace .ow-chapter .pc-document-versions {margin-top:16px;padding-top:12px;}
.production-workspace .ow-chapter .pc-document-versions summary {min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:13px;list-style:none;}
.production-workspace .ow-chapter .pc-document-versions summary::-webkit-details-marker {display:none;}
.production-workspace .ow-chapter .pc-document-versions summary::after {content:"›";font-size:20px;line-height:1;color:var(--txt-lo);}
.production-workspace .ow-chapter .pc-document-versions[open] summary::after {transform:rotate(90deg);}
.production-workspace .ow-chapter .pc-document-versions .pc-document-row {padding:14px 0;}
.production-workspace .ow-chapter .pc-timeline {margin:12px 0 0;}
.production-workspace .ow-chapter .pc-timeline li {gap:20px;padding:16px 0 16px 22px;font-size:14px;line-height:1.5;}
.production-workspace .ow-chapter .pc-timeline li::before {left:2px;top:22px;width:7px;height:7px;background:var(--gold);}
.production-workspace .ow-chapter .pc-timeline li > div:first-child {min-width:0;}
.production-workspace .ow-chapter .pc-timeline li > div:last-child {font-size:12px;line-height:1.5;}
.production-workspace .ow-chapter .pc-comment {padding:16px;background:var(--bg);}
.production-workspace .ow-chapter .pc-comment strong,
.production-workspace .ow-chapter .pc-comment time {font-size:12px;}
.production-workspace .ow-chapter .pc-comment p {font-size:14px;}
@media(max-width:1000px){
 .production-workspace .ow-chapter .pc-pane-heading {flex-wrap:wrap;}
 .production-workspace .ow-chapter .pc-document-actions {justify-content:flex-start;max-width:none;}
}
@media(max-width:650px){
 .production-workspace .ow-chapter .pc-document {padding:14px;}
 .production-workspace .ow-chapter .pc-document-actions {width:100%;}
 .production-workspace .ow-chapter .pc-document-actions button {white-space:normal;text-align:center;}
 .production-workspace .ow-chapter .pc-timeline li {gap:6px;padding-block:14px;}
 .production-workspace .ow-chapter .pc-timeline li > div:last-child {flex-wrap:wrap;}
}

/* Team headers, forms and rosters share the edges of the order card. */
.pc-order-team {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;container:order-team / inline-size;}
.production-workspace .pc-order-team .pc-pane-heading {
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 16px;margin:0;
}
.pc-order-team .pc-team-form {
 display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:16px;
}
.pc-order-team .pc-team-form :is(h3,.pc-field,.pc-fields,.pc-invite-group) {margin:0;}
.pc-order-team .pc-invite-picker {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;}
.pc-order-team .pc-fields {align-items:end;gap:12px 16px;}
.pc-order-team .pc-field {gap:6px;}
.pc-order-team .pc-field :is(input,select) {
 box-sizing:border-box;height:44px;padding:8px 12px;border:1px solid var(--order-field-border,var(--steel-hi));
 border-radius:8px;font:inherit;background-color:var(--bg);color:var(--txt-hi);
}
.pc-order-team .pc-field select {padding-inline-end:24px;}
.pc-order-team .pc-team-form>.po-hint {margin:0;font-size:13px;line-height:1.5;}
.pc-order-team .pc-team-form>.pc-actions {gap:8px;}
.pc-order-team .pc-person:first-child {padding-block-start:0;}
.pc-order-team .pc-person:last-child {border-bottom:0;padding-block-end:0;}
.pc-order-team .pc-project-teams {
 display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:16px 0 0;
 border:0;border-top:1px solid var(--steel);
}
.pc-order-team .pc-project-team {margin:0;}
.pc-order-team .pc-project-teams>.pc-empty {margin:0;padding:0;}
@container order-team (max-width:32rem) {
 .pc-order-team .pc-team-form {padding:12px;}
 .pc-order-team .pc-fields {grid-template-columns:minmax(0,1fr);}
 .pc-order-team .pc-team-form>.pc-actions>.po-button {flex:1 1 auto;white-space:normal;text-align:center;}
}
@container order-team (max-width:19rem) {
 .production-workspace .pc-order-team .pc-pane-heading {grid-template-columns:minmax(0,1fr);justify-items:start;}
}

.estimate-budget-check {margin:0;color:var(--txt-lo)}
.estimate-budget-check strong {color:var(--txt-hi)}
.estimate-budget-check[data-over="true"] strong {color:var(--red)}
