.workshop-team{margin-bottom:24px;border-top:4px solid #238568}.workshop-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.workshop-section-heading h2,.workshop-section-heading h3{margin:0 0 8px}.workshop-team h2{font-size:18px}.workshop-team p{margin:0;font-size:12px}.workshop-team-people{display:flex;flex-wrap:wrap;gap:10px}.workshop-person{min-height:46px}.workshop-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}.workshop-project-card{appearance:none;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:22px;cursor:pointer;color:inherit;font:inherit}.workshop-project-card:hover{border-color:#c49c00}.workshop-project-card:focus-visible{outline:3px solid #aa8000;outline-offset:3px}.workshop-project-card h2{font-size:17px;margin:16px 0 8px}.workshop-project-card p{font-size:12px;margin:0 0 16px}.workshop-project-card ul{list-style:none;margin:0 0 18px;padding:0;width:100%}.workshop-project-card li{display:flex;flex-direction:column;gap:5px;padding:10px 0;border-top:1px solid var(--line);font-size:12px}.workshop-project-card li span{font-size:11px;color:var(--muted)}.workshop-open{margin-top:auto;font-size:12px;font-weight:700}.workshop-state{display:inline-block;border-radius:5px;background:#f1f0e9;padding:5px 8px;font-size:11px;font-weight:600}.workshop-state.state-ready,.workshop-state.state-delivered{background:#e0f3e7;color:#165e35}.workshop-state.state-rejected{background:#ffe6e6;color:#942828}.workshop-state.state-producing{background:#fff0bc;color:#795000}.workshop-piece-editor,.workshop-piece{padding:20px;border:1px solid var(--line);border-radius:10px;margin-top:20px}.workshop-processes{border:0;padding:0;margin:0}.workshop-processes legend{font-size:12px;font-weight:600;margin-bottom:8px}.workshop-processes .check-label{min-height:44px;display:inline-flex;margin-right:12px;padding:8px 12px;border:1px solid var(--line);border-radius:7px;gap:10px;cursor:pointer}.workshop-processes input,.workshop-operator-choices input{width:20px;height:20px;flex-shrink:0}.workshop-piece-editor .field small{display:block;margin:8px 0;color:var(--muted)}[data-add-piece]{margin-top:18px;min-height:44px}.workshop-part-files,.workshop-piece-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.workshop-piece-actions .button{min-height:44px}.workshop-piece h4{font-size:12px;margin:16px 0 8px}.workshop-piece .detail-copy{margin:0}.workshop-piece-steps{display:flex;flex-direction:column;gap:8px;margin-top:18px}.workshop-piece-steps>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:12px}.workshop-piece-steps>div>span{margin-left:auto;font-size:11px}.workshop-piece .notice{margin-top:18px;line-height:1.8}.workshop-operator-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.workshop-operator-choices .check-label{min-height:46px;border:1px solid var(--line);border-radius:7px;padding:10px;gap:10px;cursor:pointer}.workshop-detail-pieces>.workshop-piece:first-child{margin-top:0}@media(max-width:600px){.workshop-section-heading{flex-direction:column}.workshop-piece,.workshop-piece-editor{padding:14px}.workshop-operator-choices{grid-template-columns:1fr}}
/* Header keeps the title, workshop contacts and actions centered as one unit. */
.workshop-heading{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(220px,1fr) auto;align-items:center;gap:24px;margin:0 0 28px}
.workshop-heading-title{min-width:0}.workshop-heading-title h1{font-size:28px;letter-spacing:-.7px;margin:0 0 10px}.workshop-heading-title>div>p:last-child{margin:0;font-size:13px;line-height:1.7;color:var(--muted)}
.workshop-heading .workshop-team{border:0;margin:0;min-width:0}.workshop-team-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px}
.workshop-person{display:flex;align-items:center;gap:13px;width:100%;min-width:0;text-align:left;padding:14px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 5px #14231804;transition:border-color .18s,box-shadow .18s,transform .18s}
.workshop-person:hover{border-color:#409477;box-shadow:0 5px 15px #174b3710;transform:translateY(-2px)}.workshop-person:focus-visible{outline:3px solid #238568;outline-offset:3px}.workshop-person>.avatar{width:56px;height:56px;flex:0 0 56px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--soft)}
.workshop-person-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.workshop-person-label{font-size:10px;color:var(--muted);line-height:1.4}.workshop-person-copy strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.workshop-person-link{display:inline-flex;align-items:center;gap:5px;color:#21674d;font-size:11px;font-weight:600}.workshop-person-link svg{width:13px;height:13px}
.workshop-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.workshop-heading-actions .button{white-space:nowrap}.workshop-team-empty{display:flex;align-items:center;gap:12px;font-size:12px;line-height:1.6;color:var(--muted);padding:15px;border:1px dashed var(--line);border-radius:10px;margin:0}
@media(max-width:1100px){.workshop-heading{grid-template-columns:minmax(230px,.8fr) minmax(240px,1fr)}.workshop-heading-actions{grid-column:1/-1;justify-content:flex-end;margin-top:-4px}}
@media(max-width:650px){.workshop-heading{grid-template-columns:1fr;gap:18px}.workshop-heading-actions{justify-content:flex-start}.workshop-heading-actions .button{flex:1}.workshop-heading-title h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){.workshop-person{transition:none}.workshop-person:hover{transform:none}}
.workshop-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:12px}.workshop-summary-card{border:1px solid var(--line);border-radius:11px;background:var(--paper);text-align:left;padding:18px;display:grid;gap:8px;color:var(--ink);transition:transform .18s,border-color .18s,box-shadow .18s}.workshop-summary-card>span{font-size:13px;font-weight:650}.workshop-summary-card>strong{font-size:30px;font-weight:800}.workshop-summary-card>small{font-size:11px;color:var(--muted)}.workshop-summary-card:hover{transform:translateY(-2px);box-shadow:0 5px 16px #14231812}.workshop-summary-card[aria-pressed=true]{border:2px solid #987c0d;padding:17px;background:#fffae8}.workshop-summary-card.summary-producing>strong{color:#946d00}.workshop-summary-card.summary-finished>strong{color:#167653}.workshop-filter-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;font-size:11px;color:var(--muted)}.workshop-filter-line>span{margin-left:auto}.workshop-filter-line .text-button{font-size:11px}.workshop-filter-line [aria-pressed=true]{font-weight:750;color:var(--ink)}
.workshop-project-card{transition:transform .18s,box-shadow .18s,border-color .18s}.workshop-project-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #14231810}.workshop-project-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;width:100%;margin-bottom:12px}.workshop-project-card-head h2{margin:0 0 8px;font-size:19px}.workshop-project-card .workshop-state{font-size:12px;padding:8px 12px;border-radius:7px;font-weight:750;border:1px solid #dcded4;flex-shrink:0}.workshop-state.state-submitted{background:#eaf0fb;color:#305ca4;border-color:#c7d7f0}.workshop-state.state-accepted{background:#e6f4ec;color:#1e7854;border-color:#b5dbc9}.workshop-state.state-queued{background:#fff4cc;color:#806200;border-color:#e7d381}.workshop-state.state-producing{background:#fff0bc;color:#795000;border-color:#e1c052}.workshop-submitted{font-size:11px!important;color:var(--muted);display:block;line-height:1.6}.workshop-piece-line{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%}.workshop-piece-line>strong{font-size:14px}.workshop-process-caption{font-size:12px!important;line-height:1.7;display:block}.workshop-countdown{font-variant-numeric:tabular-nums;font-weight:750;font-size:13px!important;color:#795000!important;background:#fff6d6;padding:8px 10px;border-radius:7px;width:fit-content;display:block}.workshop-countdown.is-overdue{color:#992c35!important;background:#ffecef}.workshop-production{padding:16px 20px;border:1px solid var(--line);border-top:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.workshop-production h4{margin:0;font-size:12px}.workshop-production>button{margin-left:auto;font-size:11px}.workshop-production details{width:100%;font-size:12px;line-height:1.7}.workshop-production summary{cursor:pointer}.workshop-production details p{padding-top:12px;border-top:1px solid var(--line)}.workshop-projects{transition:opacity .18s ease}
@media(max-width:650px){.workshop-summary{gap:8px}.workshop-summary-card{padding:12px}.workshop-summary-card[aria-pressed=true]{padding:11px}.workshop-summary-card>span{font-size:11px}.workshop-summary-card>strong{font-size:24px}.workshop-summary-card>small{display:none}.workshop-project-card-head{gap:8px}.workshop-project-card .workshop-state{font-size:10px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.workshop-project-card,.workshop-summary-card,.workshop-projects{transition:none}.workshop-project-card:hover,.workshop-summary-card:hover{transform:none}}

.workshop-updated{display:inline-flex;margin:8px 0;padding:6px 10px;background:#fff0cd;color:#72520a;border:1px solid #dbbe65;border-radius:7px;font-size:11px;font-weight:750}
:root body .workshop-state.state-changes_requested{background:#463127;color:#ffddb0;border-color:#8b6541}
:root body .workshop-updated{background:#42331f;color:#ffe3a1;border-color:#85703c}

.workshop-preparation{width:100%;min-width:0}.workshop-preparation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.workshop-preparation-files{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:10px}.workshop-preparation-files li{display:grid;justify-items:start;gap:6px;min-width:0}.workshop-preparation-files .button{max-width:100%;text-align:left;overflow-wrap:anywhere;white-space:normal}.workshop-preparation-files small{color:var(--muted)}

.workshop-card-shell{position:relative;min-width:0}.workshop-card-shell>.workshop-project-card{width:100%;height:100%;padding-bottom:60px}.workshop-quick-preview{position:absolute;left:22px;bottom:15px;z-index:1}
.workshop-attention{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.5fr);gap:24px;align-items:start;padding:22px;margin:0 0 22px;border:1px solid #d9b761;border-left:5px solid #a87714;border-radius:12px;background:linear-gradient(120deg,#fff8e6,#fffdf6)}.workshop-attention h2{font-size:18px;margin:5px 0 8px}.workshop-attention p{font-size:12px;line-height:1.6;margin:0}.workshop-attention-list{display:grid;gap:8px;max-height:230px;overflow:auto}.workshop-attention-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 13px;background:var(--paper);border:1px solid #e2d6b7;border-radius:8px;color:var(--ink);text-align:left;cursor:pointer}.workshop-attention-list strong{overflow-wrap:anywhere}.workshop-attention-list span{font-size:11px;color:var(--muted);white-space:nowrap}
:root body .workshop-attention{background:linear-gradient(120deg,#2b261b,#211f1b);border-color:#82672d;color:#f7efe0}:root body .workshop-attention h2{color:#f7efe0}:root body .workshop-attention p{color:#d6cab4}:root body .workshop-attention-list button{background:#332b1d;border-color:#796033;color:#fff0cc}:root body .workshop-attention-list span{color:#ddcba6}
.workshop-detail-page{max-width:1280px;margin:0 auto;padding-bottom:40px}.workshop-detail-header{padding:22px 28px;border-radius:15px;background:linear-gradient(115deg,#163d31,#28684e);color:#fff}.workshop-detail-header .text-button{color:#e0f5e6;margin-bottom:18px}.workshop-detail-header .eyebrow{color:#d8bb65}.workshop-detail-header h1{font-size:clamp(25px,3vw,38px);line-height:1.15;margin:7px 0 14px;overflow-wrap:anywhere}.workshop-detail-header p{font-size:12px;line-height:1.6;margin:7px 0}.workshop-detail-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.workshop-detail-overview>div{display:grid;gap:8px;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:10px}.workshop-detail-overview small{color:var(--muted);font-size:11px}.workshop-detail-overview strong{font-size:25px}.workshop-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.workshop-detail-pieces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}.workshop-detail-pieces>.workshop-piece{margin:0;min-width:0}.workshop-detail-pieces>.workshop-production{grid-column:1/-1;border:1px solid var(--line);border-radius:10px}
@media(max-width:760px){.workshop-attention{grid-template-columns:1fr}.workshop-attention-list button{display:grid}.workshop-attention-list span{white-space:normal}.workshop-detail-header{padding:20px}.workshop-detail-pieces{grid-template-columns:1fr}.workshop-detail-overview{gap:8px}.workshop-detail-overview>div{padding:12px}}
.workshop-detail-part{min-width:0}.workshop-detail-part>.workshop-piece{margin:0;min-width:0}.workshop-detail-part>.workshop-production{border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px}

/* The workshop results sit inside the new scroll frame. Keep the grid and its
   intrinsic card content from widening past the frame's available width. */
.app-shell[data-dashboard-page="workshop"] .workshop-projects {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.app-shell[data-dashboard-page="workshop"] .workshop-projects > *,
.app-shell[data-dashboard-page="workshop"] .workshop-project-card,
.app-shell[data-dashboard-page="workshop"] .workshop-project-card-head,
.app-shell[data-dashboard-page="workshop"] .workshop-project-card-head > *,
.app-shell[data-dashboard-page="workshop"] .workshop-piece-line > * {
  min-width: 0;
  max-width: 100%;
}
.app-shell[data-dashboard-page="workshop"] .workshop-projects :is(h2, p, strong) {
  overflow-wrap: anywhere;
}

/* Workshop managers move into the shared title avatar slot. */
.app-shell[data-dashboard-page="workshop"] .workshop-heading{display:flex;align-items:center;justify-content:flex-end;min-height:44px;gap:12px;margin:0 0 16px}
.app-shell[data-dashboard-page="workshop"] .workshop-heading-responsibles:empty{display:none}
.app-shell[data-dashboard-page="workshop"] .workshop-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0;margin:0}
@media(max-width:650px){.app-shell[data-dashboard-page="workshop"] .workshop-heading-actions{justify-content:flex-start;width:100%}}
