*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:#0a0a0a;color:#fff;line-height:1.5;min-height:100vh}a{color:inherit;text-decoration:none}button,input,textarea,select{font-family:inherit}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#fff3}::selection{background:#667eea66}:focus-visible{outline:2px solid #667eea;outline-offset:2px}#root{min-height:100vh}.sidebar{width:220px;height:100vh;background:#0f0f0f;border-right:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column;flex-shrink:0;position:sticky;top:0;transition:width .2s ease}.sidebar.sidebar-collapsed{width:48px;display:flex;flex-direction:column;justify-content:space-between;padding:.75rem 0}.collapsed-top{display:flex;flex-direction:column;align-items:center;padding-top:.25rem}.collapsed-script-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:linear-gradient(135deg,#667eea33,#764ba233);border-radius:8px;color:#667eea}.collapsed-bottom{display:flex;flex-direction:column;align-items:center;gap:.5rem}.collapsed-user-menu{position:relative}.collapsed-user-trigger{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;background:transparent;border:none;border-radius:50%;cursor:pointer;transition:all .15s}.collapsed-user-trigger:hover{background:#ffffff1a}.collapsed-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}.collapsed-avatar-placeholder{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:.8rem;font-weight:600;display:flex;align-items:center;justify-content:center}.collapsed-user-dropdown{position:absolute;left:calc(100% + 8px);bottom:0;width:200px;background:#1a1a1a;border:1px solid rgba(255,255,255,.1);border-radius:10px;box-shadow:0 8px 32px #0006;padding:.5rem;z-index:1000}.sidebar-toggle{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff9;cursor:pointer;transition:all .2s}.sidebar-toggle:hover{background:#ffffff1a;color:#fff;border-color:#fff3}.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid rgba(255,255,255,.06)}.sidebar-logo{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:#fff}.logo-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:linear-gradient(135deg,#667eea33,#764ba233);border-radius:8px;color:#667eea}.logo-text{font-size:1rem;font-weight:600;letter-spacing:-.02em}.sidebar-close{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:transparent;border:none;border-radius:6px;color:#fff6;cursor:pointer;transition:all .15s}.sidebar-close:hover{background:#ffffff1a;color:#fff}.sidebar-nav{flex:1;padding:.75rem 0;overflow-y:auto}.nav-section{padding:0 .5rem;margin-bottom:1rem}.nav-section-title{padding:.3rem .5rem;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#ffffff59}.nav-item{display:flex;align-items:center;gap:.5rem;padding:.45rem .5rem;border-radius:6px;color:#fff9;text-decoration:none;font-size:.875rem;font-weight:500;transition:all .15s;margin-bottom:.1rem;background:transparent;border:none;width:100%;text-align:left;cursor:pointer}.nav-item:hover{background:#ffffff0d;color:#fff}.nav-item.active{background:#667eea26;color:#fff}.nav-item.active svg{color:#667eea}.nav-item svg{flex-shrink:0;opacity:.7}.nav-item:hover svg{opacity:1}.nav-item.active svg{opacity:1}.nav-item.nav-item-project,.nav-item.nav-item-script{font-size:.75rem;padding:.35rem .5rem}.sidebar .nav-item-project .project-name,.sidebar .nav-item-script .script-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem}.sidebar-footer{padding:.75rem;border-top:1px solid rgba(255,255,255,.06)}.sidebar-user-section{position:relative}.sidebar-user-trigger{display:flex;align-items:center;gap:.6rem;width:100%;padding:.5rem;background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:8px;cursor:pointer;transition:all .15s}.sidebar-user-trigger:hover{background:#ffffff0f;border-color:#ffffff1a}.sidebar-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}.sidebar-avatar-placeholder{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:.8rem;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar-user-info{flex:1;min-width:0;text-align:left}.sidebar-user-name{display:block;font-size:.72rem;font-weight:500;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-chevron{color:#fff6;flex-shrink:0}.sidebar-user-dropdown{position:absolute;left:0;right:0;bottom:calc(100% + 6px);background:#1a1a1a;border:1px solid rgba(255,255,255,.1);border-radius:10px;box-shadow:0 8px 32px #0006;padding:.5rem;z-index:1000}.user-info{padding:.5rem .75rem}.user-name{display:block;font-size:.85rem;font-weight:500;color:#fff}.user-email{display:block;font-size:.75rem;color:#ffffff80;margin-top:.15rem}.menu-divider{height:1px;background:#ffffff14;margin:.5rem 0}.menu-item{display:flex;align-items:center;gap:.6rem;width:100%;padding:.5rem .75rem;background:transparent;border:none;border-radius:6px;color:#ffffffb3;font-size:.85rem;cursor:pointer;transition:all .15s;text-align:left}.menu-item svg{flex-shrink:0;opacity:.7}.menu-item:hover svg{opacity:1}@media(max-width:768px){.sidebar{display:none}}.user-menu{position:relative;z-index:10000}.user-menu-trigger{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;background:transparent;cursor:pointer;padding:0;transition:transform .2s}.user-menu-trigger:hover{transform:scale(1.05)}.user-menu-trigger .avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}.user-menu-trigger .avatar-placeholder{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.9rem}.user-menu-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:220px;background:#1a1a1a;border:1px solid rgba(255,255,255,.1);border-radius:12px;box-shadow:0 10px 40px #0006;overflow:hidden;animation:dropdownFadeIn .15s ease;z-index:10001}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.user-info{padding:1rem}.user-name{display:block;color:#fff;font-weight:500;font-size:.95rem;margin-bottom:.25rem}.user-email{display:block;color:#ffffff80;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-divider{height:1px;background:#ffffff1a}.menu-item{display:flex;align-items:center;gap:.75rem;width:100%;padding:.75rem 1rem;border:none;background:transparent;color:#fffc;font-size:.9rem;cursor:pointer;transition:background .2s;text-align:left}.menu-item:hover{background:#ffffff14;color:#fff}.menu-item svg{opacity:.6}.toast{position:fixed;bottom:2rem;left:50%;transform:translate(-50%) translateY(20px);display:flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background:#1a1a1a;color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:8px;box-shadow:0 10px 40px #0006;font-size:.9rem;opacity:0;pointer-events:none;transition:all .3s ease;z-index:1000;cursor:pointer}.toast.visible{opacity:1;transform:translate(-50%) translateY(0);pointer-events:auto}.toast svg{color:#22c55e;flex-shrink:0}.preferences-modal-overlay{position:fixed;inset:0;background:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:2000;padding:2rem;animation:fadeIn .15s ease}.preferences-modal--sidebar{width:100%;max-width:800px;max-height:85vh;background:#141414;border:1px solid rgba(255,255,255,.1);border-radius:16px;display:flex;flex-direction:row;overflow:hidden;animation:modalSlideIn .2s ease;box-shadow:0 25px 80px #0009}.pref-sidebar{width:200px;flex-shrink:0;background:#0000004d;border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column}.pref-sidebar-header{padding:1.25rem 1rem;border-bottom:1px solid rgba(255,255,255,.06)}.pref-sidebar-header h2{color:#fff;font-size:1rem;font-weight:600;margin:0}.pref-sidebar-nav{padding:.75rem .5rem;display:flex;flex-direction:column;gap:.25rem}.pref-nav-item{display:flex;align-items:center;gap:.75rem;padding:.65rem .75rem;background:transparent;border:none;border-radius:8px;color:#fff9;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s;text-align:left}.pref-nav-item:hover{background:#ffffff0d;color:#ffffffd9}.pref-nav-item.active{background:#ffffff1a;color:#fff}.pref-nav-item svg{flex-shrink:0;opacity:.7}.pref-nav-item.active svg{opacity:1}.pref-main{flex:1;display:flex;flex-direction:column;min-width:0}.pref-main-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0}.pref-main-header h3{color:#fff;font-size:1.1rem;font-weight:600;margin:0}.pref-main-content{flex:1;overflow-y:auto;padding:1.5rem}.pref-footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid rgba(255,255,255,.08);background:#0003}.btn-cancel{padding:.6rem 1.25rem;background:transparent;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#ffffffb3;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-cancel:hover{background:#ffffff0d;border-color:#ffffff40;color:#fff}.btn-save{padding:.6rem 1.25rem;background:#a78bfa;border:none;border-radius:8px;color:#fff;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-save:hover{background:#8b6fdb}.section-description{color:#ffffff80;font-size:.85rem;line-height:1.5;margin:0 0 1.5rem}.templates-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.25rem}.template-card{padding:1rem;background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:10px;cursor:pointer;transition:all .15s}.template-card:hover{background:#ffffff0f;border-color:#ffffff26}.template-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.template-card-header h4{color:#fff;font-size:.9rem;font-weight:600;margin:0}.template-count{color:#fff6;font-size:.75rem}.template-preview{display:flex;flex-wrap:wrap;gap:.4rem}.preview-tag{padding:.2rem .5rem;border:1px solid;border-radius:4px;font-size:.7rem;color:#fff}.preview-more{padding:.2rem .4rem;color:#fff6;font-size:.7rem}.btn-create-template{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.85rem;background:#ffffff08;border:1px dashed rgba(255,255,255,.2);border-radius:10px;color:#ffffff80;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-create-template:hover{background:#ffffff0f;border-color:#ffffff59;border-style:solid;color:#fff}.template-editor{animation:slideIn .15s ease}@keyframes slideIn{0%{opacity:0;transform:translate(10px)}to{opacity:1;transform:translate(0)}}.template-editor-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.btn-back{display:flex;align-items:center;gap:.4rem;padding:.4rem .6rem;background:transparent;border:none;border-radius:6px;color:#fff9;font-size:.8rem;cursor:pointer;transition:all .15s}.btn-back:hover{background:#ffffff14;color:#fff}.btn-delete-template{display:flex;align-items:center;gap:.4rem;padding:.4rem .6rem;background:transparent;border:none;border-radius:6px;color:#ef4444b3;font-size:.8rem;cursor:pointer;transition:all .15s}.btn-delete-template:hover{background:#ef44441a;color:#ef4444}.template-options-section{margin-top:1.5rem}.template-options-section>label{display:block;color:#ffffffb3;font-size:.85rem;font-weight:500;margin-bottom:.75rem}.template-options-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.template-option-row{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:8px}.color-dot{width:20px;height:20px;border-radius:50%;cursor:pointer;border:1px solid rgba(255,255,255,.15);position:relative;flex-shrink:0;transition:transform .1s}.color-dot:hover{transform:scale(1.1)}.option-name-input{flex:1;background:transparent;border:none;color:#fff;font-size:.85rem;outline:none}.option-name-input::placeholder{color:#ffffff4d}.btn-delete-option{display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:transparent;border:none;border-radius:4px;color:#ffffff4d;cursor:pointer;transition:all .15s}.btn-delete-option:hover{background:#ef44441a;color:#ef4444}.btn-add-option{display:flex;align-items:center;gap:.5rem;padding:.6rem .75rem;background:transparent;border:1px dashed rgba(255,255,255,.15);border-radius:8px;color:#ffffff80;font-size:.8rem;cursor:pointer;transition:all .15s}.btn-add-option:hover{background:#ffffff0d;border-color:#ffffff4d;border-style:solid;color:#fff}.template-editor-footer{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.06)}.color-picker-popover{position:absolute;top:28px;left:0;z-index:100;background:#222;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:.6rem;display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;box-shadow:0 10px 25px #00000080}.color-swatch{width:20px;height:20px;border-radius:4px;cursor:pointer;border:1px solid rgba(255,255,255,.1);transition:transform .1s}.connection-card{background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:12px;overflow:hidden}.connection-header{display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;background:#ffffff05;border-bottom:1px solid rgba(255,255,255,.06)}.connection-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#ffffff0d;border-radius:10px}.connection-info h4{color:#fff;font-size:.95rem;font-weight:600;margin:0 0 .15rem}.connection-info p{color:#ffffff80;font-size:.8rem;margin:0}.connection-body{padding:1.25rem}.form-group label{display:flex;align-items:center;gap:.75rem;color:#ffffffb3;font-size:.85rem;font-weight:500;margin-bottom:.5rem}.help-link-inline{display:inline-flex;align-items:center;gap:.25rem;color:#fcb400;font-size:.75rem;font-weight:400;text-decoration:none;transition:color .2s}.help-link-inline:hover{color:#ffc933}.input-with-toggle{display:flex;align-items:center;gap:.5rem}.pref-input{flex:1;padding:.65rem .9rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:.875rem;outline:none;transition:border-color .2s,background .2s}.pref-input:focus{border-color:#a78bfa;background:#ffffff14}.pref-input::placeholder{color:#ffffff4d}.btn-toggle-visibility{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#ffffff80;cursor:pointer;transition:all .2s}.btn-toggle-visibility:hover{background:#ffffff1a;color:#fff}.pref-note{display:flex;align-items:flex-start;gap:.6rem;margin-top:1rem;padding:.85rem;background:#ffffff05;border:1px solid rgba(255,255,255,.06);border-radius:8px;color:#ffffff73;font-size:.78rem;line-height:1.4}.pref-note svg{flex-shrink:0;margin-top:1px;opacity:.5}@media(max-width:700px){.preferences-modal-overlay{padding:1rem}.preferences-modal--sidebar{flex-direction:column;max-height:90vh}.pref-sidebar{width:100%;border-right:none;border-bottom:1px solid rgba(255,255,255,.08)}.pref-sidebar-nav{flex-direction:row;overflow-x:auto}.pref-nav-item{white-space:nowrap}.pref-main-content{padding:1rem}}.app-layout{min-height:100vh;display:flex;background:#0a0a0a}.main-wrapper{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}.top-bar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;background:#0f0f0ff2;border-bottom:1px solid rgba(255,255,255,.06);flex-shrink:0}.top-bar-left,.top-bar-right{display:flex;align-items:center;gap:1rem}.save-status{font-size:.8rem;color:#667eea;padding:.25rem .75rem;border-radius:4px;background:#667eea1a;animation:pulse 1.5s infinite}.main-content{flex:1;display:flex;flex-direction:column;overflow-y:auto;padding:2rem}.app-layout:has(.script-page) .main-content{padding:0;overflow:hidden}.app-layout:has(.script-page){height:100vh;overflow:hidden}.app-layout:has(.script-page) .top-bar{display:none}@media(max-width:768px){.main-content{padding:1rem}.top-bar{padding:0 1rem}}.landing-page{min-height:100vh;background:#0a0a0a;color:#fff;overflow-x:hidden;position:relative}.landing-bg{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}.blob{position:absolute;border-radius:50%;filter:blur(100px);opacity:.4;animation:blobFloat 20s ease-in-out infinite}.blob-1{width:600px;height:600px;background:linear-gradient(135deg,#667eea,#764ba2);top:-200px;right:-100px;animation-delay:0s}.blob-2{width:400px;height:400px;background:linear-gradient(135deg,#f472b6,#a78bfa);bottom:20%;left:-100px;animation-delay:-7s}.blob-3{width:300px;height:300px;background:linear-gradient(135deg,#34d399,#60a5fa);top:50%;right:10%;animation-delay:-14s}@keyframes blobFloat{0%,to{transform:translate(0) scale(1)}25%{transform:translate(30px,-30px) scale(1.05)}50%{transform:translate(-20px,20px) scale(.95)}75%{transform:translate(20px,30px) scale(1.02)}}.grid-overlay{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);background-size:60px 60px}.landing-nav{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;background:#0a0a0acc;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.06)}.nav-logo{display:flex;align-items:center;gap:.75rem;font-weight:600;font-size:1.125rem}.nav-logo svg{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:8px;padding:4px}.nav-signin{display:flex;align-items:center;gap:.5rem;background:#ffffff14;border:1px solid rgba(255,255,255,.12);color:#fff;padding:.5rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.nav-signin:hover{background:#ffffff1f;border-color:#fff3}.nav-signin svg{flex-shrink:0}.hero{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:7rem 2rem 4rem;position:relative;z-index:1}.hero-content{max-width:720px;text-align:center;margin-bottom:2.5rem}.hero-badge{display:inline-flex;align-items:center;gap:.5rem;background:#667eea26;border:1px solid rgba(102,126,234,.3);padding:.5rem 1rem;border-radius:100px;font-size:.875rem;color:#a78bfa;margin-bottom:2rem;animation:fadeInUp .6s ease backwards}.badge-dot{width:8px;height:8px;background:#a78bfa;border-radius:50%;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.hero-title{font-size:clamp(2rem,5vw,3.5rem);font-weight:700;line-height:1.2;margin-bottom:1.5rem;animation:fadeInUp .6s ease .1s backwards}.title-gradient{background:linear-gradient(135deg,#667eea,#a78bfa,#f472b6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;white-space:nowrap}.hero-subtitle{font-size:1.125rem;color:#fff9;line-height:1.7;max-width:560px;margin:0 auto 2.5rem;animation:fadeInUp .6s ease .2s backwards}.hero-subtitle em{color:#ffffffe6;font-style:normal;font-weight:500}.hero-cta{display:flex;flex-direction:column;align-items:center;gap:1rem;animation:fadeInUp .6s ease .3s backwards}.btn-primary{display:inline-flex;align-items:center;gap:.75rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:1rem 2rem;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 20px #667eea66}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px #667eea80}.btn-primary:active{transform:translateY(0)}.btn-large{padding:1.25rem 2.5rem;font-size:1.125rem}.cta-subtext{font-size:.875rem;color:#fff6}.hero-visual{position:relative;width:100%;max-width:900px;animation:fadeInUp .8s ease .4s backwards}.visual-window{background:#141414e6;border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden;box-shadow:0 20px 60px #00000080}.window-header{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:#1e1e1ecc;border-bottom:1px solid rgba(255,255,255,.06)}.window-dots{display:flex;gap:6px}.window-dots span{width:10px;height:10px;border-radius:50%;background:#ffffff26}.window-dots span:first-child{background:#ff5f57}.window-dots span:nth-child(2){background:#ffbd2e}.window-dots span:nth-child(3){background:#28ca42}.window-title{font-size:.75rem;color:#ffffff80}.window-content{display:grid;grid-template-columns:1fr 280px;min-height:280px}.fake-editor{padding:1.5rem;font-family:SF Mono,Fira Code,monospace;font-size:.875rem}.editor-line{display:flex;align-items:flex-start;gap:1rem;padding:.25rem 0;color:#fffc}.line-num{color:#fff3;min-width:1.5rem;text-align:right;-webkit-user-select:none;user-select:none}.highlight{padding:2px 6px;border-radius:4px;animation:highlightPulse 3s ease-in-out infinite}.highlight-real{background:#fbbf2440;color:#fbbf24}.highlight-ai{background:#a78bfa40;color:#a78bfa}.highlight-interview{background:#60a5fa40;color:#60a5fa}@keyframes highlightPulse{0%,to{opacity:1}50%{opacity:.7}}.fake-sidebar{border-left:1px solid rgba(255,255,255,.06);padding:1rem;background:#0f0f0f80}.sidebar-title{font-size:.75rem;font-weight:600;color:#fff6;text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem}.shot-item{display:flex;flex-direction:column;gap:.25rem;padding:.75rem;border-radius:8px;margin-bottom:.5rem;background:#ffffff08;border:1px solid rgba(255,255,255,.06);animation:slideInRight .5s ease backwards}.shot-item:nth-child(2){animation-delay:.6s}.shot-item:nth-child(3){animation-delay:.8s}.shot-item:nth-child(4){animation-delay:1s}@keyframes slideInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.shot-badge{font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;padding:2px 6px;border-radius:4px;width:fit-content}.shot-real .shot-badge{background:#fbbf2433;color:#fbbf24}.shot-ai .shot-badge{background:#a78bfa33;color:#a78bfa}.shot-interview .shot-badge{background:#60a5fa33;color:#60a5fa}.shot-text{font-size:.8125rem;color:#ffffffb3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.visual-glow{position:absolute;bottom:-100px;left:50%;transform:translate(-50%);width:80%;height:200px;background:linear-gradient(135deg,#667eea,#764ba2);filter:blur(100px);opacity:.3;z-index:-1}.section{position:relative;z-index:1;padding:8rem 2rem}.section-content{max-width:1100px;margin:0 auto}.section-title{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:700;margin-bottom:1rem;display:flex;align-items:center;gap:1rem}.title-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:#ffffff0d;border-radius:10px}.title-icon svg{width:24px;height:24px;stroke:#a78bfa}.section-subtitle{font-size:1.125rem;color:#fff9;max-width:600px;line-height:1.7}.section-subtitle em{color:#fff;font-style:normal;font-weight:500}.section-problem{background:linear-gradient(180deg,transparent 0%,rgba(20,20,20,.5) 50%,transparent 100%)}.problem-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-top:3rem}.problem-card{background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:2rem;transition:all .3s ease}.problem-card:hover{background:#ffffff0d;border-color:#ffffff1a;transform:translateY(-4px)}.problem-icon{width:48px;height:48px;background:#ef44441a;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem}.problem-icon svg{width:24px;height:24px;stroke:#ef4444}.problem-card h3{font-size:1.125rem;font-weight:600;margin-bottom:.75rem}.problem-card p{font-size:.9375rem;color:#fff9;line-height:1.6}.section-solution{padding-top:6rem}.solution-header{text-align:center;margin-bottom:4rem}.solution-header .section-title{justify-content:center}.solution-header .section-subtitle{margin:1rem auto 0}.features-showcase{display:flex;flex-direction:column;gap:4rem}.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}.feature-row-reverse{direction:rtl}.feature-row-reverse>*{direction:ltr}.feature-text{max-width:480px}.feature-number{font-size:.875rem;font-weight:700;color:#667eea;margin-bottom:1rem;letter-spacing:.1em}.feature-text h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.feature-text p{font-size:1rem;color:#fff9;line-height:1.7}.feature-text kbd{display:inline-block;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:.125rem .5rem;font-family:SF Mono,Fira Code,monospace;font-size:.875rem}.feature-visual{display:flex;align-items:center;justify-content:center}.demo-highlight{position:relative;background:#141414cc;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:2rem}.demo-text{font-size:1rem;background:#667eea33;padding:4px 8px;border-radius:4px;border:2px solid #667eea}.demo-popup{position:absolute;top:100%;left:50%;transform:translate(-50%);display:flex;gap:.5rem;margin-top:1rem;background:#1e1e1ef2;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:.5rem;animation:popupBounce .4s ease backwards}@keyframes popupBounce{0%{opacity:0;transform:translate(-50%) translateY(-10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.popup-option{padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.popup-real{background:#60a5fa26;color:#60a5fa}.popup-ai{background:#a78bfa26;color:#a78bfa}.popup-stock{background:#34d39926;color:#34d399}.demo-layers{display:flex;gap:.25rem;background:#141414cc;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:.5rem}.layer-tab{padding:.75rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:500;color:#ffffff80;transition:all .2s ease;cursor:pointer}.layer-tab:hover{color:#fffc;background:#ffffff0d}.layer-active{background:#667eea33;color:#a78bfa}.demo-export{display:flex;flex-direction:column;gap:1rem;align-items:center}.export-btn{display:flex;align-items:center;gap:.75rem;background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem 1.5rem;border-radius:10px;font-weight:500;cursor:pointer;transition:all .3s ease}.export-btn svg{width:20px;height:20px}.export-btn:hover{transform:translateY(-2px);box-shadow:0 8px 30px #667eea66}.export-success{display:flex;align-items:center;gap:.5rem;color:#34d399;font-size:.875rem;animation:fadeIn .3s ease .5s backwards}.export-success svg{width:16px;height:16px}.section-audience{background:linear-gradient(180deg,transparent 0%,rgba(102,126,234,.05) 50%,transparent 100%)}.section-audience .section-title{text-align:center;justify-content:center;max-width:600px;margin:0 auto 3rem}.audience-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}.audience-card{background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:2rem;text-align:center;transition:all .3s ease}.audience-card:hover{background:#ffffff0d;border-color:#ffffff1a;transform:translateY(-4px)}.audience-emoji{font-size:2.5rem;margin-bottom:1rem}.audience-card h3{font-size:1.125rem;font-weight:600;margin-bottom:.5rem}.audience-card p{font-size:.9375rem;color:#fff9;line-height:1.5}.section-cta{padding:6rem 2rem 8rem}.cta-box{background:linear-gradient(135deg,#667eea26,#764ba226);border:1px solid rgba(102,126,234,.3);border-radius:24px;padding:4rem;text-align:center}.cta-box h2{font-size:clamp(1.5rem,4vw,2rem);font-weight:700;margin-bottom:1rem}.cta-box p{font-size:1.125rem;color:#fff9;margin-bottom:2rem}.landing-footer{border-top:1px solid rgba(255,255,255,.06);padding:3rem 2rem;position:relative;z-index:1}.footer-content{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:1.5rem;text-align:center}.footer-logo{display:flex;align-items:center;gap:.5rem;font-weight:600}.footer-logo svg{opacity:.6}.footer-made{font-size:.875rem;color:#ffffff80}.footer-made a{color:#a78bfa;text-decoration:none;transition:color .2s ease}.footer-made a:hover{color:#c4b5fd}.footer-copy{font-size:.8125rem;color:#ffffff4d}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media(max-width:900px){.window-content{grid-template-columns:1fr}.fake-sidebar{display:none}.feature-row,.feature-row-reverse{grid-template-columns:1fr;gap:2rem;direction:ltr}.feature-row-reverse .feature-visual{order:2}}@media(max-width:640px){.landing-nav{padding:1rem}.hero{padding:5rem 1.5rem 3rem}.hero-content{margin-bottom:1.5rem}.hero-badge{font-size:.8125rem;padding:.375rem .875rem}.section{padding:5rem 1.5rem}.problem-grid,.audience-grid{grid-template-columns:1fr}.cta-box{padding:2.5rem 1.5rem}.btn-primary{width:100%;justify-content:center}}.project-card{display:flex;flex-direction:column;padding:1.5rem;background:#ffffff05;border:1px solid rgba(255,255,255,.08);border-radius:16px;cursor:pointer;transition:all .4s cubic-bezier(.175,.885,.32,1.275);position:relative;overflow:visible;min-height:180px;justify-content:space-between}.project-card:hover{background:#ffffff0d;border-color:#667eea80;transform:translateY(-4px)}.card-glow{position:absolute;top:50%;left:50%;width:60%;height:60%;background:radial-gradient(circle,rgba(102,126,234,.3) 0%,transparent 70%);transform:translate(-50%,-50%);filter:blur(40px);opacity:0;transition:opacity .4s;pointer-events:none;z-index:1}.project-card:hover .card-glow{opacity:1}.project-card-header{display:flex;justify-content:space-between;align-items:flex-start;z-index:2}.project-card-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,#667eea26,#764ba226);color:#667eea;border:1px solid rgba(102,126,234,.1)}.project-card-actions{position:relative}.btn-card-menu{background:transparent;border:none;color:#ffffff4d;cursor:pointer;padding:6px;border-radius:8px;transition:all .2s}.card-dropdown{position:absolute;top:100%;right:0;margin-top:.5rem;background:#1e1e1e;border:1px solid rgba(255,255,255,.15);border-radius:12px;box-shadow:0 10px 30px #000c;z-index:1000;min-width:140px;overflow:visible;padding:.4rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.project-card-content{z-index:2}.project-name{color:#fff;font-size:1.15rem;font-weight:600;margin-bottom:.4rem}.project-meta{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.project-scripts{color:#ffffff80;font-size:.8rem}.meta-separator{color:#ffffff40;font-size:.7rem}.project-date{color:#fff6;font-size:.8rem}.card-rename-input{background:#ffffff0d;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#fff;font-size:1.1rem;font-weight:600;padding:.2rem .4rem;width:100%;outline:none}.dashboard-page{width:100%}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:2rem}.dashboard-header h1{color:#fff;font-size:1.35rem;font-weight:600;margin:0 0 .25rem}.dashboard-header .subtitle{color:#ffffff80;font-size:.85rem;margin:0}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;padding:2rem}.empty-icon{display:flex;align-items:center;justify-content:center;width:120px;height:120px;border-radius:24px;background:#ffffff0d;margin-bottom:1.5rem}.empty-icon svg{color:#ffffff4d}.empty-state h2{color:#fff;font-size:1.5rem;font-weight:600;margin:0 0 .5rem}.empty-state p{color:#ffffff80;font-size:1rem;margin:0 0 1.5rem;max-width:300px}.btn-secondary:hover{background:#ffffff26}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .15s ease}.modal{width:100%;max-width:400px;background:#1a1a1a;border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;animation:modalSlideIn .2s ease}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.form-group{margin-bottom:1rem}.form-group:last-child{margin-bottom:0}.form-group label{display:block;color:#ffffffb3;font-size:.85rem;font-weight:500;margin-bottom:.5rem}.form-group input{width:100%;padding:.75rem 1rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:.95rem;transition:all .2s}.form-group input:focus{outline:none;border-color:#667eea;background:#ffffff14}.form-group input::placeholder{color:#ffffff4d}.modal-danger{border-color:#ef444433}.modal-danger .modal-header h3{color:#ef4444}.danger-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:#ef44441a;color:#ef4444;border-radius:12px;margin-right:1rem}.danger-text{color:#fff;font-size:1.1rem;margin-bottom:1rem}.modal-description{color:#ffffff80;font-size:.9rem;margin-bottom:.75rem}.delete-items-list{margin:0 0 1.5rem;padding-left:1.25rem;color:#ffffffb3;font-size:.9rem}.delete-items-list li{margin-bottom:.5rem}@media(max-width:768px){.dashboard-header{flex-direction:column;gap:1rem}.dashboard-header .btn-primary{width:100%;justify-content:center}.projects-grid{grid-template-columns:1fr}}.script-card{display:flex;flex-direction:column;padding:1.25rem;background:#ffffff05;border:1px solid rgba(255,255,255,.08);border-radius:16px;cursor:pointer;transition:all .4s cubic-bezier(.175,.885,.32,1.275);position:relative;overflow:visible;min-height:220px;width:180px;justify-content:space-between}.script-card:hover{background:#ffffff0d;border-color:#667eea80;transform:translateY(-4px)}.script-card:before{content:"";position:absolute;top:50%;left:50%;width:60%;height:60%;background:radial-gradient(circle,rgba(102,126,234,.3) 0%,transparent 70%);transform:translate(-50%,-50%);filter:blur(40px);opacity:0;transition:opacity .4s;pointer-events:none;z-index:1}.script-card:hover:before{opacity:1}.script-card-stack{position:relative;width:100%;height:120px;display:flex;align-items:center;justify-content:center;z-index:2}.stack-page{position:absolute;width:90px;height:110px;background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:6px;transition:all .3s ease}.stack-page-3{transform:rotate(-3deg);top:8px;background:#ffffff05;z-index:1}.stack-page-2{transform:rotate(2deg);top:4px;background:#ffffff08;z-index:2}.stack-page-1{transform:rotate(0);top:0;background:#ffffff0d;border-color:#ffffff1f;z-index:3;padding:12px 10px;display:flex;flex-direction:column}.script-card:hover .stack-page-3{transform:rotate(-5deg) translateY(-2px)}.script-card:hover .stack-page-2{transform:rotate(3deg) translateY(-1px)}.script-card:hover .stack-page-1{border-color:#667eea4d}.doc-lines{display:flex;flex-direction:column;gap:6px}.doc-line{height:4px;background:#ffffff14;border-radius:2px;width:100%}.doc-line-title{height:6px;width:55%;background:#ffffff1f;margin-bottom:3px}.doc-line-short{width:40%}.doc-line-medium{width:65%}.script-card-actions{position:absolute;top:.75rem;right:.75rem;z-index:10}.btn-card-menu{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:transparent;border:none;border-radius:8px;color:#ffffff4d;cursor:pointer;transition:all .2s}.btn-card-menu:hover{background:#ffffff14;color:#fff}.card-dropdown{position:absolute;top:100%;right:0;margin-top:.5rem;background:#1e1e1e;border:1px solid rgba(255,255,255,.12);border-radius:12px;box-shadow:0 10px 30px #0009;z-index:100;min-width:140px;overflow:hidden;padding:.4rem}.card-dropdown button{display:flex;align-items:center;gap:.6rem;width:100%;text-align:left;padding:.6rem .8rem;background:transparent;border:none;color:#ffffffb3;font-size:.85rem;cursor:pointer;border-radius:8px;transition:all .2s}.card-dropdown button svg{opacity:.6}.card-dropdown button:hover{background:#ffffff0d;color:#fff}.card-dropdown button:hover svg{opacity:1}.card-dropdown button.delete:hover{color:#ef4444;background:#ef44441a}.card-dropdown button.delete:hover svg{color:#ef4444}.dropdown-divider{height:1px;background:#ffffff14;margin:.4rem}.script-card-footer{z-index:2;text-align:center}.script-name{color:#fff;font-size:1rem;font-weight:600;margin:0 0 .35rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.script-date{color:#fff6;font-size:.75rem;display:block}.card-rename-input{background:#ffffff0d;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#fff;font-size:1rem;font-weight:600;padding:.25rem .5rem;width:100%;outline:none;text-align:center;transition:border-color .2s}.card-rename-input:focus{border-color:#667eea}@media(max-width:768px){.script-card{width:160px;min-height:200px}.script-card-stack{height:100px}.stack-page{width:80px;height:95px}.script-name{font-size:.95rem}}.settings-overlay{position:fixed;inset:0;background:#00000080;z-index:1000;animation:fadeIn .2s ease-out}.project-settings-panel{position:fixed;top:0;right:0;width:400px;max-width:90vw;height:100vh;background:#1a1a1a;border-left:1px solid rgba(255,255,255,.1);z-index:1001;display:flex;flex-direction:column;transform:translate(100%);transition:transform .3s ease-out}.project-settings-panel.open{transform:translate(0)}.settings-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.1);background:#1a1a1a;position:sticky;top:0}.settings-header h2{font-size:1.1rem;font-weight:600;color:#fff;margin:0}.btn-close{background:transparent;border:none;color:#ffffff80;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s}.btn-close:hover{color:#fff;background:#ffffff1a}.settings-content{flex:1;overflow-y:auto;padding:1.25rem}.settings-section{margin-bottom:2rem}.settings-section .section-header{margin-bottom:1rem}.settings-section .section-header h3{font-size:.95rem;font-weight:600;color:#fff;margin:0 0 .35rem}.settings-section .section-header p{font-size:.8rem;color:#fff6;margin:0;line-height:1.4}.shot-types-list{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.75rem}.shot-type-row{display:flex;align-items:center;gap:.5rem;padding:.35rem .5rem;background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:6px;transition:all .2s;position:relative;z-index:1}.shot-type-row:has(.color-picker){z-index:10}.shot-type-row:hover{background:#ffffff0d;border-color:var(--row-color, rgba(255, 255, 255, .15))}.color-dot{width:18px;height:18px;border-radius:4px;cursor:pointer;border:2px solid rgba(255,255,255,.1);position:relative;flex-shrink:0;transition:all .2s}.color-dot:hover{border-color:#ffffff4d;transform:scale(1.1)}.type-name-input{flex:1;background:transparent;border:none;color:#fff;font-size:.8rem;font-weight:500;outline:none;min-width:0}.type-name-input::placeholder{color:#ffffff4d}.type-name-input:focus{color:#fff}.btn-delete-type{background:transparent;border:none;color:#fff3;cursor:pointer;padding:3px;display:flex;align-items:center;justify-content:center;border-radius:4px;opacity:0;transition:all .2s}.btn-delete-type svg{width:12px;height:12px}.shot-type-row:hover .btn-delete-type{opacity:1}.btn-delete-type:hover{color:#ef4444;background:#ef44441a}.color-picker{position:absolute;top:calc(100% + 6px);left:0;z-index:1010;background:#222;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:.5rem;display:grid;grid-template-columns:repeat(5,1fr);gap:.35rem;box-shadow:0 10px 30px #00000080;animation:popIn .15s ease-out}@keyframes popIn{0%{opacity:0;transform:scale(.9) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.color-swatch{width:18px;height:18px;border-radius:4px;cursor:pointer;border:2px solid transparent;transition:all .15s}.color-swatch:hover{transform:scale(1.15);border-color:#ffffff4d}.color-swatch.active{border-color:#fff;box-shadow:0 0 0 2px #fff3}.btn-add-type{display:flex;align-items:center;justify-content:center;gap:.35rem;width:100%;padding:.45rem;background:#ffffff08;border:1px dashed rgba(255,255,255,.2);border-radius:6px;color:#ffffff80;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-add-type svg{width:12px;height:12px}.btn-add-type:hover{background:#ffffff0f;border-color:#fff6;color:#fff}.settings-section .form-group{margin-bottom:1rem}.settings-section .form-group label{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;color:#ffffffb3;font-size:.85rem;font-weight:500;margin-bottom:.5rem}.settings-section .form-group .label-hint{font-weight:400;color:#fff6;font-size:.75rem}.settings-section .form-group .label-hint strong{color:#fcb400cc;font-weight:500}.settings-input{width:100%;padding:.65rem .9rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:.875rem;outline:none;transition:border-color .2s,background .2s}.settings-input:focus{border-color:#fcb400;background:#ffffff14}.settings-input::placeholder{color:#ffffff4d}.settings-note{display:flex;align-items:flex-start;gap:.6rem;margin-top:1rem;padding:.75rem;background:#ffffff05;border:1px solid rgba(255,255,255,.06);border-radius:8px;color:#ffffff73;font-size:.78rem;line-height:1.4}.settings-note svg{flex-shrink:0;margin-top:1px;opacity:.5}.settings-section .section-header h3{display:flex;align-items:center}.skeleton{background:linear-gradient(90deg,#ffffff0a,#ffffff14,#ffffff0a);background-size:200% 100%;animation:shimmer 1.5s infinite ease-in-out;border-radius:4px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-text{height:14px;margin-bottom:.5rem}.skeleton-title{height:24px;margin-bottom:.75rem}.skeleton-card{height:100%;border-radius:8px}.skeleton-avatar{width:40px;height:40px;border-radius:50%}.skeleton-button,.skeleton-tab{width:80px;height:32px;border-radius:6px}.skeleton-tab-add{width:32px;height:32px;border-radius:6px}.skeleton-cell{height:16px;flex:1}.skeleton-table-header{height:40px;margin-bottom:.5rem}.script-card-skeleton{display:flex;flex-direction:column;gap:.75rem}.skeleton-stack{aspect-ratio:4/3;border-radius:8px;overflow:hidden}.skeleton-footer{padding:.25rem 0}.table-row-skeleton{display:flex;align-items:center;gap:1rem;padding:.75rem .5rem;border-bottom:1px solid rgba(255,255,255,.05)}.script-page-skeleton{display:flex;flex-direction:column;height:100%;padding:0}.skeleton-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid rgba(255,255,255,.08)}.skeleton-toolbar-right{display:flex;gap:.5rem}.skeleton-tabs{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-bottom:1px solid rgba(255,255,255,.08)}.skeleton-content{display:flex;flex:1;overflow:hidden}.skeleton-editor{flex:1;padding:2rem;display:flex;flex-direction:column;gap:.75rem}.skeleton-table{width:400px;border-left:1px solid rgba(255,255,255,.08);padding:1rem}.project-page-skeleton{padding:2rem}.skeleton-header{display:flex;align-items:center;gap:1rem;margin-bottom:2.5rem}.skeleton-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.5rem}.project-page{width:100%;padding:2rem}.project-page.loading,.project-page.error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center}.project-page.loading p,.project-page.error h2{color:#fff9;margin-bottom:1.5rem}.project-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2.5rem}.header-left{display:flex;align-items:center;gap:1rem}.project-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#a78bfa33,#8b5cf633);color:#a78bfa;flex-shrink:0}.header-title h1{color:#fff;font-size:1.25rem;font-weight:600;margin:0;line-height:1.2}.header-subtitle{color:#fff6;font-size:.8rem}.header-right{display:flex;align-items:center;gap:.5rem}.btn-header{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:transparent;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#ffffff80;cursor:pointer;transition:all .2s;text-decoration:none}.btn-header:hover{background:#ffffff0d;border-color:#fff3;color:#fff}.scripts-container{width:100%}.scripts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.5rem}.script-card-new{border-style:dashed;border-color:#ffffff26;background:transparent}.script-card-new:hover{border-color:#667eea80;background:#667eea0d}.script-card-new .stack-page-ghost{background:transparent;border:1px dashed rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center}.script-card-new:hover .stack-page-ghost{border-color:#667eea4d}.script-card-new .stack-page-3,.script-card-new .stack-page-2{background:transparent;border:1px dashed rgba(255,255,255,.06)}.new-script-icon{color:#ffffff4d;transition:color .2s}.script-card-new:hover .new-script-icon{color:#667eea}.script-card-new .script-name{color:#ffffff80}.script-card-new:hover .script-name{color:#fff}.script-card-new.creating{pointer-events:none;opacity:.7}.creating-spinner{width:24px;height:24px;border:2px solid rgba(102,126,234,.2);border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}.modal-overlay{position:fixed;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal{width:100%;max-width:420px;background:#1a1a1a;border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;box-shadow:0 20px 60px #00000080}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.08)}.modal-header h3{color:#fff;font-size:1.1rem;font-weight:600;margin:0}.modal-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:8px;background:transparent;color:#ffffff80;cursor:pointer;transition:all .2s}.modal-close:hover{background:#ffffff1a;color:#fff}.modal-body{padding:1.5rem}.modal-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid rgba(255,255,255,.08)}.btn-primary{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 20px #667eea66}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.15);border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:#ffffff26;border-color:#ffffff40}.modal-create .modal-header{gap:.75rem}.modal-create .modal-header h3{flex:1}.create-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#667eea33,#764ba233);color:#667eea}.modal-create .form-group{margin-bottom:1rem}.modal-create .form-group label{display:block;color:#ffffffb3;font-size:.85rem;font-weight:500;margin-bottom:.5rem}.modal-create .form-group input{width:100%;padding:.75rem 1rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:.95rem;outline:none;transition:all .2s}.modal-create .form-group input:focus{border-color:#667eea;background:#ffffff14}.modal-create .form-group input::placeholder{color:#ffffff4d}.modal-context{display:flex;align-items:center;gap:.5rem;margin:0;padding:.75rem;background:#ffffff08;border-radius:6px;font-size:.85rem}.context-label{color:#ffffff80}.context-value{color:#fffc;font-weight:500}.modal-danger .modal-header{flex-direction:column;align-items:center;text-align:center;padding:2rem 1.5rem 1rem}.danger-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#ef44441a;color:#ef4444;margin-bottom:1rem}.modal-danger .modal-close{position:absolute;top:1rem;right:1rem}.danger-text{color:#fff;font-size:.95rem;margin:0 0 1rem}.modal-description{color:#fff9;font-size:.9rem;margin:0 0 .5rem}.final-warning{color:#ef4444;font-weight:600;font-size:.9rem;margin:0}.btn-danger{padding:.75rem 1.25rem;background:#ef4444;color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-danger:hover{background:#dc2626;box-shadow:0 4px 15px #ef444466}@media(max-width:768px){.project-page{padding:1rem}.project-header{flex-direction:column;align-items:flex-start;gap:1rem}.header-right{width:100%;justify-content:flex-end}.scripts-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}}@keyframes popIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.selection-popup{position:fixed;z-index:10001;animation:popIn .15s ease-out;pointer-events:auto}.popup-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;background-color:var(--accent-blue, #3b82f6);border:none;border-radius:50%;color:#fff;cursor:pointer;box-shadow:0 4px 12px #3b82f666;transition:all .15s;outline:none}.popup-btn:hover{background-color:var(--accent-blue-hover, #2563eb);transform:scale(1.1)}.popup-btn:active{transform:scale(.95)}@keyframes popupFadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes popupWiggle{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-2px)}80%{transform:translate(2px)}}.inline-editor-popup{position:fixed;z-index:99999;width:280px;background:#1e1e1e;border:1px solid #3a3a3a;border-radius:8px;box-shadow:0 4px 12px #0006,0 0 0 1px #ffffff0d;animation:popupFadeIn .15s ease-out;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.inline-editor-popup.wiggle{animation:popupWiggle .4s ease-in-out}.inline-editor-textarea{display:block;box-sizing:border-box;width:100%;min-height:44px;max-height:180px;margin:0;padding:12px 14px;font-family:inherit;font-size:13px;line-height:1.5;color:#fff;background:transparent;border:none;border-bottom:1px solid #3a3a3a;border-radius:8px 8px 0 0;outline:none;resize:none;overflow-y:auto}.inline-editor-textarea:focus{background:#ffffff05}.inline-editor-textarea::placeholder{color:#666}.inline-tags-row{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px}.inline-tag-chip{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;font-family:inherit;font-size:11px;font-weight:500;line-height:1.2;text-align:center;white-space:nowrap;border:1px solid;border-radius:12px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:opacity .1s,transform .1s,background-color .1s;outline:none}.inline-tag-chip:hover{opacity:.85}.inline-tag-chip:active{transform:scale(.96)}.inline-tag-chip.selected{font-weight:600}.inline-editor-actions{display:flex;justify-content:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #3a3a3a}.inline-btn{padding:6px 16px;font-family:inherit;font-size:12px;font-weight:500;border:none;border-radius:5px;cursor:pointer;transition:background .1s,opacity .1s;outline:none}.inline-btn-cancel{background:transparent;color:#888}.inline-btn-cancel:hover{background:#ffffff1a;color:#fff}.inline-btn-confirm{background:#3b82f6;color:#fff}.inline-btn-confirm:hover{background:#2563eb}.inline-btn-confirm:active{background:#1d4ed8}.inline-delete-icon{position:absolute;top:-10px;right:-10px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:#2a2a2a;border:1px solid #4a4a4a;border-radius:50%;color:#888;cursor:pointer;transition:all .15s;outline:none;z-index:1}.inline-delete-icon:hover{background:#3a2020;border-color:#dc2626;color:#ef4444}.inline-delete-icon:active{transform:scale(.92)}.inline-delete-icon svg{width:12px;height:12px}.hover-card{position:fixed;z-index:10000;pointer-events:none;background:#141414f2;border:1px solid rgba(255,255,255,.1);border-radius:5px;padding:5px 8px;box-shadow:0 4px 12px #0006;max-width:320px;transform:translateY(-100%) translateY(-8px);display:flex;align-items:flex-start;gap:8px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:hoverCardFadeIn .1s ease-out}@keyframes hoverCardFadeIn{0%{opacity:0;transform:translateY(-100%) translateY(-4px)}to{opacity:1;transform:translateY(-100%) translateY(-8px)}}.hover-card .type-tag{flex-shrink:0;padding:2px 6px;border-radius:3px;font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#fff;background:color-mix(in srgb,var(--type-color, rgba(255, 255, 255, .2)) 60%,black);white-space:nowrap}.hover-card .hover-text{color:#fffc;font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.script-editor{flex:1;padding:32px 48px;font-size:16px;line-height:1.8;color:var(--text-primary, #fff);background-color:transparent;outline:none;white-space:pre-wrap;word-wrap:break-word;min-height:100%}.script-editor:empty:before{content:"Paste your script to get started\a\aHighlight text and press ⌘K to annotate it. Configure type categories using the gear icon in the table header. Create new layers to organize different annotation types.";white-space:pre-wrap;color:var(--text-tertiary, #555);pointer-events:none;font-size:.95rem;line-height:1.8;display:block;max-width:400px;-webkit-user-select:none;user-select:none}.script-editor:focus{outline:none}.script-editor h1,.script-editor h2,.script-editor h3,.script-editor h4,.script-editor h5,.script-editor h6{color:var(--text-primary, #fff);font-weight:600;margin:12px 0}.script-editor h1{font-size:1.8em}.script-editor h2{font-size:1.5em}.script-editor h3{font-size:1.25em}.script-editor a{color:var(--accent-blue, #3b82f6);text-decoration:underline}.script-editor p{margin:0 0 8px}.shot-highlight,.layer-highlight{background-color:var(--highlight-bg, rgba(59, 130, 246, .3));padding:1px 2px;margin:0 -1px;border-radius:3px;cursor:pointer;transition:background-color .15s ease;position:relative;display:inline}.shot-highlight:hover,.shot-highlight.is-hovered,.layer-highlight:hover,.layer-highlight.is-hovered{background-color:var(--highlight-bg-hover, rgba(59, 130, 246, .45))}.shot-highlight.active-highlight,.inline-editing .shot-highlight.editing,.layer-highlight.active-highlight,.inline-editing .layer-highlight.editing{background-color:var(--highlight-bg-active, rgba(59, 130, 246, .6))}.temp-highlight{background-color:var(--border-default, #333);border-radius:2px}.pending-selection-highlight{background-color:#3b82f64d;border-radius:2px}@keyframes highlightFlash{0%,to{filter:brightness(1)}50%{filter:brightness(1.3)}}.shot-highlight.flash,.layer-highlight.flash{animation:highlightFlash .5s ease-in-out 2}.layer-tabs{display:flex;align-items:center;background:var(--bg-secondary, #1a1a1a);border-bottom:1px solid var(--border-color, #333);padding:0 .5rem;position:relative}.layer-tabs-scroll{display:flex;align-items:center;gap:.25rem;overflow-x:auto;padding:.5rem 0;scrollbar-width:none;-ms-overflow-style:none}.layer-tabs-scroll::-webkit-scrollbar{display:none}.layer-tab{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:transparent;border:1px solid transparent;border-radius:6px 6px 0 0;cursor:pointer;font-size:.8125rem;color:var(--text-secondary, #888);white-space:nowrap;transition:all .15s ease;-webkit-user-select:none;user-select:none}.layer-tab:hover{background:var(--bg-tertiary, #252525);color:var(--text-primary, #fff)}.layer-tab.active{background:var(--bg-primary, #0d0d0d);border-color:var(--border-color, #333);border-bottom-color:var(--bg-primary, #0d0d0d);color:var(--text-primary, #fff);margin-bottom:-1px}.layer-tab-name{max-width:150px;overflow:hidden;text-overflow:ellipsis}.layer-tab-count{font-size:.6875rem;padding:.125rem .375rem;min-width:20px;text-align:center;background:#ffffff14;border-radius:10px;color:var(--text-tertiary, #555)}.layer-tab:hover .layer-tab-count{color:var(--text-secondary, #888)}.layer-tab.active .layer-tab-count{background:#ffffff26;color:var(--text-primary, #fff)}.layer-tab-input{background:transparent;border:1px solid var(--accent-color, #60a5fa);border-radius:3px;padding:.125rem .25rem;font-size:.8125rem;color:var(--text-primary, #fff);width:120px;outline:none}.layer-tab-add{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:transparent;border:1px dashed var(--border-color, #333);border-radius:6px;cursor:pointer;color:var(--text-tertiary, #666);transition:all .15s ease;margin-left:.25rem}.layer-tab-add:hover{background:var(--bg-tertiary, #252525);border-color:var(--accent-color, #60a5fa);color:var(--accent-color, #60a5fa)}.layer-context-menu{position:fixed;background:var(--bg-secondary, #1a1a1a);border:1px solid var(--border-color, #333);border-radius:8px;padding:.25rem;min-width:140px;box-shadow:0 4px 12px #0000004d;z-index:1000}.context-menu-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;background:transparent;border:none;border-radius:4px;cursor:pointer;font-size:.8125rem;color:var(--text-primary, #fff);text-align:left;transition:background .15s ease}.context-menu-item:hover{background:var(--bg-tertiary, #252525)}.context-menu-item:disabled{opacity:.5;cursor:not-allowed}.context-menu-item-danger{color:#f87171}.context-menu-item-danger:hover{background:#f871711a}.shot-details-cell{display:flex;align-items:center;justify-content:center;height:100%}.details-button{display:flex;align-items:center;justify-content:center;position:relative;width:32px;height:32px;padding:0;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:6px;cursor:pointer;transition:all .15s ease;color:#fff6}.details-button:hover{background:#ffffff14;border-color:#fff3;color:#ffffffb3}.details-button.has-content{background:#ffffff0d;border-color:#ffffff26;color:var(--glow-color, #fff)}.details-button.has-content svg{filter:drop-shadow(0 0 4px var(--glow-color-50, rgba(255, 255, 255, .5)));animation:iconGlow 2s ease-in-out infinite alternate}@keyframes iconGlow{0%{filter:drop-shadow(0 0 3px var(--glow-color-30, rgba(255, 255, 255, .3)))}to{filter:drop-shadow(0 0 6px var(--glow-color-50, rgba(255, 255, 255, .5)))}}.details-button.has-content:hover{background:#ffffff14;border-color:#ffffff40}.details-badge{position:absolute;top:-4px;right:-4px;min-width:14px;height:14px;padding:0 4px;background:var(--accent-blue, #3b82f6);border-radius:7px;font-size:9px;font-weight:600;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0000004d}@media(max-width:1200px){.details-button{width:28px;height:28px}.details-button svg{width:14px;height:14px}.details-badge{min-width:12px;height:12px;font-size:8px}}.shot-details-modal-overlay{position:fixed;inset:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;padding:24px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.shot-details-modal{background:var(--bg-elevated, #1a1a1a);border-radius:12px;width:100%;max-width:680px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 24px 64px #00000080;border:1px solid var(--border-default, #333);overflow:hidden}.shot-details-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border-default, #333);flex-shrink:0}.shot-details-modal-title-group{flex:1;min-width:0}.shot-details-modal-title{font-size:18px;font-weight:600;color:var(--text-primary, #fff);margin:0}.shot-details-modal-subtitle{font-size:13px;color:var(--text-secondary, #888);margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shot-details-modal-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:none;border-radius:6px;color:var(--text-tertiary, #666);cursor:pointer;transition:all .15s;margin-left:16px;flex-shrink:0}.shot-details-modal-close:hover{background:#ffffff1a;color:var(--text-primary, #fff)}.shot-details-modal-content{flex:1;overflow-y:auto;padding:20px 24px 24px}.shot-details-modal-error{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#ef444426;border:1px solid rgba(239,68,68,.3);border-radius:8px;margin-bottom:16px;font-size:13px;color:#ef4444}.shot-details-modal-error span{flex:1}.shot-details-modal-error button{background:transparent;border:none;color:#ef4444;cursor:pointer;font-size:12px;text-decoration:underline}.shot-details-section{margin-bottom:24px}.shot-details-section:last-child{margin-bottom:0}.shot-details-section-header{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--text-secondary, #888);font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.shot-details-section-header svg{opacity:.7}.shot-details-asset-count{background:var(--accent-blue, #3b82f6);color:#fff;padding:1px 6px;border-radius:10px;font-size:11px;font-weight:600}.shot-details-notes-textarea{width:100%;padding:12px 14px;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:var(--text-primary, #fff);font-size:14px;line-height:1.5;resize:vertical;min-height:100px;transition:border-color .15s,background-color .15s;font-family:inherit}.shot-details-notes-textarea:focus{outline:none;border-color:var(--accent-blue, #3b82f6);background:#ffffff0d}.shot-details-notes-textarea::placeholder{color:var(--text-tertiary, #666)}.shot-details-notes-hint{margin-top:6px;font-size:11px;color:var(--text-tertiary, #666);font-style:italic}.asset-carousel-container{position:relative;margin-bottom:16px}.asset-carousel-scroll{display:flex;gap:12px;overflow-x:auto;padding:4px 0 8px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}.asset-carousel-scroll::-webkit-scrollbar{height:6px}.asset-carousel-scroll::-webkit-scrollbar-track{background:transparent}.asset-carousel-scroll::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.asset-carousel-scroll::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.asset-carousel-nav{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#000000b3;border:1px solid rgba(255,255,255,.2);border-radius:50%;color:#fff;cursor:pointer;z-index:10;transition:all .15s}.asset-carousel-nav:hover{background:#000000e6;border-color:#fff6}.asset-carousel-nav-left{left:-8px}.asset-carousel-nav-right{right:-8px}.asset-carousel-item{flex-shrink:0;width:140px;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:8px;overflow:hidden;cursor:pointer;transition:all .15s}.asset-carousel-item:hover{border-color:#fff3;background:#ffffff0d}.asset-carousel-item.deleting{opacity:.5;pointer-events:none}.asset-carousel-thumbnail{width:100%;height:100px;position:relative;background:#0003;display:flex;align-items:center;justify-content:center}.asset-carousel-thumbnail img,.asset-carousel-thumbnail video{width:100%;height:100%;object-fit:cover}.asset-carousel-video-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#0009;border-radius:50%;color:#fff}.asset-carousel-file-icon{color:var(--text-tertiary, #666)}.asset-carousel-filename{padding:8px 10px;font-size:11px;color:var(--text-secondary, #888);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-top:1px solid rgba(255,255,255,.05)}.asset-carousel-actions{display:flex;gap:4px;padding:0 8px 8px}.asset-carousel-action-btn{flex:1;display:flex;align-items:center;justify-content:center;height:28px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:4px;color:var(--text-tertiary, #666);cursor:pointer;transition:all .15s}.asset-carousel-action-btn:hover{background:#ffffff1a;color:var(--text-primary, #fff)}.asset-carousel-delete-btn:hover{background:#ef444426;border-color:#ef44444d;color:#ef4444}.asset-drop-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;background:#ffffff05;border:2px dashed rgba(255,255,255,.15);border-radius:12px;cursor:pointer;transition:all .15s;text-align:center}.asset-drop-zone:hover{background:#ffffff0a;border-color:#ffffff40}.asset-drop-zone.drag-over{background:#3b82f61a;border-color:var(--accent-blue, #3b82f6)}.asset-drop-zone.disabled{opacity:.5;cursor:not-allowed}.asset-drop-zone.compact{padding:16px;flex-direction:row}.asset-drop-zone-content{display:flex;flex-direction:column;align-items:center;gap:8px}.asset-drop-zone.compact .asset-drop-zone-content{flex-direction:row}.asset-drop-zone-content svg{color:var(--text-tertiary, #666);margin-bottom:4px}.asset-drop-zone.compact .asset-drop-zone-content svg{margin-bottom:0}.asset-drop-zone-primary{font-size:14px;font-weight:500;color:var(--text-primary, #fff)}.asset-drop-zone-secondary{font-size:12px;color:var(--text-secondary, #888)}.asset-drop-zone-hint{font-size:11px;color:var(--text-tertiary, #666);font-style:italic}.asset-drop-zone-compact{display:flex;align-items:center;gap:8px;color:var(--text-secondary, #888);font-size:13px}.asset-drop-zone-compact svg{color:var(--accent-blue, #3b82f6)}.asset-drop-zone-progress{width:100%;height:4px;background:#ffffff1a;border-radius:2px;margin-top:16px;overflow:hidden}.asset-drop-zone.compact .asset-drop-zone-progress{position:absolute;bottom:0;left:0;right:0;margin-top:0;border-radius:0 0 10px 10px}.asset-drop-zone-progress-bar{height:100%;background:var(--accent-blue, #3b82f6);border-radius:2px;transition:width .3s ease}.asset-lightbox{position:fixed;inset:0;background:#000000f2;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1100}.asset-lightbox-close{position:absolute;top:16px;right:16px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border:none;border-radius:8px;color:#fff;cursor:pointer;transition:background .15s;z-index:10}.asset-lightbox-close:hover{background:#fff3}.asset-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border:none;border-radius:50%;color:#fff;cursor:pointer;transition:all .15s;z-index:10}.asset-lightbox-nav:hover:not(:disabled){background:#fff3}.asset-lightbox-nav:disabled{opacity:.3;cursor:not-allowed}.asset-lightbox-nav-prev{left:24px}.asset-lightbox-nav-next{right:24px}.asset-lightbox-content{max-width:90%;max-height:80%;display:flex;align-items:center;justify-content:center}.asset-lightbox-content img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}.asset-lightbox-content video{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}.asset-lightbox-audio{display:flex;flex-direction:column;align-items:center;gap:24px;padding:40px;background:#ffffff0d;border-radius:12px;color:var(--text-tertiary, #666)}.asset-lightbox-audio audio{width:300px}.asset-lightbox-pdf{width:80vw;height:80vh;border:none;border-radius:8px}.asset-lightbox-unsupported{display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px;background:#ffffff0d;border-radius:12px;color:var(--text-tertiary, #666);text-align:center}.asset-lightbox-unsupported button{padding:8px 16px;background:var(--accent-blue, #3b82f6);border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px}.asset-lightbox-unsupported button:hover{opacity:.9}.asset-lightbox-info{position:absolute;bottom:24px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:16px;padding:10px 16px;background:#000000b3;border-radius:8px;font-size:13px;color:var(--text-secondary, #888);z-index:10}.asset-lightbox-counter{padding:2px 8px;background:#ffffff1a;border-radius:4px;font-size:12px}.asset-lightbox-download{display:flex;align-items:center;gap:6px;padding:6px 12px;background:#ffffff1a;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:13px;transition:background .15s}.asset-lightbox-download:hover{background:#fff3}.spin{animation:spin 1s linear infinite}.inline-text-expand-textarea{width:100%;min-height:80px;max-height:200px;padding:8px 10px;font-size:13px;font-family:inherit;line-height:1.5;color:var(--text-primary, #fff);background:var(--bg-elevated, #1a1a1a);border:2px solid var(--accent-blue, #3b82f6);border-radius:4px;resize:none;outline:none;box-shadow:0 4px 20px #0006;animation:inlineExpandIn .1s ease}@keyframes inlineExpandIn{0%{opacity:.8;transform:scaleY(.95);transform-origin:top}to{opacity:1;transform:scaleY(1)}}.inline-text-expand-textarea::placeholder{color:var(--text-tertiary, #666)}.inline-text-expand-textarea:focus{outline:none}.phrase-tooltip{position:fixed;z-index:1000;max-width:400px;padding:10px 14px;background:var(--bg-elevated, #1e1e1e);border:1px solid var(--border-default, #333);border-radius:6px;box-shadow:0 8px 24px #00000080;animation:phraseTooltipIn .15s ease;pointer-events:none}@keyframes phraseTooltipIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.phrase-tooltip-text{font-size:13px;line-height:1.5;color:#ffffffd9;font-style:italic;white-space:pre-wrap;word-break:break-word}.type-settings-popover{position:fixed;width:260px;background:var(--bg-secondary, #1a1a1a);border:1px solid var(--border-color, #333);border-radius:10px;box-shadow:0 8px 24px #0006;z-index:1000;overflow:hidden}.type-settings-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border-color, #333)}.type-settings-header h4{margin:0;font-size:.875rem;font-weight:600;color:var(--text-primary, #fff)}.column-name-editor{display:flex;align-items:center;gap:.375rem;flex:1;min-width:0}.column-name-input{flex:1;min-width:0;padding:.25rem .5rem;background:var(--bg-primary, #0d0d0d);border:1px solid var(--accent-color, #60a5fa);border-radius:4px;font-size:.875rem;font-weight:600;color:var(--text-primary, #fff);outline:none}.column-name-input::placeholder{color:var(--text-tertiary, #666);font-weight:400}.btn-edit-name{display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;background:transparent;border:none;border-radius:4px;cursor:pointer;color:var(--text-tertiary, #666);transition:all .15s ease;flex-shrink:0}.btn-edit-name:hover{background:var(--bg-tertiary, #252525);color:var(--accent-color, #60a5fa)}.header-actions{display:flex;align-items:center;gap:.25rem}.btn-templates{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:1px solid var(--border-color, #333);border-radius:6px;cursor:pointer;color:var(--text-tertiary, #666);transition:all .15s ease}.btn-templates:hover{background:var(--bg-tertiary, #252525);border-color:var(--accent-color, #60a5fa);color:var(--accent-color, #60a5fa)}.btn-close-small{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:transparent;border:none;border-radius:4px;cursor:pointer;color:var(--text-tertiary, #666);transition:all .15s ease}.btn-close-small:hover{background:var(--bg-tertiary, #252525);color:var(--text-primary, #fff)}.type-options-list{padding:.5rem;max-height:300px;overflow-y:auto}.type-option-row{display:flex;align-items:center;gap:.5rem;padding:.375rem;border-radius:6px;transition:background .15s ease}.type-option-row:hover{background:var(--bg-tertiary, #252525)}.color-dot{position:relative;width:20px;height:20px;border-radius:50%;cursor:pointer;flex-shrink:0;transition:transform .15s ease,box-shadow .15s ease}.color-dot:hover{transform:scale(1.1);box-shadow:0 0 0 2px var(--bg-primary, #0d0d0d),0 0 0 4px #fff3}.color-picker-popover{position:absolute;top:100%;left:0;margin-top:8px;padding:.5rem;background:var(--bg-primary, #0d0d0d);border:1px solid var(--border-color, #333);border-radius:8px;box-shadow:0 4px 12px #0006;display:grid;grid-template-columns:repeat(4,1fr);gap:.375rem;z-index:10}.color-swatch{width:24px;height:24px;border-radius:4px;cursor:pointer;transition:transform .15s ease}.color-swatch:hover{transform:scale(1.15)}.color-swatch.active{box-shadow:0 0 0 2px var(--bg-primary, #0d0d0d),0 0 0 4px #ffffff80}.type-name-input{flex:1;background:transparent;border:1px solid transparent;border-radius:4px;padding:.375rem .5rem;font-size:.8125rem;color:var(--text-primary, #fff);outline:none;transition:border-color .15s ease,background .15s ease}.type-name-input:hover{background:var(--bg-primary, #0d0d0d)}.type-name-input:focus{border-color:var(--accent-color, #60a5fa);background:var(--bg-primary, #0d0d0d)}.btn-delete-option{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:transparent;border:none;border-radius:4px;cursor:pointer;color:var(--text-tertiary, #666);opacity:0;transition:all .15s ease}.type-option-row:hover .btn-delete-option{opacity:1}.btn-delete-option:hover{background:#f871711a;color:#f87171}.btn-add-option{display:flex;align-items:center;justify-content:center;gap:.5rem;width:calc(100% - 1rem);margin:.5rem;padding:.5rem;background:transparent;border:1px dashed var(--border-color, #333);border-radius:6px;cursor:pointer;font-size:.8125rem;color:var(--text-secondary, #888);transition:all .15s ease}.btn-add-option:hover{border-color:var(--accent-color, #60a5fa);color:var(--accent-color, #60a5fa);background:#60a5fa0d}.type-settings-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:.75rem 1rem;border-top:1px solid var(--border-color, #333)}.btn-cancel,.btn-save{padding:.5rem 1rem;border-radius:6px;font-size:.8125rem;font-weight:500;cursor:pointer;transition:all .15s ease}.btn-cancel{background:transparent;border:1px solid var(--border-color, #333);color:var(--text-secondary, #888)}.btn-cancel:hover{background:var(--bg-tertiary, #252525);color:var(--text-primary, #fff)}.btn-save{background:var(--accent-color, #60a5fa);border:none;color:#fff}.btn-save:hover{background:#3b82f6}.templates-picker{padding:.5rem}.btn-back-templates{display:flex;align-items:center;gap:.4rem;width:100%;padding:.5rem .6rem;margin-bottom:.5rem;background:transparent;border:none;border-radius:6px;cursor:pointer;font-size:.8rem;color:var(--text-secondary, #888);transition:all .15s ease}.btn-back-templates:hover{background:var(--bg-tertiary, #252525);color:var(--text-primary, #fff)}.templates-picker-list{display:flex;flex-direction:column;gap:.375rem;max-height:240px;overflow-y:auto}.template-picker-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.6rem .75rem;background:var(--bg-tertiary, #252525);border:1px solid transparent;border-radius:8px;cursor:pointer;transition:all .15s ease}.template-picker-item:hover{background:var(--bg-primary, #0d0d0d);border-color:var(--accent-color, #60a5fa)}.template-picker-name{font-size:.85rem;font-weight:500;color:var(--text-primary, #fff)}.template-picker-preview{display:flex;align-items:center;gap:.25rem}.template-preview-dot{width:12px;height:12px;border-radius:50%}.template-preview-more{font-size:.7rem;color:var(--text-tertiary, #666);margin-left:.25rem}.templates-picker-note{margin-top:.75rem;padding:.5rem;font-size:.75rem;color:var(--text-tertiary, #666);text-align:center}.layer-table-container{height:100%;overflow-y:auto}.layer-table{width:100%;border-collapse:collapse;font-size:.8125rem}.layer-table thead{position:sticky;top:0;z-index:10;background:var(--bg-secondary, #1a1a1a)}.layer-table th{padding:.75rem .5rem;text-align:left;font-weight:500;color:var(--text-secondary, #888);border-bottom:1px solid var(--border-color, #333);white-space:nowrap}.layer-table th.col-type{display:flex;align-items:center;gap:.5rem}.type-settings-btn{display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background:transparent;border:none;border-radius:4px;cursor:pointer;color:var(--text-tertiary, #666);transition:all .15s ease}.type-settings-btn:hover{background:var(--bg-tertiary, #252525);color:var(--text-primary, #fff)}.layer-table td{padding:.5rem;border-bottom:1px solid var(--border-color, #222);vertical-align:middle}.layer-table tbody{transition:opacity .15s ease-out,transform .15s ease-out;opacity:1;transform:translateY(0)}.layer-table tbody.tbody-fading-out{opacity:0;transform:translateY(-4px)}.layer-table tbody.tbody-fading-in{animation:fadeInRows .2s ease-out forwards}@keyframes fadeInRows{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.layer-table tr{transition:background-color .15s ease;cursor:pointer}.layer-table tr:hover{background-color:var(--type-bg-hover)!important}.layer-table tr.row-active{background-color:var(--type-bg-active)!important}.layer-table tr.row-hovered{background-color:var(--type-bg-hover)!important}.col-number{width:40px;text-align:center;color:var(--text-tertiary, #666)}.col-phrase{width:200px;max-width:200px}.col-description{min-width:150px}.col-type{width:120px}.col-details{width:50px}.col-actions{width:40px}.phrase-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-style:italic;color:var(--text-secondary, #888);font-size:.75rem;line-height:1.4}.description-cell{cursor:text}.description-text{display:block;color:var(--text-primary, #fff)}.description-text.editing{opacity:.5}.type-cell{position:relative;cursor:pointer;padding-left:.75rem!important;border-left:3px solid var(--cell-type-color, transparent)}.type-cell-value{display:block;font-weight:500;color:var(--text-primary, #fff)}.type-cell-value.placeholder{color:var(--text-tertiary, #666);font-weight:400}.type-cell-chevron{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);opacity:0;transition:opacity .15s ease}.type-cell:hover .type-cell-chevron,.type-cell.open .type-cell-chevron{opacity:1}.type-cell.open .type-cell-chevron{transform:translateY(-50%) rotate(180deg)}.type-dropdown{position:absolute;top:100%;left:0;right:0;background:var(--bg-secondary, #1a1a1a);border:1px solid var(--border-color, #333);border-radius:6px;box-shadow:0 4px 12px #0000004d;z-index:100;overflow:hidden;margin-top:2px}.type-option{padding:.5rem .75rem;cursor:pointer;border-left:3px solid transparent;transition:background .15s ease}.type-option:hover{background:var(--bg-tertiary, #252525)}.type-option.selected{background:var(--bg-tertiary, #252525);font-weight:500}.type-option-clear{border-top:1px solid var(--border-color, #333);color:var(--text-tertiary, #666);font-style:italic}.details-cell{text-align:center}.btn-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:none;border-radius:4px;cursor:pointer;color:var(--text-tertiary, #666);transition:all .15s ease}.btn-icon:hover{background:var(--bg-tertiary, #252525);color:var(--text-primary, #fff)}.btn-delete:hover{color:#f87171;background:#f871711a}.empty-layer{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:200px;color:var(--text-tertiary, #666);text-align:center;padding:2rem}.empty-layer svg{margin-bottom:1rem;opacity:.5}.empty-layer p{margin:0;font-size:1rem;color:var(--text-secondary, #888)}.empty-layer span{margin-top:.5rem;font-size:.8125rem}.airtable-modal-overlay{position:fixed;inset:0;background:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:2000;padding:2rem;animation:fadeIn .15s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.airtable-modal{width:100%;max-width:480px;background:#141414;border:1px solid rgba(255,255,255,.1);border-radius:16px;display:flex;flex-direction:column;overflow:hidden;animation:modalSlideIn .2s ease;box-shadow:0 25px 80px #0009}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.airtable-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0}.airtable-header-content{display:flex;align-items:center;gap:.75rem}.airtable-logo{flex-shrink:0}.airtable-modal-header h2{color:#fff;font-size:1.1rem;font-weight:600;margin:0}.modal-close-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:none;border-radius:8px;color:#ffffff80;cursor:pointer;transition:all .15s}.modal-close-btn:hover{background:#ffffff1a;color:#fff}.airtable-modal-content{padding:1.5rem}.airtable-step{display:flex;flex-direction:column;gap:1.25rem}.step-description{display:flex;flex-direction:column;gap:.5rem}.step-description p{color:#fff9;font-size:.875rem;line-height:1.5;margin:0}.help-link{display:inline-flex;align-items:center;gap:.35rem;color:#a78bfae6;font-size:.8rem;text-decoration:none;transition:color .2s}.help-link:hover{color:#a78bfa}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{color:#ffffffb3;font-size:.8rem;font-weight:500}.form-group label .label-hint{font-weight:400;color:#fff6;font-size:.75rem;margin-left:.5rem}.form-group label .label-hint strong{color:#fcb400cc;font-weight:500}.airtable-input,.airtable-select{width:100%;padding:.75rem 1rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:.9rem;outline:none;transition:border-color .2s,background .2s}.airtable-input:focus,.airtable-select:focus{border-color:#667eea;background:#ffffff14}.airtable-input::placeholder{color:#ffffff4d}.airtable-select{cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;padding-right:2.5rem}.airtable-select option{background:#1a1a1a;color:#fff}.checkbox-group{flex-direction:row}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;color:#fff9;font-size:.85rem}.checkbox-label input[type=checkbox]{width:16px;height:16px;accent-color:#667eea;cursor:pointer}.sync-preview{background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.preview-item{display:flex;justify-content:space-between;align-items:center}.preview-label{color:#ffffff80;font-size:.8rem}.preview-value{color:#fff;font-size:.85rem;font-weight:500}.error-message{background:#f871711a;border:1px solid rgba(248,113,113,.2);border-radius:8px;padding:.75rem 1rem;color:#f87171;font-size:.85rem}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:.5rem}.btn-secondary,.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.65rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn-secondary{background:#ffffff0d;color:#ffffffb3;border:1px solid rgba(255,255,255,.1)}.btn-secondary:hover{background:#ffffff1a;color:#fff}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover:not(:disabled){box-shadow:0 4px 20px #667eea66}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-sync{min-width:160px}.spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.syncing-step{align-items:center;text-align:center;padding:2rem 0}.syncing-animation{margin-bottom:1.5rem}.sync-spinner{width:48px;height:48px;border:3px solid rgba(102,126,234,.2);border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.syncing-step h3{color:#fff;font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.syncing-step p{color:#ffffff80;font-size:.875rem;margin:0}.success-step{align-items:center;text-align:center;padding:1.5rem 0}.success-icon{margin-bottom:1rem}.success-step h3{color:#4ade80;font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.success-step p{color:#fff9;font-size:.875rem;margin:0}.success-step .modal-actions{margin-top:1.5rem}.error-step{align-items:center;text-align:center;padding:1.5rem 0}.error-icon{margin-bottom:1rem}.error-step h3{color:#f87171;font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.error-step .error-details{color:#ffffff80;font-size:.875rem;margin:0;max-width:320px}.error-step .modal-actions{margin-top:1.5rem}.config-warning{display:flex;justify-content:center;margin-bottom:1rem}.airtable-step h3{color:#fff;font-size:1.1rem;font-weight:600;margin:0 0 .75rem;text-align:center}.config-message{color:#fff9;font-size:.9rem;text-align:center;margin:0 0 1.25rem}.config-message strong{color:#fcb400}.config-message.error-text{color:#f87171}.config-help{display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:10px;margin-bottom:1.25rem}.config-help-item{display:flex;align-items:center;gap:.75rem;color:#fff9;font-size:.85rem}.config-help-item svg{flex-shrink:0;color:#fff6}.config-help-item strong{color:#fcb400}@media(max-width:540px){.airtable-modal-overlay{padding:1rem}.airtable-modal{max-width:100%}.airtable-modal-content{padding:1rem}.modal-actions{flex-direction:column}.btn-secondary,.btn-primary{width:100%}}.script-page{height:100%;display:flex;flex-direction:column;overflow:hidden}.script-page .loading,.script-page .error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;color:#fff9}.script-toolbar{height:52px;background:#1a1a1a;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between;padding:0 1rem;flex-shrink:0}.toolbar-left{display:flex;align-items:center;gap:.75rem;min-width:0}.script-breadcrumb{display:flex;align-items:center;gap:.5rem;font-size:.85rem}.script-breadcrumb .breadcrumb-link{display:flex;align-items:center;gap:.35rem;color:#ffffff80;text-decoration:none;transition:color .2s}.script-breadcrumb .breadcrumb-link:hover{color:#fff}.script-breadcrumb .breadcrumb-project{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.script-breadcrumb .breadcrumb-separator{color:#ffffff4d;font-size:.8rem}.script-breadcrumb .breadcrumb-current{color:#ffffffe6;font-weight:500;cursor:pointer;padding:.2rem .4rem;border-radius:4px;transition:background .2s;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.script-breadcrumb .breadcrumb-current:hover{background:#ffffff14}.toolbar-divider{width:1px;height:20px;background:#ffffff1a;margin:0 .25rem}.script-name-input{font-size:.85rem;font-weight:500;color:#fff;background:#ffffff0d;border:1px solid #667eea;border-radius:4px;padding:.2rem .5rem;min-width:150px;max-width:200px;outline:none}.stat-badge{display:inline-flex;align-items:center;padding:.2rem .6rem;background:#667eea1a;color:#a78bfae6;border-radius:100px;font-size:.75rem;font-weight:500}.toolbar-actions{display:flex;align-items:center;gap:.5rem}.btn-toolbar{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .75rem;background:#ffffff0d;color:#ffffffb3;border:1px solid rgba(255,255,255,.08);border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-toolbar:hover{background:#ffffff1a;color:#fff;border-color:#ffffff26}.btn-toolbar.btn-copy.copied{background:#4ade801a;border-color:#4ade804d}.btn-toolbar.btn-copy.copied:hover{background:#4ade8026}.btn-toolbar.btn-clear:hover{color:#f87171;border-color:#f871714d;background:#f871711a}.btn-toolbar.btn-airtable{background:#667eea1a;border-color:#667eea33;color:#ffffffb3}.btn-toolbar.btn-airtable:hover{background:#667eea33;border-color:#667eea66;color:#fff}.btn-airtable-group .btn-toolbar.btn-airtable-settings{background:#fcb4000d;border-color:#fcb40033;color:#fcb400;border-top-left-radius:0;border-bottom-left-radius:0;padding:.4rem .5rem;min-width:unset}.btn-airtable-group .btn-toolbar.btn-airtable-settings:hover{background:#fcb40026;border-color:#fcb40066;color:#ffc933}.btn-toolbar.btn-settings{padding:.4rem}.script-content{flex:1;display:flex;overflow:hidden;background:#111}.editor-pane{flex:1;min-width:0;overflow-y:auto;border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;background:#0f0f0f}.table-pane{flex:1;min-width:0;overflow-y:hidden;display:flex;flex-direction:column;background:#141414}.editor-pane .editor-wrapper{padding:1.5rem;max-width:800px;margin:0 auto;width:100%;min-height:100%}.table-pane .table-wrapper{height:100%;width:100%;overflow:hidden}.loading-spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.1);border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1024px){.script-content{flex-direction:column}.editor-pane{flex:none;height:50%;border-right:none;border-bottom:1px solid rgba(255,255,255,.08)}.table-pane{flex:1;height:50%}.script-breadcrumb .breadcrumb-project{max-width:100px}.script-breadcrumb .breadcrumb-current{max-width:120px}}@media(max-width:768px){.script-toolbar{padding:0 .75rem;height:48px}.toolbar-left{gap:.5rem}.script-breadcrumb{font-size:.8rem}.script-breadcrumb .breadcrumb-project,.btn-toolbar span{display:none}.btn-toolbar{padding:.4rem .5rem}}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}.new-layer-modal{background:#1a1a1a;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.5rem;width:100%;max-width:360px;box-shadow:0 8px 32px #0006}.new-layer-modal h3{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#fff}.new-layer-modal input{width:100%;padding:.75rem 1rem;background:#0d0d0d;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:.875rem;outline:none;transition:border-color .2s ease}.new-layer-modal input:focus{border-color:#60a5fa}.new-layer-modal input::placeholder{color:#fff6}.new-layer-modal .modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.new-layer-modal .btn-cancel,.new-layer-modal .btn-create{padding:.5rem 1rem;border-radius:6px;font-size:.8125rem;font-weight:500;cursor:pointer;transition:all .15s ease}.new-layer-modal .btn-cancel{background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3}.new-layer-modal .btn-cancel:hover{background:#ffffff0d;color:#fff}.new-layer-modal .btn-create{background:#60a5fa;border:none;color:#fff}.new-layer-modal .btn-create:hover:not(:disabled){background:#3b82f6}.new-layer-modal .btn-create:disabled{opacity:.5;cursor:not-allowed}.preferences-page{padding:2rem;max-width:800px;margin:0 auto;color:#fff}.preferences-header{margin-bottom:2rem;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:1rem}.preferences-header h1{font-size:1.5rem;font-weight:600;margin-bottom:.5rem}.preferences-header p{color:#ffffff80;font-size:.9rem}.preferences-section{background:#1a1a1a;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:1.5rem;margin-bottom:2rem}.section-header{margin-bottom:1.25rem}.section-header h2{font-size:1.1rem;font-weight:500;margin-bottom:.25rem}.section-header p{color:#fff6;font-size:.85rem}.types-cloud{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.type-tag{display:flex;align-items:center;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:100px;padding:.25rem .5rem .25rem .35rem;gap:.5rem;transition:all .2s}.type-tag:hover{background:#ffffff14;border-color:var(--tag-color);box-shadow:0 0 10px #0003}.tag-color-preview{width:20px;height:20px;border-radius:50%;cursor:pointer;border:1px solid rgba(255,255,255,.1);position:relative;flex-shrink:0}.tag-name-input{background:transparent;border:none;color:#fff;font-size:.85rem;font-weight:500;outline:none;width:100px;transition:width .2s}.tag-name-input:focus{width:140px}.btn-delete-tag{background:transparent;border:none;color:#fff3;cursor:pointer;padding:2px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s}.btn-delete-tag:hover{color:#ef4444;background:#ef44441a}.btn-add-tag{display:flex;align-items:center;justify-content:center;gap:.35rem;background:#ffffff08;border:1px dashed rgba(255,255,255,.2);color:#fff6;padding:.4rem .8rem;border-radius:100px;cursor:pointer;transition:all .2s;font-size:.85rem;font-weight:500}.btn-add-tag:hover{background:#ffffff14;color:#fff;border-color:#fff6;border-style:solid}.color-picker-popover{position:absolute;top:24px;left:0;z-index:100;background:#222;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:.75rem;display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;box-shadow:0 10px 25px #00000080}.color-option{width:20px;height:20px;border-radius:4px;cursor:pointer;border:1px solid rgba(255,255,255,.1);transition:transform .1s}.color-option:hover{transform:scale(1.2)}.color-option.active{border-color:#fff;box-shadow:0 0 0 2px #fff3}.preferences-note{display:flex;align-items:flex-start;gap:.75rem;margin-top:1.5rem;padding:1rem;background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:8px;color:#ffffff80;font-size:.85rem;line-height:1.4}.preferences-note svg{flex-shrink:0;margin-top:1px;opacity:.5}
