*{box-sizing:border-box;margin:0;padding:0}html,body,#root{color:#d4d4d4;background:#1e1e1e;width:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}body{overflow:hidden}.app{flex-direction:column;min-width:0;height:100%;min-height:100dvh;display:flex}.toolbar{background:#252526;border-bottom:1px solid #3c3c3c;flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px 16px;padding:8px 16px;display:flex}.brand-row{align-items:center;gap:12px;min-width:0;display:flex}.brand{align-items:center;gap:3px;display:flex}.brand-logo{flex-shrink:0;width:48px;height:48px;position:relative;top:0;transform:translateY(-4px)}.toolbar h1{letter-spacing:.3px;color:#e0e0e0;margin:0 0 0 -2px;font-family:Fraunces,Georgia,serif;font-size:28px;font-style:normal;font-weight:500;line-height:1}.toolbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;min-width:0;display:flex}.toolbar-actions>*{min-width:0}.toolbar-actions select{flex:1 1 0}.export-select{appearance:auto;flex:none;min-width:104px;max-width:100%}.export-select option{color:initial}.template-select,.theme-select{min-width:0;max-width:100%}.toolbar-actions button,.template-select,.theme-select,.export-select{color:#d4d4d4;cursor:pointer;background:#3c3c3c;border:1px solid #4d4d4d;border-radius:4px;min-height:38px;padding:6px 14px;font-size:13px;transition:background .15s}.toolbar-actions button:hover,.template-select:hover,.theme-select:hover,.export-select:hover{background:#4c4c4c}.toolbar-actions button:disabled,.export-select:disabled{opacity:.6;cursor:not-allowed}.mobile-view-switch{gap:6px;display:inline-flex}.mobile-view-tab{color:#e5e7eb;background:#2d3748;border:1px solid #4b5563;border-radius:999px;min-height:34px;padding:6px 10px;font-size:12px;cursor:pointer}.mobile-view-tab.active{color:#fff;background:#0e639c;border-color:#17b}.header-toggle{color:#bdbdbd;text-transform:none;letter-spacing:0;cursor:pointer;white-space:nowrap;align-items:center;gap:6px;min-height:36px;font-size:12px;display:inline-flex}.header-toggle input{cursor:pointer}.connect-agent-btn{color:#fff;cursor:pointer;text-transform:none;letter-spacing:0;background:#0e639c;border:1px solid transparent;border-radius:3px;flex-shrink:0;height:28px;padding:0 10px;font-size:12px;line-height:1}.connect-agent-btn:hover{background:#17b}.connect-agent-btn:focus-visible{outline-offset:1px;outline:2px solid #007acc}.share-btn{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;height:28px;padding:0 10px;font-size:12px;line-height:1;color:#cbd5e1;background:#ffffff0a;border:1px solid #3f3f46;border-radius:3px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.share-btn:hover{color:#f8fafc;background:#ffffff14;border-color:#52525b}.share-btn:focus-visible{outline-offset:1px;outline:2px solid #007acc}.share-btn svg{flex-shrink:0;opacity:.85}.share-btn-copied,.share-btn-copied:hover{color:#d1fae5;background:#107a5738;border-color:#34d39973}.share-btn-copied svg{opacity:1}.channel-control{align-items:center;gap:6px;min-width:0;display:inline-flex}.toolbar-channel-control{flex:none}.channel-badge{color:#cbd5e1;white-space:nowrap;background:#ffffff0a;border:1px solid #3f3f46;border-radius:999px;align-items:center;gap:4px;min-height:28px;padding:3px 8px;font-size:12px;display:inline-flex}.channel-badge strong{color:#f8fafc;text-overflow:ellipsis;max-width:140px;font-weight:600;overflow:hidden}.channel-label{color:#9ca3af;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;font-size:11px}.channel-input{color:#e5e7eb;background:#1f2937;border:1px solid #4b5563;border-radius:4px;width:120px;min-width:0;height:28px;padding:0 8px;font-size:12px}.channel-input:focus-visible{outline-offset:1px;outline:2px solid #007acc}.channel-apply-btn{color:#f3f4f6;cursor:pointer;background:#374151;border:1px solid #4b5563;border-radius:4px;flex-shrink:0;height:28px;padding:0 10px;font-size:12px}.channel-apply-btn:hover:not(:disabled){background:#4b5563}.channel-apply-btn:disabled{opacity:.5;cursor:default}.panel-header{color:#ccc;background:#2d2d30;border-bottom:1px solid #3c3c3c;flex-shrink:0;align-items:center;gap:8px;height:40px;padding:0 12px;font-size:13px;display:flex}.panel-header>span:first-child{min-width:0}.panel-header .zoom-controls{margin-left:auto}.preview-header{flex-wrap:nowrap;justify-content:space-between;gap:8px}.preview-header-left{flex:none;align-items:center;gap:10px;min-width:0;display:flex}.preview-controls{flex-wrap:nowrap;flex:auto;justify-content:flex-end;gap:8px;min-width:0;margin-left:auto}.preview-controls .zoom-btn,.preview-controls .header-toggle,.preview-controls .connect-agent-btn{flex-shrink:0}.editor-header{justify-content:flex-start;gap:10px}.editor-header-left{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.toolbar-toggle{align-items:center;gap:6px;color:#d4d4d4;font-size:13px;cursor:pointer;user-select:none;display:inline-flex}.toolbar-toggle input{accent-color:#0e639c;cursor:pointer}.present-float-btn{position:absolute;top:14px;right:14px;z-index:5;display:inline-flex;align-items:center;gap:6px;padding:6px 14px 6px 12px;font-size:13px;font-weight:500;color:#f0f1f5;background:#1e202cad;border:1px solid rgba(255,255,255,.14);border-radius:999px;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 2px 8px #00000038;transition:background .15s,border-color .15s}.present-float-btn svg{flex-shrink:0;opacity:.85}.present-float-btn-active svg{opacity:1}.present-float-btn:hover{background:#32374bd9;border-color:#ffffff38}.present-float-btn-active{background:#0e639ce6;border-color:#17bc;color:#fff}.present-float-btn-active:hover{background:#1177bbf2}.preview-theme-light .present-float-btn{color:#2d3145;background:#ffffffc7;border-color:#00000014;box-shadow:0 2px 8px #00000014}.preview-theme-light .present-float-btn:hover{background:#ffffffeb;border-color:#00000024}.preview-theme-light .present-float-btn-active{color:#fff;background:#0e639cf2;border-color:#17bc}.agent-editing{align-items:center;min-width:0;display:flex;overflow:hidden}.agent-pulse{background:#60a5fa;border-radius:50%;flex-shrink:0;width:7px;height:7px;margin-right:7px;animation:3s ease-in-out infinite pulse-dot;display:inline-block}@keyframes pulse-dot{0%,to{opacity:.5}50%{opacity:1}}.agent-name{white-space:nowrap;text-overflow:ellipsis;background:linear-gradient(90deg,#94a3b8 0% 40%,#bfe0ff 50%,#94a3b8 60% 100%) 0 0 / 200% 100%;-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;max-width:180px;animation:3s ease-in-out infinite shimmer-text;overflow:hidden}@keyframes shimmer-text{0%{background-position:100% 0}to{background-position:-100% 0}}.panels{flex:1;min-width:0;min-height:0;display:flex}.panels-stacked{flex-direction:column}.panel{flex-direction:column;flex:auto;min-width:100px;min-height:0;display:flex}.editor-panel{flex:none;min-width:0}.preview-panel{min-width:0;position:relative}.resize-handle{cursor:col-resize;z-index:2;touch-action:none;background:#1e1f23;border-left:1px solid rgba(255,255,255,.06);border-right:1px solid rgba(255,255,255,.06);flex:0 0 12px;width:12px;transition:background .14s;position:relative;overflow:visible}.resize-handle:before{content:"";background:linear-gradient(#3a3d44,#2e3138);border-radius:7px;width:14px;height:36px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:inset 0 1px #ffffff14,0 0 0 1px #ffffff12,0 2px 8px #0000004d}.resize-handle:after{content:"";z-index:3;pointer-events:none;background-image:radial-gradient(circle,rgba(255,255,255,.45) 1px,transparent 1px);background-size:4px 5px;width:8px;height:15px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.resize-handle:hover,.resize-handle.dragging{background:#24262b}.resize-handle:hover:before,.resize-handle.dragging:before{background:linear-gradient(#444950,#363b44);box-shadow:inset 0 1px #ffffff1a,0 0 0 1px #90c5ff26,0 3px 10px #0000004d}.resize-handle:hover:after,.resize-handle.dragging:after{background-image:radial-gradient(circle,rgba(255,255,255,.65) 1px,transparent 1px);background-size:4px 5px}.preview-content{background:transparent;flex:1;justify-content:center;align-items:center;min-height:0;padding:20px;display:flex;overflow:hidden;position:relative}.zoom-overlay{position:absolute;right:18px;bottom:18px;display:flex;gap:4px;padding:4px;border-radius:8px;background:#1e202c8c;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 2px 8px #0000002e;z-index:5;pointer-events:auto}.preview-theme-light .zoom-overlay{background:#ffffffb3;box-shadow:0 2px 8px #00000014}.zoom-overlay .zoom-btn{color:#f0f1f5;background:#ffffff14;border:1px solid rgba(255,255,255,.12)}.zoom-overlay .zoom-btn:hover{background:#ffffff2e;border-color:#ffffff38}.preview-theme-light .zoom-overlay .zoom-btn{color:#2d3145;background:#0000000a;border:1px solid rgba(0,0,0,.08)}.preview-theme-light .zoom-overlay .zoom-btn:hover{background:#00000014;border-color:#00000024}.preview-content{cursor:grab;user-select:none;-webkit-user-select:none}.preview-content-panning{cursor:grabbing}.preview-content-panning .preview-svg-wrapper,.preview-content-panning .presentation-pan-wrapper{transition:none}.presentation-pan-wrapper{transform-origin:50% 50%;justify-content:center;align-items:center;width:100%;height:100%;transition:transform 50ms linear;display:flex;user-select:none}.preview-svg-wrapper{transform-origin:50% 50%;justify-content:center;align-items:center;width:100%;height:100%;transition:transform 50ms linear;display:flex}.preview-svg-wrapper svg{max-width:100%;max-height:100%;display:block}.error-message{color:#f48771;white-space:pre-wrap;padding:20px;font-family:monospace}.zoom-controls{align-items:center;gap:6px;display:inline-flex}.zoom-btn{color:#d4d4d4;cursor:pointer;background:#3c3c3c;border:1px solid #4d4d4d;border-radius:4px;min-width:28px;height:28px}.zoom-btn:hover{background:#4c4c4c}.zoom-btn-active{color:#fff;background:#0e639c;border-color:#17b}.zoom-btn-active:hover{background:#17b}.zoom-reset{width:48px;min-width:48px;padding:0 8px;text-align:center;font-variant-numeric:tabular-nums}.presentation-toggle{transition:background .15s,border-color .15s}.presentation-view-container{flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.presentation-badge{z-index:10;letter-spacing:.03em;pointer-events:none;white-space:nowrap;border-radius:999px;padding:4px 12px;font-size:11px;font-weight:500;position:absolute;top:8px;left:50%;transform:translate(-50%)}.presentation-badge-active{color:#e0f0ff;background:#0e639cd9;border:1px solid rgba(17,119,187,.6)}.presentation-badge-unsupported,.presentation-badge-warn{color:#f1d98a;background:#503c14d9;border:1px solid rgba(180,140,40,.5)}.presentation-badge-loading{color:#e0e0e0;background:#3c3c3ce6;border:1px solid rgba(100,100,100,.5);animation:1.5s ease-in-out infinite pulse-badge}@keyframes pulse-badge{0%,to{opacity:.7}50%{opacity:1}}.presentation-active{width:100%;height:100%}.presentation-active svg{max-width:100%;max-height:100%;display:block}.presentation-fallback{transition:opacity .3s;max-width:90%;max-height:90%}.presentation-fallback svg{max-width:100%;max-height:100%;display:block}.presentation-slide{width:100%;max-width:min(100%,calc((100vh - 160px) * 16 / 9));max-height:calc(100vh - 160px);aspect-ratio:16 / 9;display:block;border-radius:8px;box-shadow:0 12px 40px #00000059}.editor-floating-wrap{z-index:20;position:absolute;top:10px;right:12px}.editor-shell{min-height:0;flex:1;display:flex;flex-direction:column;min-width:0}.editor-shell .cm-editor,.editor-shell .cm-scroller,.editor-shell .cm-content{touch-action:pan-y}.editor-shell .cm-editor{height:100%}.editor-shell .cm-scroller{overflow:auto}.editor-shell .cm-gutters{background:#1e1e1e;border-right:1px solid #333}.editor-shell .cm-activeLineGutter{background:#2a2d2e}.preview-theme-light>.preview-content{background:#fff}.preview-theme-dark>.preview-content{background:#1e1e1e}.transparent-grid-light>.preview-content,.transparent-grid-dark>.preview-content{background:transparent}.transparent-grid-light{background-color:#fff!important;background-image:linear-gradient(45deg,#f0f0f0 25%,transparent 25%),linear-gradient(-45deg,#f0f0f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0f0f0 75%),linear-gradient(-45deg,transparent 75%,#f0f0f0 75%)!important;background-position:0 0,0 8px,8px -8px,-8px 0!important;background-size:16px 16px!important}.transparent-grid-dark{background-color:#141414!important;background-image:linear-gradient(45deg,#1e1e1e 25%,transparent 25%),linear-gradient(-45deg,#1e1e1e 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1e1e1e 75%),linear-gradient(-45deg,transparent 75%,#1e1e1e 75%)!important;background-position:0 0,0 8px,8px -8px,-8px 0!important;background-size:16px 16px!important}.modal-overlay{z-index:1000;background:#000000b3;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{color:#e5e5e5;background:#171717;border:1px solid #333;border-radius:12px;width:min(720px,100%);max-height:min(80vh,860px);padding:24px;position:relative;overflow:auto;box-shadow:0 18px 48px #00000073}.modal-close{color:#f3f4f6;cursor:pointer;background:#232323;border:1px solid #444;border-radius:999px;width:32px;height:32px;position:absolute;top:12px;right:12px}.modal-close:hover{background:#2f2f2f}.modal h2{margin:0 0 8px;font-size:28px;line-height:1.1}.modal-subtitle{color:#b3b3b3;margin:0 0 22px;font-size:15px}.modal-section+.modal-section{margin-top:16px}.modal-section h3{text-transform:uppercase;letter-spacing:.08em;color:#a3a3a3;margin:0 0 8px;font-size:14px}.modal pre{background:#0f0f10;border:1px solid #2a2a2a;border-radius:8px;margin:0;padding:14px 16px;overflow:auto}.modal code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.5}.modal-hint{color:#9ca3af;margin-top:18px;font-size:13px}.modal-hint code,.modal-step-desc code,.modal-example code{background:#0f0f10;border:1px solid #2a2a2a;border-radius:4px;padding:1px 6px;font-size:12px}.modal-step{margin-top:8px;padding-top:20px;border-top:1px solid #262626}.modal-step:first-of-type{border-top:0;padding-top:0}.modal-step-label{color:#e5e5e5;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-bottom:8px}.modal-step-desc{color:#c9c9c9;margin:10px 0;font-size:14px;line-height:1.5}.modal-step-desc-tight{color:#9ca3af;margin-top:6px;font-size:13px}.modal-step-desc strong{color:#f3f4f6}.modal-example{background:transparent;border:1px dashed #3f3f46;padding:10px 14px;margin:4px 0 6px}.modal-example code{color:#cbd5e1;background:transparent;border:0;padding:0;font-size:13px;font-style:italic}.modal-snippet{margin:8px 0}.modal-snippet+.modal-snippet{margin-top:10px}.modal-snippet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.modal-snippet-label{color:#a3a3a3;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase}.modal-snippet-copy{display:inline-flex;align-items:center;height:24px;padding:0 10px;font-size:12px;line-height:1;color:#cbd5e1;background:#ffffff0a;border:1px solid #3f3f46;border-radius:4px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.modal-snippet-copy:hover{color:#f8fafc;background:#ffffff14;border-color:#52525b}.modal-snippet-copy-ok,.modal-snippet-copy-ok:hover{color:#d1fae5;background:#107a5738;border-color:#34d39973}.modal-snippet pre{white-space:pre-wrap;word-break:break-all}.mobile-export-fab,.mobile-export-sheet button,.mobile-view-tab{cursor:pointer}.mobile-export-fab{z-index:50;color:#fff;background:#0e639c;border:1px solid #1177bb;border-radius:999px;width:52px;height:52px;font-size:24px;position:fixed;bottom:16px;right:16px;box-shadow:0 12px 24px #00000059}.mobile-export-fab:disabled{opacity:.45}.mobile-export-sheet-backdrop{z-index:60;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.mobile-export-sheet{background:#171717;border-top-left-radius:18px;border-top-right-radius:18px;width:100%;max-width:420px;padding:12px;box-shadow:0 -10px 30px #00000059}.mobile-export-sheet button{text-align:left;color:#f3f4f6;background:transparent;border:none;border-radius:10px;width:100%;padding:14px 12px;font-size:16px}.mobile-export-sheet button:hover{background:#232323}.mobile-export-sheet-cancel{color:#9ca3af;margin-top:8px}@media (width <= 960px){.panels{flex-direction:column}.resize-handle{display:none}.preview-panel,.editor-panel{width:100%;flex-basis:auto!important}}@media (width <= 640px){.toolbar{padding:8px 12px}.brand-row{justify-content:space-between;width:100%}.toolbar h1{font-size:24px}.toolbar-actions{justify-content:flex-start;width:100%}.toolbar-actions>.toolbar-channel-control{width:100%;margin-right:0}.channel-control{gap:4px;padding:2px 4px}.channel-label{display:none}.channel-input{width:88px;font-size:11px}.channel-apply-btn{padding:0 8px;font-size:11px}.preview-header{gap:6px}.preview-header-left{gap:8px}.preview-controls{gap:6px}.header-toggle{font-size:11px}.agent-name{max-width:110px}}@media (width <= 480px){.preview-header-left{gap:6px}.connect-agent-btn{padding:4px 8px;font-size:11px}.header-toggle{gap:4px;font-size:10px}.preview-controls{gap:4px}.agent-name{max-width:84px}.channel-input{width:72px}}
