:root{--bar: #1f2430;--bar-ink: #f2f3f5;--muted: #9aa3b2;--stage: #e6e6e6;--accent: #6aa9ff;font:14px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}html,body{margin:0;height:100%;overflow:hidden}body{display:grid;grid-template-rows:auto 1fr}.topbar{display:flex;align-items:center;gap:1rem;padding:.35rem .9rem;background:var(--bar);color:var(--bar-ink)}.topbar h1{margin:0;font-size:1rem;font-weight:600}.muted{color:var(--muted);font-weight:400}.document{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.document .unsaved{color:var(--accent)}.actions button{font:inherit;color:var(--bar-ink);background:transparent;cursor:pointer;border:1px solid #3a4152;border-radius:4px;padding:.2rem .7rem}.actions button:hover:not(:disabled){background:#2b3242}.actions button:disabled{opacity:.5;cursor:default}.stage{position:relative;min-height:0;background:var(--stage)}#wordcraft_canvas{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none}.status{position:absolute;inset:0;display:flex;flex-direction:column;gap:.6rem;align-items:center;justify-content:center;color:#444;pointer-events:none;text-align:center;padding:2rem}.status:empty{display:none}.status progress{width:18rem}.status.failed{color:#8a1c1c;pointer-events:auto}.status p{margin:0;max-width:40rem;font-size:1rem}.status .details{max-width:40rem;color:#777;font-family:ui-monospace,monospace;font-size:.75rem;overflow-wrap:anywhere;user-select:text}
