/* MEMS V5 isolated sapphire import dialog */
.mems-import-dialog{width:min(100%,650px);max-height:min(88dvh,850px);display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#172b49;border:1px solid #d6e1f0;border-radius:19px;box-shadow:0 28px 90px #0005;font-size:14px}
.dark .mems-import-dialog{background:#111c2e;color:#f0f5ff;border-color:#304663}
.mems-import-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:18px 18px 13px;border-bottom:1px solid #d6e1f0}.dark .mems-import-head{border-color:#304663}
.mems-import-head h2{font-size:17px;font-weight:750;letter-spacing:-.02em;margin:0}.mems-import-head p{font-size:12px;color:#64748b;margin:3px 0 0}.dark .mems-import-head p{color:#a8b9d2}
.mems-import-close{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#edf3fb;flex:none}.dark .mems-import-close{background:#1b2d4b}.mems-import-close:disabled{opacity:.45}
.mems-import-content{padding:14px 18px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.mems-import-note{font-size:12px;line-height:1.55;color:#536581;margin:0 0 13px}.dark .mems-import-note{color:#b5c6df}
.mems-import-template{display:inline-flex;align-items:center;gap:9px;color:#295fda;font-size:13px;font-weight:700;text-decoration:none;margin-bottom:17px}.dark .mems-import-template{color:#9bc2ff}
.mems-import-label{display:block;font-weight:700;font-size:12px;margin-bottom:7px}.mems-import-file{display:block;width:100%;font-size:16px;background:#f8faff;color:#172b49;border:1px solid #d6e1f0;border-radius:10px;padding:8px}.dark .mems-import-file{background:#10203a;border-color:#304663;color:#f0f5ff}.mems-import-file::file-selector-button{padding:7px 12px;border:0;border-radius:8px;margin-right:12px;background:#e0ebff;color:#174ea6;font-size:13px;font-weight:700}
.mems-import-status{font-size:12px;color:#526985;line-height:1.5;margin:13px 0}.dark .mems-import-status{color:#b5c6df}.mems-import-status[data-error=true]{color:#be123c}.dark .mems-import-status[data-error=true]{color:#fda4af}
.mems-import-summary{font-weight:700;font-size:12px;margin-bottom:8px}.mems-import-grid{max-height:255px;overflow:auto;border:1px solid #d6e1f0;border-radius:10px}.dark .mems-import-grid{border-color:#304663}.mems-import-grid table{min-width:540px;width:100%;border-collapse:collapse;font-size:11px}.mems-import-grid th,.mems-import-grid td{padding:8px;text-align:left;border-bottom:1px solid #d6e1f0;vertical-align:top}.dark .mems-import-grid th,.dark .mems-import-grid td{border-color:#304663}.mems-import-grid th{font-weight:750;background:#f3f6fc}.dark .mems-import-grid th{background:#1b2d4b}.mems-import-bad{color:#be123c}.mems-import-good{color:#166534}.dark .mems-import-good{color:#86efac}
.mems-import-ack{display:flex;gap:10px;align-items:flex-start;font-size:12px;margin-top:15px;line-height:1.5}.mems-import-ack input{margin-top:3px;accent-color:#295fda;flex:none}
.mems-import-footer{display:flex;gap:8px;padding:13px 18px;border-top:1px solid #d6e1f0}.dark .mems-import-footer{border-color:#304663}.mems-import-footer button{min-height:42px;border-radius:10px;padding:8px 13px;font-weight:750;font-size:13px;background:#295fda;color:#fff;flex:1}.mems-import-footer button:disabled{background:#dae1eb;color:#65748a;cursor:not-allowed}.dark .mems-import-footer button:disabled{background:#29384f;color:#b8c1d0}.mems-import-footer #mems-import-stop{background:#9f1239;color:#fff}
.mems-import-results{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;font-size:12px;line-height:1.6;margin:0}
@media(max-width:480px){.mems-import-dialog{max-height:calc(100dvh - 110px);border-radius:16px}.mems-import-head{padding:14px}.mems-import-content{padding:12px 14px}.mems-import-footer{padding:12px 14px}}
