:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{box-sizing:border-box;margin:0;padding:0}body{width:100%;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{width:100%}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--primary: 221.2 83.2% 53.3%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 221.2 83.2% 53.3%;--radius: .5rem}.app-container{width:100%;min-height:100vh;display:flex;flex-direction:column;background:hsl(var(--secondary))}.app-header{background:hsl(var(--background));padding:.625rem 1.5rem;border-bottom:1px solid hsl(var(--border));display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;position:sticky;top:0;z-index:100}.header-content h1{font-size:1.125rem;color:hsl(var(--foreground));font-weight:600;letter-spacing:-.025em}.header-content p{margin-top:0;color:hsl(var(--muted-foreground));font-size:.8125rem;font-weight:400}.header-actions{display:flex;gap:.5rem}.main-content{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:1rem;max-width:1900px;width:100%;margin:0 auto}.input-panel,.output-panel{background:hsl(var(--card));border-radius:var(--radius);border:1px solid hsl(var(--border));display:flex;flex-direction:column;overflow:hidden;height:calc(100vh - 100px);transition:all .2s}.panel-header{padding:.875rem 1rem;background:hsl(var(--muted) / .5);border-bottom:1px solid hsl(var(--border));display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem}.panel-header h2{font-size:.875rem;color:hsl(var(--foreground));font-weight:600;text-transform:uppercase;letter-spacing:.05em}.input-textarea{width:100%;padding:1rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.875rem;border:none;resize:none;line-height:1.5;color:hsl(var(--foreground));background:hsl(var(--background));transition:all .3s ease}.input-textarea.focused{flex:1;outline:none}.input-textarea.unfocused{flex:0 0 120px;min-height:120px;max-height:120px}.input-panel:not(:has(.descriptions-panel)) .input-textarea.focused,.input-panel:not(:has(.descriptions-panel)) .input-textarea.unfocused{flex:1;min-height:auto;max-height:none}.input-textarea::placeholder{color:hsl(var(--muted-foreground))}.search-input{padding:.5rem .75rem;border:1px solid hsl(var(--input));border-radius:calc(var(--radius) - 2px);font-size:.875rem;min-width:200px;transition:all .15s;background:hsl(var(--background));color:hsl(var(--foreground))}.search-input:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 2px hsl(var(--ring) / .2)}.descriptions-panel{border-top:1px solid hsl(var(--border));background:hsl(var(--muted) / .3);display:flex;flex-direction:column;transition:all .4s ease;min-height:0;overflow:hidden}.input-panel:has(.input-textarea.focused) .descriptions-panel{max-height:35%;flex:0 0 35%}.input-panel:has(.input-textarea.unfocused) .descriptions-panel{flex:1;max-height:none}.descriptions-header{padding:.75rem 1rem;background:hsl(var(--background));border-bottom:1px solid hsl(var(--border));cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .15s}.descriptions-header:hover{background:hsl(var(--accent))}.descriptions-header h3{font-size:.75rem;color:hsl(var(--muted-foreground));font-weight:600;text-transform:uppercase;letter-spacing:.05em;transition:color .15s}.descriptions-header:hover h3{color:hsl(var(--foreground))}.descriptions-list{overflow-y:auto;overflow-x:hidden;padding:.75rem;flex:1;min-height:0}.description-card{background:hsl(var(--card));padding:.875rem;border-radius:calc(var(--radius) - 2px);margin-bottom:.5rem;border:1px solid hsl(var(--border));transition:all .15s}.description-card:hover{border-color:hsl(var(--primary));background:hsl(var(--accent))}.description-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;flex-wrap:wrap;gap:.5rem}.description-key{font-weight:600;color:hsl(var(--primary));font-size:.75rem;font-family:ui-monospace,monospace;background:hsl(var(--primary) / .1);padding:.125rem .5rem;border-radius:calc(var(--radius) - 4px)}.description-title-badge{background:hsl(var(--primary));color:hsl(var(--primary-foreground));padding:.25rem .625rem;border-radius:calc(var(--radius) - 2px);font-size:.75rem;font-weight:500}.description-text{color:hsl(var(--muted-foreground));font-size:.875rem;line-height:1.5}.scenes-list{overflow-y:auto;padding:.75rem;flex:1}.scene-card-new{background:hsl(var(--card));border-radius:var(--radius);padding:1rem;margin-bottom:.75rem;border:1px solid hsl(var(--border));transition:all .2s;position:relative}.scene-card-new.collapsed{padding:.875rem 1rem}.scene-card-new.expanded{padding:1rem;border-color:hsl(var(--primary) / .5);box-shadow:0 1px 3px #0000001a}.scene-card-new:hover{border-color:hsl(var(--primary) / .3)}.scene-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0;padding-bottom:0;border-bottom:none;transition:all .15s}.scene-card-header.clickable{cursor:pointer;-webkit-user-select:none;user-select:none}.scene-card-header.clickable:hover .scene-title{color:hsl(var(--primary))}.expanded .scene-card-header{margin-bottom:.875rem;padding-bottom:.875rem;border-bottom:1px solid hsl(var(--border))}.scene-title-row{display:flex;align-items:center;gap:.75rem;flex:1}.expand-icon{margin-left:auto;color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:600;transition:color .15s}.scene-card-header.clickable:hover .expand-icon{color:hsl(var(--primary))}.scene-content-wrapper{animation:slideDown .2s ease-out;overflow:hidden}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.scene-number{background:hsl(var(--primary));color:hsl(var(--primary-foreground));padding:.25rem .625rem;border-radius:calc(var(--radius) - 2px);font-weight:600;font-size:.75rem;min-width:40px;text-align:center}.scene-title{font-size:.9375rem;color:hsl(var(--foreground));font-weight:600;line-height:1.4;transition:color .15s}.removed-count-badge{background:#ef4444;color:hsl(var(--primary-foreground));padding:.125rem .5rem;border-radius:calc(var(--radius) - 2px);font-weight:600;font-size:.6875rem;white-space:nowrap;cursor:help;transition:all .15s}.removed-count-badge:hover{background:#eb1515;transform:scale(1.05)}.scene-actions{display:flex;gap:.5rem;margin-left:10px}.scene-explanation-new{background:#fef3c7;padding:.875rem;border-radius:calc(var(--radius) - 2px);margin-bottom:.875rem;border:1px solid hsl(47.9 95.8% 82.2%)}.scene-explanation-new label{display:block;font-weight:600;color:#f97415;margin-bottom:.5rem;font-size:.6875rem;text-transform:uppercase;letter-spacing:.05em}.scene-explanation-new p{color:hsl(var(--foreground));font-size:.875rem;line-height:1.6}.scene-prompt{background:hsl(var(--muted) / .5);padding:.875rem;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border))}.scene-prompt label{display:block;font-weight:600;color:hsl(var(--primary));margin-bottom:.625rem;font-size:.6875rem;text-transform:uppercase;letter-spacing:.05em}.prompt-content{color:hsl(var(--foreground));font-size:.875rem;line-height:1.7;font-family:ui-serif,Georgia,serif;white-space:pre-wrap;word-wrap:break-word}button{padding:.5rem 1rem;font-size:.875rem;font-weight:500;border:1px solid transparent;border-radius:calc(var(--radius) - 2px);cursor:pointer;transition:all .15s;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.btn-sample{opacity:0;background:hsl(var(--secondary));color:hsl(var(--foreground));border:1px solid hsl(var(--border));padding:.5rem;min-width:44px;font-size:1.25rem}.btn-sample:hover{background:hsl(var(--accent));border-color:hsl(var(--primary))}.btn-copy-all{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.btn-copy-all:hover{background:hsl(var(--primary) / .9)}.btn-clear{background:#ef4444;color:hsl(var(--primary-foreground))}.btn-clear:hover{background:#ef4444e6}.btn-clear-small{background:#dc2626;color:hsl(var(--primary-foreground));padding:.375rem .75rem;font-size:.8125rem}.btn-clear-small:hover{background:#dc2626e6}.btn-copy-scene{background:#16a34a;color:hsl(var(--primary-foreground));padding:.375rem .75rem;font-size:1rem;border-radius:calc(var(--radius) - 2px);min-width:44px}.btn-copy-scene:hover{background:#16a34ae6}.empty-state-new{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center;height:100%;color:hsl(var(--muted-foreground))}.empty-icon{font-size:3rem;margin-bottom:1rem;opacity:.4}.empty-state-new h3{margin-bottom:.5rem;font-size:1.25rem;color:hsl(var(--foreground));font-weight:600}.empty-state-new p{margin-bottom:1.5rem;color:hsl(var(--muted-foreground));font-size:.875rem;line-height:1.5}.example-box{background:hsl(var(--card));padding:1.25rem;border-radius:var(--radius);border:1px dashed hsl(var(--border));max-width:500px;text-align:left}.example-box strong{display:block;margin-bottom:.75rem;color:hsl(var(--primary));font-size:.875rem;font-weight:600}.example-box code{display:block;font-family:ui-monospace,monospace;font-size:.8125rem;color:hsl(var(--muted-foreground));line-height:1.7;background:hsl(var(--muted));padding:.875rem;border-radius:calc(var(--radius) - 2px)}.no-results{text-align:center;padding:3rem 2rem;color:hsl(var(--muted-foreground))}.no-results p{font-size:.875rem;font-weight:500}.scenes-list::-webkit-scrollbar,.descriptions-list::-webkit-scrollbar,.input-textarea::-webkit-scrollbar{width:8px}.scenes-list::-webkit-scrollbar-track,.descriptions-list::-webkit-scrollbar-track,.input-textarea::-webkit-scrollbar-track{background:hsl(var(--muted))}.scenes-list::-webkit-scrollbar-thumb,.descriptions-list::-webkit-scrollbar-thumb,.input-textarea::-webkit-scrollbar-thumb{background:hsl(var(--border));border-radius:4px}.scenes-list::-webkit-scrollbar-thumb:hover,.descriptions-list::-webkit-scrollbar-thumb:hover,.input-textarea::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground) / .5)}@media (max-width: 1200px){.main-content{grid-template-columns:1fr}.input-panel,.output-panel{height:auto;min-height:400px}}@media (max-width: 768px){.app-header{padding:.875rem 1rem;flex-direction:column;align-items:flex-start}.header-content h1{font-size:1.25rem}.header-content p{font-size:.8125rem}.header-actions{width:100%}.header-actions button{flex:1}.main-content{padding:.75rem;gap:.75rem}.panel-header{padding:.75rem;flex-direction:column;align-items:flex-start}.search-input{width:100%;min-width:auto}.scene-card-header{flex-direction:column;gap:.75rem}.scene-title-row{width:100%}.scene-title{font-size:.875rem}.scene-actions,.btn-copy-scene{width:100%}}@media (max-width: 480px){.header-content h1{font-size:1.125rem}.header-content p{font-size:.75rem}button{font-size:.8125rem;padding:.4375rem .875rem}.scene-title,.prompt-content,.input-textarea{font-size:.8125rem}}.history-panel{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);margin:0 1rem 1rem;box-shadow:0 4px 6px -1px #0000001a;max-height:400px;display:flex;flex-direction:column;overflow:hidden;animation:slideDown .2s ease-out}.history-header{display:flex;justify-content:space-between;align-items:center;padding:.875rem 1rem;background:hsl(var(--muted) / .5);border-bottom:1px solid hsl(var(--border))}.history-header h3{font-size:.875rem;color:hsl(var(--foreground));font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin:0}.history-actions{display:flex;gap:.5rem}.btn-history{background:#16a34a;color:hsl(var(--primary-foreground));font-weight:500}.btn-history:hover{background:#16a34ae6}.btn-clear-history{background:#dc2626;color:hsl(var(--primary-foreground));padding:.375rem .75rem;font-size:.8125rem}.btn-clear-history:hover{background:#dc2626e6}.btn-close-history{background:hsl(var(--secondary));color:hsl(var(--foreground));border:1px solid hsl(var(--border));padding:.375rem .75rem;font-size:.8125rem;font-weight:600}.btn-close-history:hover{background:hsl(var(--accent));border-color:hsl(var(--primary))}.history-list{overflow-y:auto;padding:.75rem;flex:1;min-height:0}.history-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:hsl(var(--muted) / .3);border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);margin-bottom:.5rem;transition:all .15s}.history-item:hover{background:hsl(var(--accent));border-color:hsl(var(--primary) / .5)}.history-item-header{display:flex;align-items:center;gap:.75rem;flex:1;flex-wrap:wrap}.history-scene-number{background:hsl(var(--primary));color:hsl(var(--primary-foreground));padding:.25rem .625rem;border-radius:calc(var(--radius) - 2px);font-weight:600;font-size:.75rem;min-width:40px;text-align:center}.history-scene-title{font-size:.875rem;color:hsl(var(--foreground));font-weight:500;flex:1}.history-timestamp{font-size:.75rem;color:hsl(var(--muted-foreground));font-weight:400}.history-item-actions{display:flex;gap:.5rem}.btn-recopy{background:#16a34a;color:hsl(var(--primary-foreground));padding:.375rem .75rem;font-size:1rem;border-radius:calc(var(--radius) - 2px);min-width:44px}.btn-recopy:hover{background:#16a34ae6}.history-list::-webkit-scrollbar{width:8px}.history-list::-webkit-scrollbar-track{background:hsl(var(--muted))}.history-list::-webkit-scrollbar-thumb{background:hsl(var(--border));border-radius:4px}.history-list::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground) / .5)}.scene-card-new.last-copied{border:2px solid hsl(142.1 76.2% 36.3%);background:linear-gradient(to right,#16a34a14,hsl(var(--card)));box-shadow:0 0 0 3px #16a34a26;animation:highlightPulse .5s ease-out}@keyframes highlightPulse{0%{transform:scale(1);box-shadow:0 0 #16a34a66}50%{transform:scale(1.01);box-shadow:0 0 0 6px #16a34a33}to{transform:scale(1);box-shadow:0 0 0 3px #16a34a26}}@media (max-width: 768px){.history-panel{margin:0 .75rem .75rem;max-height:300px}.history-item-header{flex-direction:column;align-items:flex-start;gap:.5rem}.history-timestamp{margin-left:0}}
