.sd-dialog {
padding: 0;
border: none;
border-radius: 16px;
box-shadow: 0 22px 60px rgb(0 0 0 / .25);
max-width: 520px;
width: 94vw;
margin: auto;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.sd-dialog[open] {
display: block;
}

.sd-dialog:not([open]) {
display: none;
}

.sd-dialog::backdrop {
background: rgb(0 0 0 / .35);
backdrop-filter: blur(2px);
}

.sd-dialog-card {
display: grid;
gap: 14px;
padding: 18px;
background: #fff;
border-radius: 16px;
min-width: 400px;
}

.sd-dialog-title {
margin: 0 0 4px 0;
font-size: 1.12rem;
font-weight: 700;
text-align: center;
}

.sd-targets {
display: grid;
gap: 8px;
margin-top: 6px;
}

.btn {
appearance: none;
border: 1px solid #d8dbe6;
background: #f7f8fb;
padding: 10px 12px;
border-radius: 12px;
font-size: .95rem;
cursor: pointer;
transition: background-color 0.2s ease;
}

.btn:hover:not([disabled]) {
background: #eef1f8;
}

.btn[disabled] {
opacity: .5;
cursor: not-allowed;
background: #f5f5f5;
}

.sd-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
margin-top: 8px;
}

.sd-list-body {
display: grid;
gap: 6px;
}

.sd-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 8px;
align-items: center;
border: 1px solid #eceff5;
border-radius: 12px;
padding: 8px 10px;
cursor: pointer;
transition: all 0.2s ease;
}

.sd-row:hover {
background: #f8f9fa;
border-color: #d1d5db;
}

.sd-name {
font-weight: 600;
margin: 0 0 4px 0;
}

.sd-meta {
font-size: .85rem;
color: #666;
margin: 0;
}

#import-files-list {
border: 1px solid #eee;
border-radius: 10px;
max-height: 60vh;
overflow-y: auto;
padding: 8px;
background: #fafafa;
}

#import-files-list .row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px;
border-bottom: 1px solid #eee;
cursor: pointer;
background: #fff;
border-radius: 8px;
margin-bottom: 4px;
}

#import-files-list .row:last-child {
border-bottom: none;
margin-bottom: 0;
}

#import-files-list .row:hover {
background: #f0f9ff;
border-color: #3b82f6;
}

#import-files-list .row .meta strong {
display: block;
font-weight: 600;
color: #111;
}

#import-files-list .row .meta small {
color: #666;
font-size: .85rem;
}

#import-files-list .row .actions {
flex-shrink: 0;
}

#sysmsg.show {
opacity: 1 !important;
transform: translateY(0) !important;
transition: opacity .2s ease, transform .2s ease;
}

#import-status {
text-align: center;
font-style: italic;
padding: 8px 12px;
background: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}

.loading {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
font-style: italic;
color: #666;
}

.empty-state {
text-align: center;
padding: 20px;
color: #666;
font-style: italic;
}

.empty-state strong {
color: #333;
}