/* Shared artifact-tab invitation. Runtime palette remains in foundation.css. */
.workspace-empty,
#fw-welcome.workspace-empty {
  display: flex; flex: 1; width: 100%; min-height: 100%; overflow: auto;
  padding: 32px 24px; align-items: safe center; justify-content: center;
  background-color: var(--bg);
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px), radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%);
  background-size: 24px 24px, 24px 24px, auto;
  text-align: center;
}
.workspace-empty[hidden], #fw-welcome.workspace-empty[hidden] { display: none; }
.workspace-empty-copy { width: 100%; max-width: 420px; margin: auto; }
.workspace-empty-icon { position: relative; width: 72px; height: 72px; margin: 0 auto 24px; display: grid; place-items: center; color: var(--accent); }
.workspace-empty-icon::before, .workspace-empty-icon::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4; background: linear-gradient(currentColor, currentColor) left top / 8px 1px no-repeat, linear-gradient(currentColor, currentColor) left top / 1px 8px no-repeat, linear-gradient(currentColor, currentColor) right bottom / 8px 1px no-repeat, linear-gradient(currentColor, currentColor) right bottom / 1px 8px no-repeat; }
.workspace-empty-icon::after { transform: rotate(90deg); }
.workspace-empty-icon svg { width: 42px; height: 42px; display: block; }
.workspace-empty-copy h3, .workspace-empty-copy h2 { margin: 0; color: var(--text); font: 500 clamp(18px, 3cqw, 22px)/1.4 system-ui, sans-serif; letter-spacing: -.02em; text-transform: none; }
.workspace-empty-copy p { margin: 14px auto 26px; max-width: 360px; color: var(--text); opacity: .8; font-size: 12px; line-height: 1.8; text-wrap: pretty; }
.workspace-empty-action.btn, #fw-start-building.workspace-empty-action { min-height: 40px; min-width: 190px; max-width: 100%; justify-content: center; padding: 10px 18px; gap: 18px; border-radius: 6px; font-size: 11px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.workspace-empty-action.btn:hover { filter: brightness(1.12); }
.workspace-empty-action.btn:active { filter: brightness(.95); }
.workspace-empty-action.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#cad-view[data-empty="true"] > .viewer-context-toolbar,
#assembly-view[data-empty="true"] > .viewer-context-toolbar,
#cad-view[data-empty="true"] > iframe,
#assembly-view[data-empty="true"] > iframe,
#bom-view[data-empty="true"] .bom-header,
#bom-view[data-empty="true"] .bom-controls,
#bom-view[data-empty="true"] .bom-summary,
#pcb-view[data-empty="true"] .pcb-header { display: none; }
#bom-view[data-empty="true"] .bom-shell, #pcb-view[data-empty="true"] .pcb-shell { padding: 0; gap: 0; }
#pcb-view[data-empty="true"] #pcb-content { flex: 1; display: flex; }
#overview-view > .workspace-empty { box-sizing: border-box; }
@media (max-width: 600px) { .workspace-empty, #fw-welcome.workspace-empty { padding: 28px 18px; } }
@media (prefers-reduced-motion: reduce) { #fw-welcome[data-phase="generating"] .workspace-empty-icon { animation: none; } }

#files-view:has(#code-viewer > #right-empty:only-child) > .file-tabs { display: none; }
