.deep-learning-dialog{width:min(1100px,calc(100vw - 28px));max-height:min(88vh,900px);padding:0;border:1px solid #c8d4e1;border-radius:18px;background:var(--panel,#fff);color:var(--ink,#24313a);box-shadow:0 22px 70px #0b20394d;overflow:hidden}
.deep-learning-dialog::backdrop{background:#10243cb3;backdrop-filter:blur(3px)}
.deep-learning-dialog [hidden]{display:none!important}
.deep-learning-dialog>header{display:flex;justify-content:space-between;gap:16px;padding:20px 24px 16px;border-bottom:1px solid var(--line,#d7dde2);background:linear-gradient(110deg,#eaf2ff,#f7f9ff 65%,#f5efff)}
.deep-learning-dialog h2,.deep-learning-dialog h3,.deep-learning-dialog p{margin:0}
.deep-learning-dialog>header h2{font-size:24px;letter-spacing:.01em;text-transform:none;color:#1a3150}
.deep-learning-dialog>header p:last-child{font-size:13px;color:#53677e;margin-top:5px}
.deep-learning-dialog .dl-eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#486a9a;margin-bottom:3px}
#close-deep-learning{align-self:start;width:38px;height:38px;padding:0;font-size:25px;line-height:1;border-radius:50%;background:#fff;border-color:#cbd5e1}
.dl-content{padding:18px 24px 25px;max-height:calc(88vh - 118px);overflow:auto}
.dl-3d-designer{padding:17px;border:1px solid #b8cbe2;border-radius:14px;background:linear-gradient(135deg,#f5f9ff,#fff 62%);box-shadow:0 8px 26px #224b7720}
.dl-3d-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:15px}.deep-learning-dialog .dl-3d-heading h3{font-size:19px;margin:0 0 5px;color:#1a3150}.dl-3d-heading p:last-child{font-size:12px;color:#52677d}.dl-3d-badge{flex:none;padding:6px 10px;border-radius:20px;background:#dceafa;color:#255a91;font-size:11px;font-weight:800}
.dl-3d-layout{display:grid;grid-template-columns:minmax(250px,1fr) minmax(310px,1.15fr);gap:17px}.dl-3d-preview-wrap{min-width:0}.dl-3d-preview{height:275px;border:1px solid #d6e2f0;border-radius:11px;background:radial-gradient(circle at 50% 50%,#fff,#edf4fc);overflow:hidden}.dl-3d-preview svg{display:block;width:100%;height:100%}.dl-3d-view-label{text-align:center;font-size:11px;color:#516985;margin-top:7px!important}
.dl-3d-controls{display:grid;gap:9px;align-content:start}.dl-3d-controls label{display:grid;gap:4px;font-size:11px;font-weight:700;color:#304b68}.dl-3d-controls>label{grid-template-columns:75px 45px 1fr;align-items:center}.dl-3d-controls>label input{width:100%;accent-color:#487fc0}.dl-3d-controls output{text-align:right;color:#225d9d}.dl-3d-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.dl-3d-numbers input,.dl-3d-text input{width:100%;height:34px;padding:4px 7px;border:1px solid #c8d6e5;border-radius:6px;background:#fff;color:#1e3044}.dl-3d-numbers input[type=color]{padding:3px}.dl-3d-text{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dl-3d-error{min-height:15px;font-size:11px;color:#a12736}.dl-3d-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.dl-3d-actions button{padding:9px 14px;border:1px solid #a9c3e0;border-radius:8px;background:#fff;color:#245588;font-size:12px;font-weight:800}.dl-3d-actions button:first-child{background:#2866a9;border-color:#2866a9;color:#fff}.dl-3d-actions button:hover{filter:brightness(.95)}.dl-3d-actions button:disabled{opacity:.45;cursor:not-allowed}
.dl-3d-numbers select{width:100%;height:34px;padding:4px 7px;border:1px solid #c8d6e5;border-radius:6px;background:#fff;color:#1e3044}.dl-3d-palette{display:flex;align-items:center;gap:9px;color:#304b68;font-size:11px;font-weight:700}.dl-3d-palette button{width:26px;height:26px;border:1px solid #71879a;border-radius:6px;background:var(--swatch);cursor:pointer}.dl-3d-palette button:hover,.dl-3d-palette button:focus-visible{outline:2px solid #274c71;outline-offset:2px}
.dl-search{display:grid;gap:5px;max-width:360px;font-size:12px;font-weight:700;color:var(--muted,#607284)}
.dl-search input{height:38px;padding:8px 11px;border:1px solid #aebed0;border-radius:8px;background:var(--panel,#fff);color:var(--ink,#24313a)}
.deep-learning-dialog h3{font-size:14px;text-transform:none;letter-spacing:0;margin:20px 0 10px;color:var(--ink,#24313a)}
.dl-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.dl-template-card{display:flex;flex-direction:column;gap:9px;padding:11px;text-align:left;border:1px solid #ccd7e4;border-radius:12px;background:var(--panel,#fff);min-width:0;transition:border-color .15s,box-shadow .15s,transform .15s}
.dl-template-card:hover,.dl-template-card:focus-visible{border-color:#5986c0;box-shadow:0 5px 20px #3064a526;transform:translateY(-1px)}
.dl-template-card .dl-thumb{display:block;aspect-ratio:16/9;width:100%;border:1px solid #e0e5ec;border-radius:7px;background:#fff;overflow:hidden;line-height:0}
.dl-thumb svg{display:block;width:100%;height:100%}
.dl-template-card strong{font-size:14px;color:var(--ink,#24313a)}
.dl-template-card small{font-size:11px;line-height:1.4;color:var(--muted,#637486)}
.dl-template-card .dl-action{display:inline-block;align-self:flex-start;padding:5px 10px;border-radius:6px;background:#e8f0fd;color:#235899;font-size:11px;font-weight:750}
.dl-component-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.dl-component-card{display:flex;align-items:center;gap:11px;min-height:64px;padding:9px 11px;text-align:left;border:1px solid #d5dee8;border-radius:10px;background:var(--panel,#fff)}
.dl-component-card:hover,.dl-component-card:focus-visible{border-color:#5c8ec9;background:#f2f7ff}
.dl-component-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:9px;background:#e9f1ff;color:#2863a5;font-size:18px;font-weight:800}
.dl-component-preview{display:block;flex:none;width:92px;height:68px;padding:4px;border-radius:6px;background:#fff;border:1px solid #e1e7ec}.dl-component-preview svg{display:block;width:100%;height:100%}.dl-component-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.dl-component-card span:last-child{display:grid;gap:2px;min-width:0}
.dl-component-card strong{font-size:12.5px;color:var(--ink,#24313a)}
.dl-component-card small{font-size:10.5px;line-height:1.3;color:var(--muted,#637486)}
.dl-note{font-size:11px;line-height:1.5;color:var(--muted,#637486);margin-top:18px!important}
.dl-label-mode{display:flex;align-items:center;gap:12px;margin:20px 0;font-size:15px;font-weight:600}.dl-label-mode select{padding:8px 18px;border:1px solid #b9b1be;border-radius:7px;background:var(--panel,#fff);color:var(--ink,#302d35)}
.dl-view-presets{display:flex;gap:6px;flex-wrap:wrap}.dl-view-presets button{background:#f4eff6;border:1px solid #c6bdcc;color:#403a47;border-radius:6px;padding:6px 9px;font-size:12px}.dl-3d-controls>.dl-projection{grid-template-columns:65px 1fr}.dl-projection select{width:100%;padding:6px;border:1px solid #c6bdcc;border-radius:6px;background:#fff;color:#403a47}.dl-component-card:hover,.dl-component-card:focus-visible{background:var(--panel,#fff)}
@media(max-width:700px){.dl-3d-layout{grid-template-columns:1fr}.dl-3d-preview{height:220px}}
@media(max-width:650px){.deep-learning-dialog{width:calc(100vw - 12px);max-height:94vh;border-radius:12px}.deep-learning-dialog>header{padding:15px}.deep-learning-dialog>header h2{font-size:19px}.dl-content{padding:13px 15px;max-height:calc(94vh - 100px)}.dl-template-grid{grid-template-columns:1fr}.dl-component-grid{grid-template-columns:1fr 1fr}.dl-component-card{padding:7px;gap:6px}.dl-component-icon{width:30px;height:30px}}
@media(max-width:400px){.dl-component-grid{grid-template-columns:1fr}}
