/* Read-only details within the existing project editor; no other dialogs. */
#modal.project-detail-modal[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden}
#modal.project-detail-modal>form{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);min-height:0;width:100%}
#modal.project-detail-modal .modal-head{flex:0 0 auto;align-items:flex-start;gap:12px}
#modal.project-detail-modal .modal-head h2{flex:1;min-width:0;margin:0;overflow-wrap:anywhere;font-size:18px;line-height:1.4}
#modal.project-detail-modal .modal-head [aria-label="Закрыть"]{flex:0 0 44px;min-width:44px;min-height:44px;padding:8px}
#modal.project-detail-modal .modal-body{flex:1 1 auto;min-height:0;min-width:0;max-height:none;overflow-y:auto}
#modal.project-detail-modal .modal-foot{flex:0 0 auto;flex-wrap:wrap;gap:12px}
.project-insights{min-width:0;max-width:100%}
.project-insights :is(h3,p,summary){overflow-wrap:anywhere}
.project-insights h3{margin:16px 0 12px}
.project-insights summary{min-height:44px;line-height:1.5;cursor:pointer}
.project-insights .toolbar{margin:12px 0;gap:12px;flex-wrap:wrap}
.project-insights [data-project-insights-filter]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-insights [data-project-insights-filter] label{display:grid;min-width:0;gap:6px}
.project-insights [data-project-insights-filter] input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.project-insights [data-insight-load]{grid-column:1/-1;min-height:44px;white-space:normal}
.project-insights .table-wrap{max-width:100%;min-width:0}
.project-insights table{min-width:max-content}
.project-insights td small{display:block}
.project-insights :is(button,input,a,summary,[tabindex]):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
@media(max-width:420px){#modal.project-detail-modal .modal-head,#modal.project-detail-modal .modal-body,#modal.project-detail-modal .modal-foot{padding:16px}#modal.project-detail-modal .modal-foot button{flex:1 1 100%;white-space:normal;min-height:44px}.project-insights [data-project-insights-filter]{grid-template-columns:minmax(0,1fr)}}
