.risk-create-dialog,.risk-picker-dialog{padding:0;width:min(980px,calc(100vw - 32px));max-width:980px;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:24px;background:var(--dashboard-panel,#fff);color:var(--ink)}
.risk-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:24px 28px;border-bottom:1px solid var(--line);background:var(--dashboard-panel,#fff);position:sticky;top:0;z-index:1}
.risk-modal-header h2{font-size:var(--text-heading);margin:0 0 8px}.risk-modal-header p{margin:0;line-height:1.6;color:var(--text-secondary);font-size:var(--text-small)}
.risk-modal-header>.icon{flex-shrink:0}.risk-modal-body{padding:24px 28px}.risk-modal-footer{padding:20px 28px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;bottom:0;background:var(--dashboard-panel,#fff)}
.risk-modal-footer>span,.risk-personal-note{font-size:var(--text-small);color:var(--text-secondary);line-height:1.7}.risk-personal-note{margin:-8px 0 24px}
.risk-picker-filters{display:grid;grid-template-columns:1.6fr 1fr 1.2fr;gap:12px;margin-bottom:18px}.risk-picker-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.risk-picker-actions>span{margin-left:auto;font-size:var(--text-small);color:var(--text-secondary)}
.risk-picker-table{table-layout:fixed;white-space:normal}.risk-picker-table th:first-child{width:64px}.risk-picker-table th:nth-child(2){width:47%}.risk-picker-table th:nth-child(3){width:24%}.risk-picker-table td{vertical-align:middle;overflow-wrap:anywhere;padding:16px 12px}.risk-picker-table strong{display:block;font-size:var(--text-small);font-weight:var(--font-medium)}.risk-picker-table small{display:block;font-size:var(--text-caption);color:var(--text-secondary);margin-top:5px}.risk-picker-table input{width:20px;height:20px;min-height:20px}
@media(max-width:650px){.risk-create-dialog,.risk-picker-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.risk-modal-header,.risk-modal-body{padding:20px}.risk-modal-header h2{font-size:var(--text-subheading)}.risk-create-dialog .form-grid{grid-template-columns:1fr}.risk-modal-footer{padding:18px 20px;align-items:stretch;flex-direction:column}.risk-modal-footer .row>button{flex:1}.risk-picker-filters{grid-template-columns:1fr}.risk-picker-table th:nth-child(3),.risk-picker-table td:nth-child(3){display:none}.risk-picker-table th:first-child{width:48px}.risk-picker-table th:nth-child(2){width:65%}.risk-picker-table td{padding:12px 8px}.risk-picker-actions{gap:8px}.risk-picker-actions>span{width:100%;margin:0}}
.risk-create-dialog .field,.risk-picker-filters>*{min-width:0}.risk-create-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.risk-create-dialog .form-grid{grid-template-columns:minmax(0,1fr)}}

@media(max-width:650px){.risk-picker-dialog .note{display:none}}

.risk-picker-table th{padding:16px 12px}@media(max-width:650px){.risk-picker-table th,.risk-picker-table td{padding:12px 4px}.risk-picker-table th:first-child{width:32px}.risk-picker-table th:nth-child(2){width:auto}.risk-picker-table th:nth-child(4){width:90px}.risk-picker-table .badge{max-width:100%;white-space:normal}}
