:root{--shell-bg: #ffffff;--shell-fg: #111827;--shell-muted: #6b7280;--shell-line: #e5e7eb;--shell-accent: #2563eb;--shell-danger: #dc2626;--shell-surface: #f9fafb;color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--shell-bg: #0b0f19;--shell-fg: #e5e7eb;--shell-muted: #9ca3af;--shell-line: #1f2937;--shell-surface: #111827}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--shell-bg);color:var(--shell-fg);font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.shell{display:flex;flex-direction:column;height:100%}.shell-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--shell-line);background:var(--shell-surface);flex:0 0 auto}.shell-title{font-size:15px;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-header-side{display:flex;align-items:center;gap:12px;flex:0 0 auto}.shell-user{color:var(--shell-muted);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-link{background:none;border:0;padding:0;color:var(--shell-accent);font:inherit;cursor:pointer}.shell-banner{padding:8px 16px;background:#fef3c7;color:#78350f;border-bottom:1px solid #fde68a;flex:0 0 auto}.shell-diagnostic{padding:8px 16px;background:#eff6ff;color:#1e3a8a;border-bottom:1px solid #bfdbfe;flex:0 0 auto;font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;max-height:30vh;overflow-y:auto}.shell-diagnostic strong{margin-right:4px}[hidden]{display:none!important}.shell-navigation{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:10px;padding:0 12px;font-size:12px;line-height:1.4;color:var(--shell-muted);border-left:1px solid var(--shell-line);border-right:1px solid var(--shell-line)}.shell-navigation[data-variant=error]{color:var(--shell-danger)}.shell-navigation-text{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shell-navigation-text{flex:1 1 220px}.shell-navigation-url{flex:1 1 200px;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;padding:3px 8px;border-radius:4px;border:1px solid var(--shell-line);background:var(--shell-bg);color:var(--shell-fg)}.shell-main,.shell-content{flex:1 1 auto;min-height:0;display:flex}.afl-app-frame,.afl-viewer-frame{flex:1 1 auto;width:100%;height:100%;border:0;display:block;background:var(--shell-bg)}.shell-center{margin:auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 24px;text-align:center;max-width:420px}.shell-center p{margin:0;color:var(--shell-muted)}.shell-error h2{margin:0;font-size:18px}.shell-spinner{width:20px;height:20px;border:2px solid var(--shell-muted);border-right-color:transparent;border-radius:50%;animation:shell-spin .7s linear infinite}@keyframes shell-spin{to{transform:rotate(360deg)}}.shell-button{padding:8px 16px;border:0;border-radius:6px;background:var(--shell-accent);color:#fff;font:inherit;font-weight:500;cursor:pointer}.shell-button-ghost{background:transparent;color:var(--shell-fg);border:1px solid var(--shell-line)}.shell-button-danger{background:var(--shell-danger)}.shell-button-sm{padding:6px 12px;font-size:13px}.shell-toasts{position:fixed;right:16px;bottom:16px;display:flex;flex-direction:column;gap:8px;z-index:20;pointer-events:none}.shell-toast{max-width:320px;padding:10px 14px;border-radius:8px;background:#111827;color:#f9fafb;box-shadow:0 8px 24px #00000040;overflow-wrap:anywhere}.shell-toast[data-variant=success]{background:#065f46}.shell-toast[data-variant=error]{background:#991b1b}.shell-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;padding:16px;z-index:30}.shell-dialog{background:var(--shell-bg);color:var(--shell-fg);border-radius:12px;padding:20px;width:min(420px,100%);box-shadow:0 16px 48px #00000059;display:flex;flex-direction:column;gap:12px}.shell-dialog-kicker{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--shell-muted)}.shell-dialog-message{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.shell-dialog-actions{display:flex;justify-content:flex-end;gap:8px}
