@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*,:before,:after{box-sizing:border-box}html,body,#root{min-height:100%}body{font-family:var(--bf-theme-font-family,"Inter", system-ui, sans-serif);font-size:var(--bf-theme-typography-body-size,1rem);line-height:var(--bf-theme-typography-line-height,1.5);color:var(--bf-theme-text-1,#0f172a);background:var(--bf-theme-surface-2,#f8fafc);-webkit-font-smoothing:antialiased;margin:0}a{color:var(--bf-theme-button-secondary-color,#1d4ed8);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4{color:var(--bf-theme-text-1);margin:0 0 .5rem;font-weight:600;line-height:1.2}h1{font-size:var(--bf-theme-typography-h1-size,1.75rem)}h2{font-size:var(--bf-theme-typography-h2-size,1.375rem)}h3{font-size:var(--bf-theme-typography-h3-size,1.125rem)}p{color:var(--bf-theme-text-2);margin:0 0 1rem}code,pre{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:var(--bf-theme-typography-code-size,.875rem)}.app-shell{flex-direction:column;min-height:100vh;display:flex}.app-header{z-index:50;border-bottom:var(--bf-theme-border-width,1px) var(--bf-theme-border-style,solid) var(--bf-theme-border-1);background:color-mix(in srgb, var(--bf-theme-surface-1) 92%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);flex-wrap:wrap;align-items:center;gap:1rem;padding:.65rem 1.25rem;display:flex;position:sticky;top:0}.brand{color:var(--bf-theme-text-1);align-items:center;gap:.5rem;font-size:1.05rem;font-weight:700;text-decoration:none;display:flex}.brand:hover{text-decoration:none}.brand-mark{background:linear-gradient(135deg, var(--bf-theme-button-primary-bg), #7c3aed);width:28px;height:28px;box-shadow:0 4px 14px color-mix(in srgb, var(--bf-theme-button-primary-bg) 35%, transparent);border-radius:8px}.product-switcher{background:var(--bf-theme-surface-2);border:1px solid var(--bf-theme-border-1);border-radius:999px;gap:.25rem;padding:.2rem;display:flex}.product-switcher a{color:var(--bf-theme-text-2);border-radius:999px;padding:.35rem .85rem;font-size:.875rem;font-weight:500;text-decoration:none}.product-switcher a:hover{background:var(--bf-theme-surface-1);color:var(--bf-theme-text-1);text-decoration:none}.product-switcher a.active{background:var(--bf-theme-button-primary-bg);color:var(--bf-theme-button-primary-color)}.header-spacer{flex:1}.theme-select{font:inherit;border-radius:var(--bf-theme-radius-md,8px);border:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-1);color:var(--bf-theme-text-1);padding:.4rem .65rem}.app-main{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:1.5rem 1.25rem 3rem}.app-main.wide{max-width:none;padding:0}.btn{border-radius:var(--bf-theme-radius-md,8px);border:var(--bf-theme-border-width,1px) solid transparent;font:inherit;cursor:var(--bf-theme-cursor-button,pointer);justify-content:center;align-items:center;gap:.4rem;padding:.55rem 1rem;font-weight:500;transition:transform .12s,opacity .12s,background .12s;display:inline-flex}.btn:active{transform:translateY(var(--bf-theme-active-translate-y,1px))}.btn-primary{background:var(--bf-theme-button-primary-bg);color:var(--bf-theme-button-primary-color);border-color:var(--bf-theme-button-primary-border-color)}.btn-primary:hover{opacity:var(--bf-theme-opacity-hover,.96)}.btn-secondary{background:var(--bf-theme-button-secondary-bg);color:var(--bf-theme-button-secondary-color);border-color:var(--bf-theme-button-secondary-border-color)}.btn-ghost{color:var(--bf-theme-text-1);border-color:var(--bf-theme-border-1);background:0 0}.btn-sm{padding:.35rem .65rem;font-size:.8125rem}.user-menu{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.user-avatar{border:1px solid var(--bf-theme-border-1);object-fit:cover;border-radius:50%}.user-login{color:var(--bf-theme-text-2);text-overflow:ellipsis;white-space:nowrap;max-width:8rem;font-size:.875rem;overflow:hidden}.auth-muted{color:var(--bf-theme-text-2);margin:0;font-size:.875rem}.card{border-radius:calc(var(--bf-theme-radius-md,8px) + 4px);border:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-1);color:var(--bf-theme-text-1);padding:1.25rem}.card h3{color:var(--bf-theme-text-1)}.badge-pill{background:var(--bf-theme-surface-2);border:1px solid var(--bf-theme-border-1);color:var(--bf-theme-text-2);border-radius:999px;padding:.15rem .55rem;font-size:.75rem;font-weight:600;display:inline-block}.badge-pill.success{background:color-mix(in srgb, #22c55e 18%, var(--bf-theme-surface-1));color:#15803d}.badge-pill.beta{background:color-mix(in srgb, #f59e0b 18%, var(--bf-theme-surface-1))}.badge-pill.coming{background:color-mix(in srgb, #8b5cf6 18%, var(--bf-theme-surface-1))}.grid-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;display:grid}.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.page-hero{padding:2.5rem 0 1.5rem}.page-hero h1{max-width:18ch;font-size:clamp(1.75rem,4vw,2.5rem)}.lead{max-width:52ch;font-size:1.125rem}.subnav{border-bottom:1px solid var(--bf-theme-border-1);flex-wrap:wrap;gap:.5rem 1rem;margin-bottom:1.5rem;padding-bottom:.75rem;display:flex}.subnav a{color:var(--bf-theme-text-2);font-size:.9rem;font-weight:500}.subnav a.active{color:var(--bf-theme-button-primary-bg)}.form-stack{flex-direction:column;gap:1rem;max-width:400px;display:flex}.field label{color:var(--bf-theme-text-1);margin-bottom:.35rem;font-size:.875rem;font-weight:500;display:block}.field input{border-radius:var(--bf-theme-radius-md,8px);border:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-1);width:100%;color:var(--bf-theme-text-1);font:inherit;padding:.55rem .75rem}.field input:focus{outline:var(--bf-theme-focus-ring-width,2px) var(--bf-theme-focus-ring-style,solid) var(--bf-theme-focus-ring-color);outline-offset:var(--bf-theme-focus-ring-offset,2px)}.code-block{border-radius:var(--bf-theme-radius-md,8px);background:var(--bf-theme-surface-2);border:1px solid var(--bf-theme-border-1);color:var(--bf-theme-text-1);margin:0;padding:1rem;overflow-x:auto}.table-wrap{border:1px solid var(--bf-theme-border-1);border-radius:var(--bf-theme-radius-md,8px);overflow-x:auto}table.props-table{border-collapse:collapse;width:100%;font-size:.875rem}table.props-table th,table.props-table td{text-align:left;border-bottom:1px solid var(--bf-theme-border-1);padding:.65rem .85rem}table.props-table th{background:var(--bf-theme-surface-2);font-weight:600}table.props-table tr:last-child td{border-bottom:none}.token-swatch{border:1px solid var(--bf-theme-border-1);border-radius:6px;height:36px}.footer-note{color:var(--bf-theme-text-2);text-align:center;margin-top:3rem;padding-top:1rem;font-size:.8rem}.sr-only{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.subnav a.active{font-weight:600;text-decoration:none}.designer-workspace{border-top:1px solid var(--bf-theme-border-1);grid-template-columns:200px 1fr 240px 260px;min-height:calc(100vh - 56px);display:grid}.designer-panel{border-right:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-1);padding:1rem;overflow-y:auto}.designer-panel h3{text-transform:uppercase;letter-spacing:.04em;color:var(--bf-theme-text-2);font-size:.8rem}.designer-panel-chat{border-right:none;border-left:1px solid var(--bf-theme-border-1)}.palette-list{flex-direction:column;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.palette-item{text-align:left;border:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-2);width:100%;color:var(--bf-theme-text-1);font:inherit;cursor:pointer;border-radius:6px;padding:.45rem .6rem}.palette-item:hover{border-color:var(--bf-theme-button-primary-bg)}.panel-hint{margin-top:1rem;font-size:.8rem}.designer-canvas{background:var(--bf-theme-surface-2);flex-direction:column;display:flex}.canvas-toolbar{border-bottom:1px solid var(--bf-theme-border-1);color:var(--bf-theme-text-2);justify-content:space-between;align-items:center;padding:.5rem 1rem;font-size:.875rem;display:flex}.canvas-frame{border:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-1);border-radius:12px;flex-direction:column;flex:1;min-height:360px;margin:1rem;display:flex;overflow:hidden}.mock-app-header{border-bottom:1px solid var(--bf-theme-border-1);justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.mock-app-body{flex:1;gap:1rem;padding:1rem;display:flex}.mock-chart{background:linear-gradient(180deg, color-mix(in srgb, var(--bf-theme-button-primary-bg) 35%, transparent), transparent);border:1px dashed var(--bf-theme-border-1);border-radius:8px;height:140px;margin-top:.75rem}.chat-thread{flex-direction:column;gap:.5rem;max-height:240px;margin-bottom:.75rem;display:flex;overflow-y:auto}.chat-bubble{border-radius:10px;padding:.55rem .7rem;font-size:.85rem}.chat-user{background:var(--bf-theme-button-primary-bg);color:var(--bf-theme-button-primary-color);align-self:flex-end;max-width:90%}.chat-agent{background:var(--bf-theme-surface-2);border:1px solid var(--bf-theme-border-1);color:var(--bf-theme-text-1)}.designer-split{grid-template-columns:1fr 320px;align-items:start;gap:1rem;display:grid}.designer-split-main{min-width:0}.designer-split-preview{position:sticky;top:4.5rem}@media (width<=1100px){.designer-workspace{grid-template-columns:1fr}.designer-panel-left,.designer-panel-right,.designer-panel-chat{border-right:none;border-bottom:1px solid var(--bf-theme-border-1)}}.designer-route-shell{width:100%}.designer-subnav{margin:0 1.25rem;padding-left:.25rem}.app-main.wide .designer-route-shell{max-width:none}.app-main.wide .designer-subnav{margin:0;padding:.5rem 1rem .75rem}.designer-workspace-v2{border-top:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-2);grid-template-columns:260px 1fr 300px;height:calc(100vh - 52px);min-height:520px;display:grid}.designer-sidebar,.designer-inspector{background:var(--bf-theme-surface-1);border-right:1px solid var(--bf-theme-border-1);padding:.75rem;overflow-y:auto}.designer-inspector{border-right:none;border-left:1px solid var(--bf-theme-border-1)}.designer-canvas-column{flex-direction:column;min-width:0;display:flex;position:relative}.sidebar-section{margin-bottom:1.25rem}.sidebar-section h4{text-transform:uppercase;letter-spacing:.06em;color:var(--bf-theme-text-2);margin:0 0 .5rem;font-size:.7rem}.sidebar-list{margin:0;padding:0;list-style:none}.sidebar-list button{text-align:left;width:100%;font:inherit;color:var(--bf-theme-text-1);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:.4rem .5rem}.sidebar-list button.active,.sidebar-list button:hover{background:var(--bf-theme-surface-2)}.sidebar-list code{color:var(--bf-theme-text-2);font-size:.7rem}.sidebar-add{width:100%;margin-top:.35rem}.sidebar-hint{color:var(--bf-theme-text-2);font-size:.8rem}.palette-grid{grid-template-columns:1fr 1fr;gap:.35rem;display:grid}.layers-tree,.layer-children{margin:0;padding:0;list-style:none}.layer-row{text-align:left;width:100%;font:inherit;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:.35rem;padding:.25rem .35rem;display:flex}.layer-row.active{background:color-mix(in srgb, var(--bf-theme-button-primary-bg) 15%, transparent)}.layer-type{color:var(--bf-theme-text-2);font-size:.65rem;font-weight:700}.canvas-subtoolbar{border-bottom:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-1);flex-wrap:wrap;align-items:center;gap:.75rem 1rem;padding:.5rem .75rem;font-size:.85rem;display:flex}.canvas-subtoolbar label{color:var(--bf-theme-text-2);align-items:center;gap:.35rem;display:flex}.infinite-canvas{cursor:grab;background:radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--bf-theme-border-1) 40%, transparent) 1px, transparent 0) 0 0 / 16px 16px;flex:1;position:relative;overflow:hidden}.infinite-canvas:active{cursor:grabbing}.canvas-world{will-change:transform;position:absolute;top:0;left:0}.canvas-frame-wrap{cursor:default;z-index:1;position:relative;overflow:visible}.canvas-frame-wrap.selected{z-index:5}.canvas-frame-wrap.selected .frame-chrome{box-shadow:0 0 0 2px var(--bf-theme-button-primary-bg)}.canvas-frame-wrap.ghost{opacity:.92}.frame-label{height:28px;color:var(--bf-theme-text-1);align-items:center;gap:.35rem;min-width:0;margin-bottom:4px;font-size:11px;font-weight:600;display:flex}.frame-label-text{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.matrix-corner-label,.matrix-col-header,.matrix-row-header{color:var(--bf-theme-text-2);background:color-mix(in srgb, var(--bf-theme-surface-1) 92%, transparent);border:1px dashed var(--bf-theme-border-1);box-sizing:border-box;text-align:center;border-radius:6px;justify-content:center;align-items:center;padding:0 6px;font-size:11px;font-weight:600;display:flex;position:absolute}.matrix-row-header{justify-content:flex-start;padding-left:10px}.bf-select-field{color:var(--bf-theme-text-2);flex-direction:column;gap:.2rem;font-size:.8rem;display:flex}.bf-select-label{font-weight:500}.bf-select-wrap{display:inline-flex}.bf-select{font:inherit;border-radius:var(--bf-theme-radius-md,8px);border:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right .5rem center;color:var(--bf-theme-text-1);appearance:none;cursor:pointer;min-width:8rem;padding:.4rem 1.75rem .4rem .6rem;font-size:.85rem}.bf-select:focus{outline:2px solid var(--bf-theme-focus-ring-color);outline-offset:1px}.frame-chrome{background:var(--bf-theme-surface-1);border-radius:8px;overflow:hidden;box-shadow:0 8px 32px #0f172a1f}.bp-chip,.trial-chip{background:var(--bf-theme-surface-2);border:1px solid var(--bf-theme-border-1);border-radius:4px;padding:.1rem .35rem;font-size:.65rem}.frame-toolbar{flex-wrap:wrap;gap:.35rem;margin-top:.35rem;display:flex}.canvas-zoom-controls{background:var(--bf-theme-surface-1);border:1px solid var(--bf-theme-border-1);border-radius:8px;align-items:center;gap:.35rem;padding:.35rem .5rem;font-size:.85rem;display:flex;position:absolute;top:12px;right:12px}.canvas-zoom-controls button{font:inherit;cursor:pointer;background:0 0;border:none;padding:.15rem .35rem}.compare-bar{background:var(--bf-theme-surface-1);border:1px solid var(--bf-theme-border-1);border-radius:999px;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.85rem;display:flex;position:absolute;bottom:16px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #0f172a26}.inspector-scope{flex-wrap:wrap;gap:.35rem;margin-bottom:.75rem;font-size:.75rem;display:flex}.inspector-scope button{border:1px solid var(--bf-theme-border-1);background:var(--bf-theme-surface-2);font:inherit;cursor:pointer;border-radius:6px;padding:.2rem .45rem}.inspector-scope button.active{background:var(--bf-theme-button-primary-bg);color:var(--bf-theme-button-primary-color);border-color:#0000}.inspector-accordion{border:1px solid var(--bf-theme-border-1);border-radius:8px;margin-bottom:.5rem}.inspector-accordion summary{cursor:pointer;padding:.45rem .65rem;font-weight:600}.inspector-body{padding:0 .65rem .65rem}.inspector-crumb{color:var(--bf-theme-text-2);font-size:.8rem}.assistant-fab{background:var(--bf-theme-button-primary-bg);width:48px;height:48px;color:var(--bf-theme-button-primary-color);cursor:pointer;box-shadow:0 8px 24px color-mix(in srgb, var(--bf-theme-button-primary-bg) 40%, transparent);z-index:20;border:none;border-radius:999px;font-size:1.25rem;position:absolute;bottom:16px;right:16px}.assistant-drawer{background:var(--bf-theme-surface-1);border:1px solid var(--bf-theme-border-1);z-index:20;border-radius:12px;width:min(360px,100% - 32px);max-height:420px;padding:.75rem;position:absolute;bottom:72px;right:16px;overflow:auto;box-shadow:0 16px 48px #0f172a33}.assistant-drawer header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.assistant-actions{flex-direction:column;gap:.35rem;margin-bottom:.75rem;display:flex}.assistant-input{border:1px solid var(--bf-theme-border-1);width:100%;font:inherit;border-radius:8px;padding:.5rem}.themes-workspace{grid-template-columns:220px 1fr 380px;align-items:start;gap:1rem;padding:0 1rem 1.5rem;display:grid}.themes-preview-iframe{border:1px solid var(--bf-theme-border-1);border-radius:8px;width:100%;height:520px}@media (width<=1100px){.designer-workspace-v2{grid-template-columns:1fr;height:auto}.themes-workspace{grid-template-columns:1fr}}
