.stm-imported-tools{margin-top:42px;color:var(--text,#eef3fc)}
.stm-imported-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.stm-imported-heading h2{font-size:clamp(1.45rem,3vw,1.9rem);margin:8px 0 10px}
.stm-imported-heading p{max-width:760px;color:var(--muted,#aebbd0);line-height:1.65;margin:0}
.stm-imported-count{flex:0 0 auto;border:1px solid #344158;background:#111b2e;color:#c7d3e7;border-radius:99px;padding:9px 13px;font-size:.8rem}
.stm-imported-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.stm-imported-card{min-width:0;display:flex;align-items:flex-start;flex-direction:column;padding:24px;border:1px solid #29364c;border-radius:20px;background:linear-gradient(145deg,#131e31,#0e1727)}
.stm-imported-symbol{display:grid;place-items:center;width:48px;height:48px;border:1px solid #42526b;border-radius:14px;font-family:Georgia,serif;font-size:1.8rem;color:#bcd5f3;background:#1a2940}
.stm-imported-card h3{font-size:1.1rem;line-height:1.4;margin:17px 0 9px}
.stm-imported-card>.lab-tool-motion+h3{margin-top:0}
.stm-imported-card p{margin:0 0 16px;color:var(--muted,#aebbd0);line-height:1.65;font-size:.92rem}
.stm-imported-scope{margin-top:auto;font-size:.78rem;color:#bad0e4;line-height:1.6}
.stm-imported-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px;width:100%}
.stm-imported-card-actions button{min-height:44px;border:1px solid #53627c;border-radius:10px;background:#213047;color:#f2f5fb;padding:10px 15px;font:inherit;font-size:.85rem;cursor:pointer}
.stm-imported-card-actions a,.stm-imported-toolbar a{display:inline-flex;align-items:center;min-height:44px;color:#b8d5ee;font-size:.82rem;text-decoration:underline;text-underline-offset:4px}
.stm-imported-card-actions button[aria-pressed="true"]{border-color:#a8d0e6;background:#2d435a}
.stm-imported-tools :is(button,a):focus-visible{outline:3px solid #f4d78c;outline-offset:4px}
.stm-imported-tools .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.stm-imported-viewer{margin-top:28px;border:1px solid #36465f;border-radius:18px;background:#09111f;overflow:clip;scroll-margin-top:100px}
.stm-imported-viewer[hidden],.stm-imported-frame[hidden]{display:none!important}
.stm-imported-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#152035;border-bottom:1px solid #344159}
.stm-imported-toolbar h3{margin:0 0 5px;font-size:1.05rem}.stm-imported-toolbar p{margin:0;color:#aebdd2;font-size:.8rem;line-height:1.5}
.stm-imported-toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;flex-shrink:0}
.stm-imported-toolbar button,.stm-imported-dialog-top button{min-height:44px;padding:9px 14px;border:1px solid #5a6a83;border-radius:9px;background:#24344c;color:#fff;font:inherit;font-size:.8rem;cursor:pointer}
.stm-imported-status{padding:0 20px;color:#b6c8db;font-size:.86rem}.stm-imported-status:empty{display:none}
.stm-imported-frame{display:block;border:0;background:#07101c;width:100%;height:clamp(680px,82svh,940px);min-height:680px}
.stm-imported-dialog{position:static;inset:auto;display:block;margin:0;width:100%;max-width:none;height:auto;max-height:none;padding:0;border:0;background:#0b1424;color:#eef4ff;overflow:hidden}
.stm-imported-dialog:not([open]){display:none}.stm-imported-dialog-top{display:none}
.stm-imported-dialog.is-expanded{position:fixed;inset:12px;margin:auto;width:calc(100% - 24px);max-width:1800px;height:calc(100svh - 24px);max-height:calc(100svh - 24px);border:1px solid #52657f;border-radius:16px}
.stm-imported-dialog::backdrop{background:#01050de8}.stm-imported-dialog.is-expanded .stm-imported-dialog-top{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 18px;border-bottom:1px solid #344159;background:#17243b;min-height:66px}
.stm-imported-dialog-top p{font-size:.82rem;color:#b9c8dc;margin:0}.stm-imported-dialog.is-expanded [data-imported-frames]{height:calc(100% - 66px)}
.stm-imported-dialog.is-expanded .stm-imported-frame{height:100%;min-height:0}
@media(min-width:1500px){.stm-imported-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.stm-imported-heading{flex-direction:column;gap:14px}.stm-imported-grid{grid-template-columns:1fr}.stm-imported-card{padding:20px}.stm-imported-toolbar{align-items:flex-start;flex-direction:column;padding:16px}.stm-imported-toolbar-actions{width:100%}.stm-imported-frame{min-height:640px;height:78svh}.stm-imported-dialog.is-expanded{inset:5px;width:calc(100% - 10px);height:calc(100svh - 10px);max-height:calc(100svh - 10px);border-radius:10px}.stm-imported-dialog-top{padding:8px 10px;min-height:60px}.stm-imported-dialog-top p{display:none}.stm-imported-dialog.is-expanded [data-imported-frames]{height:calc(100% - 60px)}.stm-imported-dialog-top button{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.stm-imported-tools *{scroll-behavior:auto!important;transition:none!important}}
