/* Compact library, using the existing workspace palette and theme. */
.component-library-tools{display:flex;align-items:end;flex-wrap:wrap;gap:10px;font-family:'Inter',sans-serif}
.component-library-tools label{display:flex;flex-direction:column;gap:4px;flex:0 1 280px;min-width:0;max-width:100%;margin:0;color:var(--text);font-size:12px;font-weight:600;letter-spacing:0}
.component-library-tools label:last-child{flex:0 1 160px}
.component-library-tools :is(input,select){box-sizing:border-box;width:100%;height:40px;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--text);font:14px/1.5 'Inter',sans-serif}
#workspace .palette .block-card{display:flex;align-items:center;min-width:0;height:64px;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:var(--panel);overflow:hidden}
#workspace .palette .block-card>[data-type]{flex:1;min-width:0;width:auto;height:62px;min-height:62px;max-height:62px;border:0;border-radius:0;padding:8px;gap:6px;box-shadow:none;background:transparent}
#workspace .palette .block-card>.block-info{display:grid;place-items:center;flex:0 0 40px;width:40px;min-width:40px;min-height:40px;height:40px;max-height:40px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font:20px/1 'Inter',sans-serif}
#workspace .palette .block-info:hover{color:var(--mint);background:var(--surface)}
#workspace .palette [data-type]:disabled{opacity:.5;cursor:not-allowed}
#componentEmpty{margin:0;font:14px/1.5 'Inter',sans-serif;color:var(--muted)}
.component-info-dialog{box-sizing:border-box;width:min(520px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font:15px/1.6 'Inter',sans-serif}
.component-info-dialog::backdrop{background:#0008}
.component-info-dialog h2{font:700 24px/1.3 'Inter',sans-serif;margin:8px 0 12px;padding-right:28px;color:var(--text)}
.component-info-dialog p{margin:0 0 20px;color:var(--text);font:16px/1.6 'Inter',sans-serif}
.component-info-dialog dl{margin:0}.component-info-dialog dt{margin-top:16px;font-weight:600;color:var(--mint)}
.component-info-dialog dd{margin:4px 0 0;color:var(--text);font-size:15px}
.component-info-dialog #componentInfoClose{position:absolute;top:12px;right:12px;min-width:40px;min-height:40px;font-size:24px}
:is(.component-library-tools,.component-info-dialog) :is(button,input,select):focus-visible,.block-card button:focus-visible{outline:2px solid var(--mint);outline-offset:-3px}
.component-library-tools [hidden],#workspace .palette [hidden],#componentEmpty[hidden]{display:none!important}
@media(max-width:650px){.component-library-tools :is(input,select){height:44px}.component-library-tools input{font-size:16px}#workspace .palette .block-card>.block-info{flex-basis:44px;width:44px;min-width:44px;min-height:44px;height:44px;max-height:44px}}

.interview-editor.interview-expanded #workspace .palette .block-card{flex:0 0 180px}
