 
.cad-import-dialog{border:0;padding:0;background:transparent;color:var(--tt-ew-ink,#20283d);width:min(1040px,calc(100vw - 34px));max-width:none;max-height:calc(100dvh - 34px)}
.cad-import-dialog::backdrop{background:rgba(12,18,38,.52);backdrop-filter:blur(3px)}
.cad-import-card{background:#fff;border:1px solid var(--tt-ew-line,#e4e8f1);border-radius:var(--tt-ew-radius,18px);box-shadow:var(--tt-ew-shadow,0 24px 70px rgba(13,24,55,.28));overflow:hidden;display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.cad-import-head{display:flex;align-items:center;gap:12px;padding:var(--tt-ew-head-pad,15px 17px);border-bottom:1px solid #edf0f5;background:linear-gradient(180deg,#fff,#fbfcff);cursor:move;touch-action:none;user-select:none}
.cad-import-head-icon{width:38px;height:38px;border-radius:11px;background:var(--tt-ew-icon-bg,#eef2ff);color:var(--tt-ew-icon,#3149a5);display:grid;place-items:center;flex:0 0 auto}
.cad-import-head-copy{min-width:0;flex:1}.cad-import-head-copy h2{margin:0;color:var(--tt-ew-title,#1e2a78);font-size:1.03rem;line-height:1.2}.cad-import-head-copy p{margin:2px 0 0;color:var(--tt-ew-muted,#747f92);font-size:.76rem;line-height:1.35}
.cad-import-close{width:36px;height:36px;border:0;border-radius:10px;background:#f2f4f8;color:#657086;cursor:pointer;display:grid;place-items:center}.cad-import-close:hover{background:#e8ebf2;color:#26366f}
.cad-import-body{background:var(--tt-ew-soft,#f6f8fc);padding:16px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.cad-import-body::-webkit-scrollbar{width:10px}.cad-import-body::-webkit-scrollbar-thumb{background:#bac3d3;border:2px solid var(--tt-ew-soft,#f6f8fc);border-radius:999px}
.cad-import-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:14px}.cad-import-panel{background:#fff;border:1px solid #e1e6ef;border-radius:14px;padding:14px}.cad-import-panel h3{margin:0 0 5px;color:#263573;font-size:.92rem}.cad-import-panel>p{margin:0 0 12px;color:#758097;font-size:.76rem;line-height:1.45}
.cad-import-drop{border:1.5px dashed #b9c5df;border-radius:13px;background:#fafcff;padding:18px;text-align:center;display:grid;gap:8px;place-items:center}.cad-import-drop i{font-size:1.35rem;color:#4258b5}.cad-import-drop strong{color:#243476}.cad-import-drop small{color:#7a8497}.cad-import-file-btn{border:1px solid #cbd5ea;background:#fff;color:#263777;border-radius:9px;padding:9px 13px;font-weight:800;cursor:pointer}.cad-import-file-btn:hover{background:#f1f4ff}
.cad-import-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.cad-import-field{display:grid;gap:5px}.cad-import-field span{font-size:.69rem;font-weight:800;color:#59657b}.cad-import-field select,.cad-import-field input{width:100%;border:1px solid #d5dcea;border-radius:9px;background:#fff;padding:9px 10px;color:#28334b;box-sizing:border-box}.cad-import-field.is-full{grid-column:1/-1}
.cad-import-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.cad-import-stat{border:1px solid #e0e6f0;border-radius:10px;background:#fafbfe;padding:10px}.cad-import-stat span{display:block;color:#7a8496;font-size:.65rem}.cad-import-stat strong{display:block;color:#263574;font-size:.91rem;margin-top:2px}
.cad-import-warning{display:flex;gap:8px;align-items:flex-start;margin-top:10px;padding:9px 10px;border-radius:10px;background:#fff7e8;border:1px solid #f3dfb5;color:#7b5a14;font-size:.72rem;line-height:1.4}.cad-import-warning.is-info{background:#eef5ff;border-color:#d3e1fb;color:#385382}.cad-import-warning.is-error{background:#fff0f0;border-color:#f2caca;color:#8a3030}
.cad-layer-list{display:grid;gap:8px;max-height:410px;overflow:auto;padding-right:2px}.cad-layer-row{display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(190px,1.2fr);gap:8px;align-items:center;border:1px solid #e1e6ef;background:#fff;border-radius:10px;padding:9px}.cad-layer-name{min-width:0}.cad-layer-name strong{display:block;color:#2c3859;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cad-layer-name small{display:block;color:#8992a3;font-size:.64rem;margin-top:2px}.cad-layer-row select{border:1px solid #d6ddeb;border-radius:8px;background:#fff;padding:7px 8px;color:#303b54;min-width:0}.cad-layer-row input[type=checkbox]{width:17px;height:17px;accent-color:#263b95}
.cad-empty{border:1px dashed #cbd4e5;border-radius:12px;background:#fbfcff;min-height:210px;display:grid;place-items:center;text-align:center;padding:20px;color:#7a8497}.cad-empty i{font-size:1.5rem;color:#98a6c4;display:block;margin-bottom:8px}.cad-empty strong{display:block;color:#39466c;margin-bottom:5px}
.cad-import-foot{padding:var(--tt-ew-footer-pad,11px 14px);background:#fff;border-top:1px solid var(--tt-ew-line,#e4e8f1);display:flex;gap:9px;justify-content:flex-end;align-items:center}.cad-import-foot button{border-radius:10px;padding:9px 14px;font-weight:800;cursor:pointer}.cad-import-secondary{background:#f2f4f8;border:1px solid #e0e5ee;color:#59657a}.cad-import-primary{background:#24368d;border:1px solid #24368d;color:#fff}.cad-import-primary:disabled{opacity:.45;cursor:not-allowed}
.cad-import-choice .floor-choice-icon{color:#3248a5}.cad-import-choice[data-service-state="beta"] .floor-choice-icon{color:#7653b5}
@media(max-width:800px){.cad-import-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.cad-import-card{max-height:calc(100dvh - 16px)}.cad-import-grid{grid-template-columns:1fr}.cad-import-form-grid{grid-template-columns:1fr}.cad-layer-row{grid-template-columns:auto minmax(0,1fr)}.cad-layer-row select{grid-column:2}.cad-import-summary{grid-template-columns:1fr 1fr}.cad-import-head{cursor:default}.cad-import-foot{flex-wrap:wrap}.cad-import-foot button{flex:1 1 auto}}
