.no-graph :is(.sidebar, .inspector, .canvas-header, .canvas-bottom) { display: none; }
.workspace-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: radial-gradient(ellipse at center, var(--graph-glow), var(--graph-bg) 75%); }
.workspace-empty h1 { font-size: clamp(25px, 4vw, 40px); letter-spacing: -1px; margin: 14px 0; }
.workspace-empty > p { max-width: 450px; line-height: 1.9; color: var(--text-soft); }
.workspace-empty > button { padding: 12px 22px; margin: 15px 0; }
#workspace-status { font-size: 11px; }
#open-upload { color: var(--accent); background: var(--surface-soft); }
.upload-dialog { width: min(510px, calc(100vw - 24px)); max-width: 510px; max-height: calc(100dvh - 24px); overflow: auto; background: var(--surface); color: var(--text); }
.upload-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.upload-heading h2 { margin: 8px 0; }
.upload-heading .eyebrow { font-size: 9px; }
.upload-dropzone { border: 1px dashed var(--muted); border-radius: 12px; padding: 26px 18px; display: flex; align-items: center; flex-direction: column; gap: 12px; background: var(--surface-soft); margin-top: 18px; }
.upload-dropzone > .icon { width: 32px; height: 32px; color: var(--accent); }
.upload-dropzone span { font-size: 11px; color: var(--text-soft); }
.upload-dropzone strong { font-size: 13px; }
.upload-dropzone.drag-over { border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.upload-selected { font-size: 12px; overflow-wrap: anywhere; color: var(--text-soft); }
.upload-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.upload-error { color: #a6455e; background: #fff0f4; padding: 10px 12px; border-radius: 7px; font-size: 12px; line-height: 1.8; }
:root[data-theme=dark] .upload-error { background: #311d2c; color: #f2aabd; }
.upload-privacy { font-size: 10px; margin: 18px 0 0; }
.upload-progress { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-soft); }
.upload-spinner { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: upload-spin .8s linear infinite; }
.chat-key-settings { margin-bottom: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); color: var(--text); }
.chat-key-settings summary { font-size: 12px; font-weight: 600; }
#chat-key-source { float: right; margin-left: 8px; color: var(--text-soft); font-size: 10px; font-weight: 400; }
.chat-key-settings label { display: block; margin: 14px 0 7px; font-size: 10px; color: var(--text-soft); }
#chat-api-key { display: block; width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.chat-key-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-key-actions button { font-size: 11px; }
#chat-key-note, #chat-key-feedback { font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; margin: 10px 0 0; color: var(--text-soft); }
#chat-key-feedback:empty { display: none; }
@keyframes upload-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .upload-label { display: none; } #open-upload { padding: 7px; } .upload-dialog { padding: 20px; } .workspace-empty { padding: 22px; } .workspace-empty .type-badge { font-size: 8px; } }
