/* Shared action hierarchy and responsive operational tools. */
html[data-theme] :is(button,a.button,summary.button) {
 min-height:40px; line-height:1.4; white-space:normal; overflow-wrap:anywhere;
 transition:background-color .15s,border-color .15s,box-shadow .15s;
}
html[data-theme] :is(button,a.button,summary,input,select,textarea):focus-visible {
 outline:3px solid var(--ws-primary,#2563eb);outline-offset:3px;
}
html[data-theme] :is(button,a.button)[aria-busy=true] {cursor:progress}
html[data-theme] :is(button,a.button):active {filter:brightness(.95)}
html[data-theme] button.danger:not(.primary) {background:transparent;color:var(--ws-danger,#b42318);border:1px solid currentColor}
html[data-theme] :is(.actions,.hero-actions,.section-head) {flex-wrap:wrap}
html[data-theme] .actions {gap:10px}
html[data-theme] :is(.hero,.section-head)>:first-child {min-width:0;overflow-wrap:anywhere}
html[data-theme] .hub-modal {max-height:calc(100dvh - 32px);max-width:calc(100vw - 24px)}
html[data-theme] .hub-modal-body {overscroll-behavior:contain}
.workbench-toolbar,.saved-view-toolbar {display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.workbench-toolbar label {flex:1 1 180px}
.workbench-toolbar label:first-child {flex:2 1 260px}
.saved-view-toolbar>label {flex:1 1 240px;max-width:480px}
.workbench-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}
.workbench-card {border:1px solid var(--ws-line,#d6dbe3);border-radius:12px;padding:20px;display:flex;flex-direction:column;align-items:start;gap:12px;min-width:0}
.workbench-card h2,.workbench-card p {margin:0;overflow-wrap:anywhere}
.workbench-card a.button {margin-top:auto}
.workbench-body {white-space:pre-wrap;overflow-wrap:anywhere;max-width:80ch;line-height:1.8;margin:24px 0}
.workbench-document>.actions {padding-top:20px;border-top:1px solid var(--ws-line,#d6dbe3)}
.playbook-preview {padding-left:24px}
.playbook-preview li {padding:12px 0;border-bottom:1px solid var(--ws-line,#d6dbe3);overflow-wrap:anywhere}
.playbook-preview .badge {margin-inline-start:12px}
.playbook-step {display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;margin-bottom:16px;padding:16px}
.playbook-step>label:nth-of-type(3) {grid-column:1/-1}
.playbook-step button {justify-self:start}
.workbench-history {list-style:none;padding:0}
.workbench-history li {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--ws-line,#d6dbe3)}
@media(pointer:coarse){html[data-theme] :is(button,a.button,summary.button){min-height:44px;min-width:44px}}
@media(max-width:640px){
 .saved-view-toolbar {align-items:stretch}
 .saved-view-toolbar>label {flex-basis:100%;max-width:none}
 .saved-view-toolbar>button {flex:1 1 140px}
 .playbook-step {grid-template-columns:minmax(0,1fr)}
 .playbook-step>label:nth-of-type(3) {grid-column:auto}
 html[data-theme] .hero-actions {width:100%}
 html[data-theme] .hero-actions>.button,html[data-theme] .hero-actions>button {flex:1 1 150px}
}
@media(prefers-reduced-motion:reduce){html[data-theme] :is(button,a.button,summary.button){transition:none}}

.ped-production{margin:20px 0;padding:20px;border:1px solid var(--border,#47515e);border-radius:14px}.ped-shoot-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:14px 0}.ped-shoot-day{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;min-height:104px}.ped-production .actions{margin-top:16px;align-items:end}.ped-production form{padding:16px 0}.ped-production textarea{max-width:100%}@media(max-width:600px){.ped-production{padding:14px}.ped-production .actions{align-items:stretch}.ped-shoot-days{grid-template-columns:1fr}}
@media(max-width:600px){.ped-heading-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:12px}.ped-heading-actions>label{min-width:0;width:100%}.ped-heading-actions input[type=month]{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.ped-create-actions{min-width:0;width:100%}.ped-create-actions>:is(a,button){width:100%;box-sizing:border-box}}

.contract-continuity{border-left:4px solid #d99a26}.contract-continuity-row+article{border-top:1px solid var(--border,#47515e);margin-top:18px;padding-top:18px}.contract-continuity-row .actions{flex-wrap:wrap}.contract-continuity-row details{margin-top:12px}
