/* Compact, named participants and usable dialogs. */
[hidden]{display:none!important}
.modal{width:650px;max-width:calc(100vw - 32px)}
.modal.wide{width:1000px}
.modal-header h2{font-size:23px;line-height:1.25;margin:9px 0 0;letter-spacing:-.6px}
.modal-header .eyebrow{font-size:10px}
.modal-body{overscroll-behavior:contain;scrollbar-gutter:stable}
.modal-body .field input[type=checkbox],.modal-body .field input[type=radio],.field input[type=checkbox],.field input[type=radio]{width:17px;height:17px;min-width:17px;min-height:17px;flex:0 0 17px;margin:0;accent-color:var(--brand-primary)}
.field label.check-row,.access-grid label.check-row{display:flex;align-items:center;gap:10px;margin:0;padding:11px 12px;line-height:1.5}
.access-grid:has(.check-row){grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px;max-height:300px;overflow:auto;background:#f8faff}
.modal-body .modal-footer{background:#fff;gap:9px;flex-wrap:wrap;padding-bottom:2px}
.modal-body p{line-height:1.65}
.member-directory{display:grid;gap:8px;margin:16px 0 20px}
.member-card{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #e5eaf3;border-radius:12px;background:#fafbfe;min-width:0}
.member-card>div{flex:1;min-width:0}
.member-card strong,.member-card small{display:block;line-height:1.6;overflow-wrap:anywhere}
.member-card strong{font-size:13px;color:#293c59}
.member-card small{font-size:11px;color:#62718a}
.member-card .avatar,.member-option .avatar{flex:0 0 34px;margin:0;position:static;width:34px;height:34px;border:0}
.member-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:310px;overflow:auto;padding:3px;margin:8px 0 12px}
.field label.member-option{display:flex;align-items:center;gap:10px;padding:12px;margin:0;border:1px solid #e0e6f0;border-radius:11px;cursor:pointer;background:#fff;min-height:70px;line-height:1.4}
.member-option:hover{border-color:#acbaf7;background:#fafbff}
.member-option:has(input:checked){border-color:var(--brand-primary);background:var(--brand-soft);box-shadow:0 0 0 1px var(--brand-primary)}
.member-option>span:not(.avatar):not(.selection-tick){flex:1;min-width:0}
.member-option strong,.member-option small{display:block;overflow-wrap:anywhere}
.member-option strong{font-size:12px;color:#2b3b59}
.member-option small{font-size:10px;color:#687892;margin-top:4px}
.selection-tick{color:var(--brand-ink);visibility:hidden;font-size:16px}
.member-option:has(input:checked) .selection-tick{visibility:visible}
.picker-heading{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:650;margin:14px 2px 4px}
.storage-status{display:flex;gap:13px;align-items:center;background:linear-gradient(120deg,#f1f4ff,#effaf6);border:1px solid #dde5f4;padding:17px;border-radius:13px;margin-bottom:20px}
.storage-status>div{flex:1}.storage-status strong{font-size:14px}.storage-status p{font-size:11px;margin:4px 0 0;color:#63758b}
.storage-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:22px}
.storage-card{border:1px solid #e1e7f1;border-radius:14px;padding:20px;margin-bottom:16px;background:#fff}
.storage-card h3{font-size:15px;margin:8px 0}.storage-card p{font-size:12px;color:#5f6e84;line-height:1.75}.storage-card small{display:block;font-size:11px;line-height:1.65;margin-top:10px;color:#65768d}
.btn:disabled{cursor:not-allowed;opacity:.65;box-shadow:none}
.pd-members,.wl-members{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.pd-member,.wl-member{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid #e3e8f2;border-radius:10px;background:#f8faff;min-width:0}
.pd-member .avatar,.wl-member .avatar{margin:0;flex:none;position:static}
.pd-member strong,.pd-member small,.wl-member strong,.wl-member small{display:block;font-size:12px;line-height:1.6}.pd-member small,.wl-member small{font-size:10px;color:#62738c}
.wl-toolbar,.wl-tabs,.wl-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.wl-detail-section{padding:16px;border:1px solid #e5eaf3;border-radius:12px;margin-bottom:14px}
.wl-entry-card,.wl-card{border:1px solid #e1e8f3;border-radius:12px;background:#fff;padding:17px;margin-bottom:10px}
.wl-entry-card p,.wl-card p{font-size:12px;line-height:1.7;color:#64738b}
.wl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.wl-history{border-left:2px solid #dfe6f5;padding-left:17px;margin:18px 0}.wl-history>div{margin:12px 0;line-height:1.7}
.wl-empty{padding:28px;text-align:center;color:#677994}
.form-grid>*{min-width:0}.modal-body textarea{resize:vertical;min-height:75px}
@media(max-width:650px){.modal{max-width:calc(100vw - 16px);width:calc(100vw - 16px);margin:0;max-height:calc(100dvh - 16px)}.modal-header{padding:17px}.modal-header h2{font-size:21px}.modal-body{padding:16px}.member-picker,.storage-grid,.wl-grid,.access-grid:has(.check-row){grid-template-columns:1fr}.member-picker{max-height:280px}.member-card{padding:10px}.modal-body .modal-footer{justify-content:flex-end}.storage-card{padding:15px}.storage-status{flex-wrap:wrap}.modal .detail-grid{gap:12px}}
.wl-person-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;padding:3px}.wl-picker{border:1px solid #e0e7f2;border-radius:12px;padding:16px;margin:0;grid-column:1/-1}.wl-picker legend{padding:0 6px;font-weight:700;font-size:12px}.wl-picker>p{margin-top:0;font-size:11px}.wl-person-option{display:flex!important;align-items:center;gap:10px;border:1px solid #e3e8f1;background:#fbfcff;padding:11px!important;margin:0!important;border-radius:10px;cursor:pointer}.wl-person-option input{width:17px!important;min-height:17px!important;flex:none}.wl-person-option .avatar{flex:none;margin:0;position:static}.wl-person-option strong,.wl-person-option small{display:block;font-size:12px;line-height:1.6}.wl-person-option small{font-size:10px;color:#697992}.wl-person-option:has(input:checked){border-color:var(--brand-primary);background:var(--brand-soft)}.wl-card-top,.wl-card-footer,.wl-card-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}.wl-card h3{font-size:15px;margin:14px 0 7px}.wl-card-meta,.wl-card-footer small{font-size:11px;color:#62728c}.wl-card-footer{padding-top:12px;border-top:1px solid #edf0f6}.wl-card .wl-members{margin:14px 0}.wl-card .wl-member{padding:5px 8px;background:#fff}.wl-event,.pd-task-event{position:relative;padding:0 0 15px}.wl-event p,.pd-task-event p{margin:5px 0;font-size:12px}.wl-event small,.pd-task-event small{font-size:10px;color:#677993}.wl-event-dot{position:absolute;left:-22px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--brand-primary)}.wl-form-section{grid-column:1/-1;background:#f7f9fe;padding:12px;border-radius:9px}.wl-form-section h3{font-size:13px;margin:0 0 4px}.wl-detail-head,.pd-acceptance-box{padding:16px;border:1px solid #e0e8f3;border-radius:12px;background:#f6f8fd;margin-bottom:17px}.wl-detail-head h3{margin:12px 0 4px}.pd-task-history{border-left:2px solid #dfe6f5;padding-left:16px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.page-heading h1{font-size:28px;margin:8px 0;letter-spacing:-1px}.page-heading p{color:#64738c;font-size:12px;line-height:1.7}.wl-detail-head p{font-size:12px}.wl-self-panel{margin-top:23px}
@media(max-width:650px){.wl-person-options{grid-template-columns:1fr}.page-heading{flex-direction:column}.wl-card-footer{align-items:flex-start}.wl-person-option{padding:9px!important}}
