:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}html,body,#root{margin:0;padding:0;width:100%;height:100%}body{min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.transcript-bubble{position:fixed;top:64px;left:50%;transform:translate(-50%);max-width:600px;width:calc(100% - 40px);padding:8px 16px 8px 24px;background:#fff;border:1px solid #e0e0e0;border-radius:24px;box-shadow:0 4px 16px #00000026;font-size:1rem;line-height:1.5;white-space:pre-wrap;z-index:900;display:flex;align-items:center;justify-content:space-between;gap:16px;transition:all .2s ease}.transcript-bubble:hover{box-shadow:0 6px 20px #0003}.transcript-content{flex:1;padding:4px 0;min-height:24px;max-height:200px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c1c1c1 #f1f1f1;--scrollbar-width: 6px;--scrollbar-radius: 3px}.transcript-content .hint{color:#95a5a6;font-style:italic}.stop-button{background:none;border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;margin:0;color:#f44336;transition:all .2s ease;flex-shrink:0}.stop-button:hover{background-color:#ffebee;transform:scale(1.1)}.stop-button:active{transform:scale(.95)}.toolbar{display:flex;align-items:center;gap:1rem;padding:1rem;background-color:#f5f5f5;width:100%;box-sizing:border-box;margin:0;box-shadow:0 2px 4px #0000001a;position:relative;z-index:100}.toolbar-form{display:flex;flex:1;gap:.5rem;max-width:800px;margin:0 auto;width:100%}.toolbar input[type=text]{flex:1;padding:.5rem .75rem;border:1px solid #ddd;border-radius:4px;font-size:1rem;outline:none;transition:border-color .2s}.toolbar input[type=text]:focus{border-color:#4a90e2;box-shadow:0 0 0 2px #4a90e233}.toolbar button[type=submit]{padding:.5rem 1rem;background-color:#4a90e2;color:#fff;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:background-color .2s}.toolbar button[type=submit]:hover{background-color:#357abd}.toolbar-divider{width:1px;height:2rem;background-color:#ddd}.voice-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background-color:#4a90e2;color:#fff;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:background-color .2s}.voice-btn:hover{background-color:#357abd}.voice-btn.recording{background-color:#e74c3c;animation:pulse 1.5s infinite}.voice-btn.recording:hover{background-color:#c0392b}@keyframes pulse{0%{box-shadow:0 0 #e74c3cb3}70%{box-shadow:0 0 0 10px #e74c3c00}to{box-shadow:0 0 #e74c3c00}}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--pulse-color, rgba(244, 67, 54, .7));transform:scale(var(--pulse-scale-start, .95))}70%{box-shadow:0 0 0 var(--pulse-size, 8px) var(--pulse-color, rgba(244, 67, 54, 0));transform:scale(var(--pulse-scale-peak, 1))}to{box-shadow:0 0 0 0 var(--pulse-color, rgba(244, 67, 54, 0));transform:scale(var(--pulse-scale-end, .95))}}@keyframes fadeIn{0%{opacity:0;transform:translateY(var(--fade-y-offset, 10px)) translate(var(--fade-x-offset, 0))}to{opacity:1;transform:translateY(0) translate(var(--fade-x-offset, 0))}}.pulse-animation{animation:pulse 1.5s infinite}.fade-in-animation{animation:fadeIn .2s ease-out}.pulse-recording{--pulse-color: rgba(244, 67, 54, .7);--pulse-size: 8px}.pulse-toolbar-recording{--pulse-color: rgba(231, 76, 60, .7);--pulse-size: 10px}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:#c1c1c1 #f1f1f1}.custom-scrollbar::-webkit-scrollbar{width:var(--scrollbar-width, 4px)}.custom-scrollbar::-webkit-scrollbar-track{background:var(--scrollbar-track-color, #f1f1f1);border-radius:var(--scrollbar-radius, 2px)}.custom-scrollbar::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb-color, #c1c1c1);border-radius:var(--scrollbar-radius, 2px)}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover-color, #a8a8a8)}.scrollbar-thin{--scrollbar-width: 4px;--scrollbar-radius: 2px}.scrollbar-medium{--scrollbar-width: 6px;--scrollbar-radius: 3px}.scrollbar-light{--scrollbar-track-color: #f8f9fa;--scrollbar-thumb-color: #dbe0e4;--scrollbar-thumb-hover-color: #c1c7cd}.scrollbar-dark{--scrollbar-track-color: #343a40;--scrollbar-thumb-color: #6c757d;--scrollbar-thumb-hover-color: #adb5bd}.card-item{position:relative;background:#fff;border:1px solid #ddd;border-radius:8px;padding:12px;min-width:200px;min-height:100px;box-shadow:0 2px 4px #0000001a;transition:box-shadow .2s ease,border-radius .3s ease;resize:both;overflow:visible;display:flex;flex-direction:column;margin-bottom:0;z-index:1;font-size:14px}.card-item.expanded{border-radius:8px 8px 0 0;border-bottom:none;box-shadow:0 2px 4px #0000001a,0 4px 6px #0000001a}.card-item:hover{box-shadow:0 4px 8px #00000026}.card-item textarea{width:100%;height:auto;min-height:60px;border:none;outline:none;resize:none;overflow:hidden;font-family:inherit;font-size:14px;background:transparent;flex-grow:0;margin-bottom:8px}.delete-btn{position:absolute;top:4px;right:4px;background:#f5f3f3;color:#682222;border:1px solid rgb(227,199,199);border-radius:8px;width:10px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity .2s}.delete-btn:hover{background:#f46d6d;color:#fff;border:1px solid rgb(248,133,133)}.card-item:hover .delete-btn{opacity:1}.text-slot{display:flex;align-items:center;background:#fff;padding:5px;border-radius:4px;border:1px solid #e0e0e0;transition:all .2s}.text-slot:hover{background:#f9f9f9;box-shadow:0 1px 3px #0000001a}.text-slot-content{font-size:10px;flex-grow:1;padding:2px 4px;cursor:pointer;word-break:break-word}.text-slot-input{flex-grow:1;border:1px solid #d9d9d9;border-radius:4px;padding:4px 8px;font-size:13px;outline:none;transition:border-color .3s}.text-slot-input:focus{border-color:#1890ff}.delete-slot-btn{background:#ff4d4f;color:#fff;border:none;border-radius:4px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:10px;line-height:1;margin-left:8px;opacity:.7;transition:opacity .2s}.delete-slot-btn:hover{opacity:1}.text-slots-container{display:flex;flex-direction:column;gap:5px;margin-bottom:5px;max-height:900px;overflow-y:auto;padding-right:4px;composes:custom-scrollbar scrollbar-thin}.shelf{position:absolute;top:100%;left:0;right:0;background:#f8f9fa;border-radius:0 0 8px 8px;max-height:0;overflow:hidden;transition:max-height .3s ease-in-out,padding .3s ease-in-out,transform .3s ease-in-out;transform:translateY(-10px);opacity:0;pointer-events:none;z-index:0;width:100%;box-sizing:border-box;padding:0 12px;border:1px solid #e0e0e0;border-top:none;box-shadow:0 4px 6px #0000001a}.shelf.expanded{max-height:900px;padding:5px;transform:translateY(0);opacity:1;pointer-events:auto}.slot-buttons-container{display:flex;gap:8px;margin-top:8px;width:100%}.voice-btn{width:32px;height:24px;padding:0;display:flex;align-items:center;justify-content:center;background:#2196f3;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;transition:all .2s}.voice-btn:hover{background:#1976d2}.voice-btn.recording{background:#f44336;composes:pulse-animation pulse-recording}.add-slot-btn{width:120px;height:24px;padding:0;background:#52c41a;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;transition:background-color .2s;display:flex;align-items:center;justify-content:center}.add-slot-btn:hover{background:#73d13d}.add-slot-btn:active{background:#389e0d}.card-transcript-bubble{position:absolute;bottom:calc(100% + 15px);left:50%;transform:translate(-50%);background-color:#fff;border:1px solid #e9ecef;border-radius:12px;padding:16px 20px;box-shadow:0 4px 20px #0000001a;z-index:1001;max-width:320px;min-width:240px;text-align:left;line-height:1.5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:#fffffff2;border:none;transition:max-height .2s ease;overflow-y:hidden;max-height:80px;composes:fade-in-animation;--fade-y-offset: 10px;--fade-x-offset: -50%}.transcript-text{color:#2d3436;font-size:15px;font-weight:400;margin:0;padding:12px 0;min-height:24px;line-height:1.5;white-space:pre-wrap;word-break:break-word;overflow:visible}.recording-indicator{display:flex;align-items:center;margin-bottom:8px;color:#e74c3c;font-size:13px;font-weight:500}.recording-indicator:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#e74c3c;margin-right:8px;animation:pulse 1.5s infinite}.card-button{position:absolute;bottom:-4px;left:50%;transform:translate(-50%);background:transparent;border:none;cursor:pointer;padding:0;width:80px;height:20px;z-index:1001;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.card-button:hover{transform:translate(-50%) scale(1.05)}.card-button img{width:100%;height:100%;object-fit:contain;pointer-events:none}.card-content{cursor:pointer!important}@media (max-width: 480px){.card-transcript-bubble{max-width:280px;padding:14px 16px;bottom:calc(100% + 10px)}.transcript-text{font-size:14px}}.left-toolbar{position:fixed;top:0;left:0;height:100vh;width:40px;background:#222;transition:width .2s cubic-bezier(.4,0,.2,1);z-index:1001;display:flex;flex-direction:column;align-items:center;box-shadow:2px 0 8px #00000014}.left-toolbar.expanded{width:120px}.toolbar-icon-btn{background:none;border:none;color:#fff;font-size:2rem;margin:16px 0 8px;cursor:pointer;outline:none;width:100%;text-align:center}.toolbar-buttons{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-top:16px}.toolbar-btn{background:#333;border:none;color:#fff;font-size:1rem;padding:8px 12px;margin:4px 0 0 8px;border-radius:4px;cursor:pointer;width:90px;text-align:left;transition:background .15s}.toolbar-btn:hover{background:#444}.history-popup-panel{position:fixed;top:5vh;left:0;width:320px;height:90vh;background:#fff;border-radius:0 16px 16px 0;box-shadow:4px 0 24px #00000021;z-index:2001;display:flex;flex-direction:column;transition:transform .18s cubic-bezier(.4,0,.2,1),box-shadow .18s;animation:slideInLeft .25s cubic-bezier(.4,0,.2,1)}@keyframes slideInLeft{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}.history-popup-header{display:flex;align-items:center;justify-content:space-between;background:#222;color:#fff;padding:14px 20px;border-radius:0 16px 0 0;font-size:1.2rem;box-shadow:0 2px 8px #0000000a}.history-popup-close{background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer}.history-popup-list{flex:1;overflow-y:auto;padding:12px 16px 0}.history-entry{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #eee}.history-entry-icon{font-size:1.2rem;width:2em;text-align:center}.history-entry-desc{flex:1;font-size:1rem}.history-entry-time{color:#888;font-size:.85rem;margin-right:8px}.history-entry-undo{background:#f2f2f2;border:none;border-radius:4px;font-size:1.1rem;cursor:pointer;padding:2px 8px;transition:background .15s}.history-entry-undo:hover{background:#e0e0e0}.history-popup-empty{color:#888;text-align:center;padding:40px 0}.history-popup-footer{display:flex;justify-content:flex-end;padding:12px 16px 16px;border-top:1px solid #eee;background:#fafafa;border-radius:0 0 16px;box-shadow:0 -2px 8px #00000008}.history-delete-btn{background:#e74c3c;color:#fff;border:none;border-radius:4px;padding:8px 18px;font-size:1rem;cursor:pointer;transition:background .15s}.history-delete-btn:hover{background:#c0392b}.app-container{width:100%;max-width:100%;margin:0;padding:0;height:100vh;display:flex;flex-direction:column;overflow:hidden}.workspace-container{position:relative;width:100%;flex:1;overflow:hidden;background-color:#f8f9fa}.placeholder{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#6c757d;font-size:1.1rem;text-align:center;max-width:80%;pointer-events:none;z-index:10}.workspace{position:absolute;inset:0;width:100%;height:100%;will-change:transform;transform-origin:0 0}.grid-background{position:absolute;inset:0;width:100%;height:100%;z-index:0;background-color:#f8f9fa;background-image:linear-gradient(rgba(0,0,0,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.05) 1px,transparent 1px);background-size:20px 20px;background-position:center center;background-repeat:repeat;pointer-events:none;transform:translateZ(0)}.card-item{position:absolute;width:240px;min-height:80px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:12px 16px;box-shadow:0 2px 8px #0000001a;cursor:move;-webkit-user-select:none;user-select:none;transition:box-shadow .2s ease,transform .2s ease}.card-item:hover{box-shadow:0 4px 12px #00000026}.card-item.dragging{opacity:.8;transform:scale(1.02);z-index:10}.placeholder{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#888;font-size:1.2em;text-align:center;max-width:80%;pointer-events:none}.zoom-controls{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;gap:8px;z-index:1000;background:#fff;padding:8px;border-radius:8px;box-shadow:0 2px 10px #0000001a}.zoom-btn{width:36px;height:36px;border-radius:50%;background:#fff;border:1px solid #e0e0e0;box-shadow:0 2px 8px #0000001a;font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.zoom-btn:hover{background:#f5f5f5}.zoom-btn:active{transform:scale(.95)}.zoom-display{background:#fff;padding:6px 12px;border-radius:16px;font-size:14px;text-align:center;box-shadow:0 2px 8px #0000001a;background-color:#f8f9fa;color:#dc3545}@media (max-width: 768px){.app-container{padding:.5rem}.toolbar{flex-direction:column;align-items:stretch}.toolbar-divider{width:100%;height:1px;margin:.5rem 0}}
