.dw-workspace{display:grid;gap:18px;min-width:0}.dw-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.dw-heading h1{margin:0 0 5px}.dw-heading p,.dw-team header p,.dw-preview>p{margin:0;color:var(--muted,#64748b)}.dw-departments{display:flex;gap:8px;flex-wrap:wrap}.dw-department{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid var(--border,#dce3ee);border-radius:10px;background:var(--surface,#fff);color:var(--text,#14263e);font:inherit;font-size:13px;cursor:pointer}.dw-department.active{background:var(--brand-soft,#eaf2ff);border-color:var(--brand,#2864d6);color:var(--brand,#2864d6)}.dw-department:focus-visible{outline:3px solid var(--brand,#2864d6);outline-offset:3px}.dw-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:18px;align-items:start}.dw-team,.dw-preview,.dw-routines{padding:20px;min-width:0}.dw-team h2,.dw-preview h2,.dw-routines h2{margin:0 0 7px;font-size:18px}.dw-team header p{line-height:1.5}.dw-tool-links,.dw-review-actions,.dw-current-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.dw-workflow{font-size:12px;line-height:1.6;color:var(--muted,#64748b);margin:14px 0}.dw-search{display:flex;gap:8px;margin:18px 0 12px}.dw-search input{flex:1;min-width:0;border:1px solid var(--border,#dce3ee);border-radius:9px;padding:10px 12px;font:inherit}.dw-member{padding:12px 0;border-bottom:1px solid var(--border,#dce3ee);display:flex;align-items:center;justify-content:space-between;gap:12px}.dw-member>div{min-width:0}.dw-member strong,.dw-member small{display:block;overflow-wrap:anywhere}.dw-member small{color:var(--muted,#64748b);margin-top:4px}.dw-member.active strong{color:var(--brand,#2864d6)}.dw-empty,.dw-note{font-size:13px;line-height:1.6;color:var(--muted,#64748b)}.dw-preview .dw-note{margin-top:16px}.dw-chip{font-size:12px;line-height:1.5;padding:5px 9px;border-radius:7px;background:var(--brand-soft,#eef4ff);color:var(--text,#14263e)}.dw-scope,.dw-recommendations{border-top:1px solid var(--border,#dce3ee);margin-top:18px;padding-top:13px}.dw-scope summary,.dw-recommendations summary{font-weight:650;cursor:pointer;font-size:13px}.dw-scope ul{list-style:none;padding:0;margin:10px 0 0;max-height:300px;overflow:auto}.dw-scope li{padding:7px 0;border-bottom:1px solid var(--border,#e8edf5);font-size:12px;display:flex;flex-direction:column;gap:3px}.dw-scope li span,.dw-preset-list small{color:var(--muted,#64748b)}.dw-scope dl{margin:10px 0 0}.dw-scope dl>div{padding:8px 0;font-size:12px}.dw-scope dt{font-weight:650}.dw-scope dd{margin:4px 0 0;line-height:1.5}.dw-scope dd small{display:block;color:var(--muted,#64748b);margin-top:3px}.dw-recommendations p{font-size:12px;color:var(--muted,#64748b);line-height:1.6}.dw-preset-list{display:grid;gap:10px;margin-top:13px}.dw-preset-list strong,.dw-preset-list small{display:block;font-size:12px;line-height:1.6}.dw-routines>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:14px}.dw-routines article{padding:14px;background:var(--background,#f7f9fc);border-radius:10px;display:flex;flex-direction:column;align-items:start}.dw-routines article strong{font-size:13px}.dw-routines article p{font-size:12px;line-height:1.6;color:var(--muted,#64748b);flex:1}.dw-error{color:var(--danger,#b42318)}@media(max-width:1100px){.dw-layout{grid-template-columns:1fr}.dw-routines>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.dw-heading{align-items:flex-start;flex-direction:column}.dw-team,.dw-preview,.dw-routines{padding:15px}.dw-department{font-size:12px;padding:8px 9px}.dw-member{align-items:flex-start;flex-direction:column}.dw-routines>div{grid-template-columns:1fr}.dw-review-actions .btn{flex:1}.dw-search{gap:6px}}

/* Owner setup stays in the department page and opens only when requested. */
.dw-access-controls{min-width:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0 14px}
.dw-access-controls>summary{padding:12px 0;min-height:44px;cursor:pointer;font-size:12px;font-weight:600;color:var(--muted);width:fit-content;max-width:100%}
.dw-access-controls>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.dw-access-controls>div{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 14px}
.dw-heading>div,.dw-layout>*,.dw-routines>div>*{min-width:0}
.dw-heading h1,.dw-heading p,.dw-team h2,.dw-preview h2,.dw-preview>p,.dw-chip,.dw-workflow,.dw-routines article{overflow-wrap:anywhere}
.dw-departments,.dw-tool-links,.dw-review-actions,.dw-current-tools{min-width:0;max-width:100%}
.dw-department,.dw-tool-links>.btn,.dw-review-actions>.btn,.dw-access-controls .btn{white-space:normal;overflow-wrap:anywhere;max-width:100%}
@media(max-width:600px){.dw-access-controls .btn{min-height:44px}.dw-heading h1{font-size:24px;line-height:1.25}}
