.cabinet-dialog{width:min(1100px,94vw);max-height:92dvh;background:var(--psk-paper);padding:20px;overflow:auto}.cabinet-dialog>header{display:flex;justify-content:space-between;align-items:start;gap:16px}.cabinet-dialog h2{font-size:22px}.cabinet-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.cabinet-tabs button{margin:0!important}.cabinet-folders{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;margin:20px 0}.cabinet-folder{position:relative;min-height:90px;white-space:pre-line;text-align:left;margin:12px 5px!important}.cabinet-folder:before{content:'';position:absolute;left:0;top:-10px;width:40%;height:10px;background:var(--psk-button);border-radius:6px 6px 0 0}.cabinet-dialog label{display:block;margin:12px 0}.cabinet-dialog label input,.cabinet-dialog label select,.cabinet-dialog label textarea{display:block;width:100%}.cabinet-item{border:1px solid #acb2b6;border-radius:10px;padding:16px;margin:15px 0;overflow-wrap:anywhere}.cabinet-item p{white-space:pre-wrap}.cabinet-item small{display:block;margin:6px 0}.cabinet-item button{font-size:12px;margin:5px!important}.cabinet-state{font-weight:600}.cabinet-error{color:#9d312c;white-space:pre-wrap}.cabinet-volume-folder{padding:15px;margin:10px 0;background:var(--psk-paper);border:1px solid #adb3b8;border-radius:8px}.cabinet-dialog summary{cursor:pointer;padding:10px;font-weight:600}@media(max-width:650px){.cabinet-dialog{padding:12px;width:96vw}.cabinet-dialog h2{font-size:18px}.cabinet-tabs button{font-size:12px}.cabinet-folders{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep each specialty checkbox and its full clickable label on the same row. */
:is(.cabinet-dialog,.cabinet-inline,.project-correspondence) .cabinet-specialties{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:12px 0}
:is(.cabinet-dialog,.cabinet-inline,.project-correspondence) .cabinet-specialties>label.cabinet-specialty{display:flex;align-items:center;gap:12px;min-height:44px;box-sizing:border-box;margin:0;padding:8px 10px;border:1px solid #d3c9ba;border-radius:8px;cursor:pointer;line-height:1.4;text-align:left}
:is(.cabinet-dialog,.cabinet-inline,.project-correspondence) .cabinet-specialty>input[type="checkbox"]{display:block;flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;max-width:20px;max-height:20px;box-sizing:border-box;margin:0;padding:0;accent-color:#76533a;cursor:pointer}
:is(.cabinet-dialog,.cabinet-inline,.project-correspondence) .cabinet-specialty>span{display:block;min-width:0;overflow-wrap:anywhere}
:is(.cabinet-dialog,.cabinet-inline,.project-correspondence) .cabinet-specialty:focus-within{outline:2px solid #76533a;outline-offset:2px}
@media(hover:hover){:is(.cabinet-dialog,.cabinet-inline,.project-correspondence) .cabinet-specialty:hover{background:#ede7db}}

/* Invitation feedback stays beside its action, inside the same scroll surface. */
.cabinet-dialog .team-invite-status{padding:12px;border:1px solid currentColor;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.cabinet-dialog .team-invite-status[hidden]{display:none!important}
.project-ai-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-right:6px;border-radius:7px;background:var(--psk-button,#5a6b52);color:#fff;font-size:11px;font-weight:700;line-height:1;vertical-align:middle}
html body.warm-modern[data-theme] #view .space-primary-tabs .project-section-picker{width:100%;min-width:0;min-height:42px;height:auto;padding:7px 9px;font-size:13px;text-align:center;text-align-last:center}

.project-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:4px 0 2px}
.project-head h2{margin:0;font-size:20px}
.project-head p.project-head-code{margin:0}
.project-head-edit{font-size:12px;padding:4px 10px}
html body.warm-modern[data-theme] #view .project-nav{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important}
dialog.coordination-dialog{position:fixed;right:0;top:0;bottom:0;left:auto;margin:0;height:100dvh;max-height:100dvh;width:min(480px,94vw);border-radius:0;border-right:0}
@media(max-width:700px){dialog.coordination-dialog{width:100vw}}
