:root{--bg: #0d0f12;--surface: #161a20;--surface2: #1e232b;--border: #2a3038;--text: #e6edf3;--textMuted: #8b949e;--accent: #22c55e;--accentDim: #16a34a;--danger: #ef4444;--radius: 10px;--font: "DM Sans", system-ui, sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}#root{min-height:100vh}button{font-family:inherit;cursor:pointer}input,textarea{font-family:inherit}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{padding:1rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--border)}.app-title{margin:0 0 .25rem;font-size:1.25rem;font-weight:600}.app-tagline{margin:0;font-size:.9rem;color:var(--textMuted)}.app-header-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.25rem}.app-header-row .app-title{margin:0}.post-generator-header-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:.25rem}.post-generator-main{max-width:720px}.post-step{margin-bottom:2rem}.post-step-progress{font-size:.95rem;color:var(--accent);margin:0 0 .5rem;font-weight:500}.post-step-actions{display:flex;gap:.75rem;margin-top:1.5rem}.post-slide-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}.post-slide-title{font-size:1rem;margin:0 0 .5rem}.post-loading{font-size:.9rem;color:var(--textMuted)}.post-loading-visible{font-weight:500;padding:.5rem 0}.post-fetch-result{font-size:.95rem;margin:.5rem 0;padding:.5rem .75rem;background:var(--surface2);border-radius:var(--radius);border-left:3px solid var(--accent)}.post-empty-candidates{font-size:.9rem;color:var(--textMuted);margin:.5rem 0;padding:.5rem;background:var(--surface2);border-radius:var(--radius)}.post-fetch-error{font-size:.9rem;color:var(--danger);margin:.5rem 0}.post-candidates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem;margin:.75rem 0;min-height:80px}.post-generator-main .briefs-hint code{font-size:.85em;padding:.1em .35em;background:var(--surface2);border-radius:4px}.post-candidate-wrap{display:flex;flex-direction:column;gap:.35rem}.post-candidate-img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface2)}.post-approved{margin-top:.75rem;display:flex;align-items:center;gap:.5rem}.post-approved-label{font-size:.85rem;color:var(--textMuted)}.post-approved-thumb{width:80px;height:80px;object-fit:cover;border-radius:var(--radius);border:2px solid var(--accent)}.post-themes{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.post-theme-btn{padding:.5rem 1rem;border-radius:var(--radius);border:2px solid var(--border);background:var(--surface);color:var(--text);font-size:.95rem;cursor:pointer}.post-theme-btn:hover{border-color:var(--accent)}.post-theme-btn.active{border-color:var(--accent);background:var(--accent);color:var(--bg)}.post-preview-list{list-style:none;padding:0;margin:1rem 0}.post-preview-item{display:flex;align-items:center;gap:.75rem;padding:.5rem 0;border-bottom:1px solid var(--border)}.post-preview-thumb{width:60px;height:60px;object-fit:cover;border-radius:var(--radius);border:1px solid var(--border)}.post-preview-title{flex:1;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.post-preview-move{display:flex;gap:.25rem}.app-main{flex:1;max-width:640px;margin:0 auto;width:100%;padding:1.5rem}.topic-row{display:flex;gap:.75rem;align-items:center;margin-bottom:1rem}.topic-input{flex:1;padding:.6rem .75rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:1rem}.topic-input:focus{outline:none;border-color:var(--accent)}.topic-input::placeholder{color:var(--textMuted)}.topic-input:disabled{opacity:.7;cursor:not-allowed}.app-error{color:var(--danger);font-size:.9rem;margin:0 0 1rem}.briefs-list{margin-top:1.5rem}.briefs-heading{font-size:1.1rem;margin:0 0 .25rem}.briefs-hint{font-size:.85rem;color:var(--textMuted);margin:0 0 1rem}.brief-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}.brief-image-wrap{margin-bottom:.75rem}.brief-image{display:block;max-width:100%;max-height:280px;width:auto;height:auto;border-radius:var(--radius);border:1px solid var(--border);object-fit:contain;background:var(--bg)}.brief-image-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.btn-small{padding:.35rem .6rem;font-size:.8rem}.brief-context{margin:0 0 .75rem;font-size:.95rem;line-height:1.5}.brief-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.brief-query{font-size:.8rem;color:var(--textMuted)}.btn{padding:.5rem 1rem;border-radius:var(--radius);border:none;font-size:.9rem;background:var(--surface2);color:var(--text)}.btn:hover:not(:disabled){background:var(--border)}.btn-primary{background:var(--accent);color:var(--bg)}.btn-primary:hover:not(:disabled){background:var(--accentDim)}.btn:disabled{opacity:.6;cursor:not-allowed}.history-section{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--border)}.history-heading{font-size:1rem;margin:0 0 .75rem;color:var(--textMuted)}.history-list{list-style:none;padding:0;margin:0}.history-item{margin-bottom:.25rem}.history-btn{width:100%;text-align:left;padding:.5rem .75rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.9rem;cursor:pointer}.history-btn:hover{background:var(--surface2);border-color:var(--accent)}.history-topic{display:block}.history-meta{display:block;font-size:.8rem;color:var(--textMuted);margin-top:.15rem}.app-header-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.video-analyzer-main{max-width:720px}.video-analyzer-form{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.video-analyzer-caption{width:100%;padding:.75rem 1rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.95rem;resize:vertical;min-height:100px}.video-analyzer-caption:focus{outline:none;border-color:var(--accent)}.video-analyzer-result{margin-top:1rem}.video-analyzer-data-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.75rem}.video-analyzer-quality{font-size:.85rem;font-weight:600;padding:.25rem .5rem;border-radius:6px}.video-analyzer-quality--high{background:#22c55e33;color:var(--accent)}.video-analyzer-quality--medium{background:#eab30833;color:#eab308}.video-analyzer-quality--low{background:#ef444426;color:#f87171}.video-analyzer-sources{font-size:.8rem;color:var(--textMuted)}.video-analyzer-warnings{margin-bottom:1rem;padding:.75rem;background:#eab3081a;border-left:3px solid #eab308;border-radius:var(--radius);font-size:.9rem;color:var(--text)}.video-analyzer-warnings p{margin:0 0 .25rem}.video-analyzer-warnings p:last-child{margin-bottom:0}.video-analyzer-transcript-preview{font-size:.9rem;white-space:pre-wrap;word-break:break-word;margin:0}.video-analyzer-gaps{border-color:var(--textMuted)}.video-analyzer-gaps h3{color:var(--textMuted)}.video-analyzer-meta{font-size:.9rem;color:var(--textMuted);margin:0 0 1rem;padding:.5rem 0}.video-analyzer-analysis .briefs-heading{margin-bottom:1rem}.video-analyzer-block{margin-bottom:1.25rem;padding:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.video-analyzer-block h3{margin:0 0 .5rem;font-size:.95rem;font-weight:600;color:var(--accent)}.video-analyzer-block p,.video-analyzer-block ul{margin:0;font-size:.95rem;line-height:1.5}.video-analyzer-block ul{padding-left:1.25rem}.video-analyzer-block li{margin-bottom:.35rem}.video-analyzer-template pre{margin:0 0 .75rem}.video-analyzer-script{white-space:pre-wrap;word-break:break-word;font-size:.9rem;padding:.75rem;background:var(--surface2);border-radius:var(--radius);border:1px solid var(--border);margin:0 0 .5rem}.video-analyzer-raw{font-size:.9rem;padding:1rem;background:var(--surface2);border-radius:var(--radius);white-space:pre-wrap;word-break:break-word}.video-analyzer-viral-mechanics h3{margin-bottom:.75rem}.video-analyzer-viral-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.video-analyzer-viral-card{padding:.75rem;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius);font-size:.9rem;display:flex;flex-direction:column;gap:.25rem}.video-analyzer-viral-label{font-size:.75rem;font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.03em}.video-analyzer-content-strategy .video-analyzer-strategy-grid{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;font-size:.9rem}.video-analyzer-strategy-label{font-weight:600;color:var(--accent);margin-right:.35rem}.video-analyzer-tactics ul{margin:0;padding-left:1.25rem}.video-analyzer-tactics li{margin-bottom:.35rem}.video-analyzer-title-analysis .video-analyzer-title-formula{margin:0 0 .75rem;font-size:.95rem;line-height:1.5}.video-analyzer-triggers{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.video-analyzer-pill{font-size:.8rem;padding:.25rem .6rem;background:#22c55e26;color:var(--accent);border-radius:999px;border:1px solid rgba(34,197,94,.3)}.video-analyzer-keywords{display:flex;flex-wrap:wrap;gap:.35rem}.video-analyzer-keyword{font-size:.75rem;color:var(--textMuted);padding:.15rem .4rem;background:var(--surface2);border-radius:4px}.video-analyzer-replication-prompt{border:2px solid var(--accent);background:linear-gradient(135deg,var(--surface) 0%,rgba(34,197,94,.06) 100%);padding:1.25rem;margin:1.5rem 0}.video-analyzer-replication-prompt h3{font-size:1rem;margin-bottom:1rem;color:var(--text)}.video-analyzer-replication-text{font-family:JetBrains Mono,ui-monospace,monospace;font-size:.95rem;line-height:1.6;white-space:pre-wrap;word-break:break-word;padding:1.25rem;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);margin:0 0 1rem;max-height:20rem;overflow-y:auto;display:block}.video-analyzer-copy-prompt-btn{font-size:1rem;padding:.6rem 1.25rem}.comment-slideshow-main{min-height:100vh;display:flex;flex-direction:column}.comment-slideshow-main .app-header{padding:1rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--border)}.comment-slideshow-form{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}.comment-slideshow-form .topic-input{flex:1;min-width:200px;padding:.5rem .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text)}.comment-slideshow-fallback{background:#eab3081f;border:1px solid rgba(234,179,8,.4);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}.comment-slideshow-fallback-msg{margin:0 0 .5rem;color:#eab308;font-size:.9rem}.comment-slideshow-paste{width:100%;min-height:100px;padding:.75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text);font-family:inherit;font-size:.9rem}.comment-slideshow-actions{display:flex;gap:.75rem;margin-bottom:1rem}.comment-slideshow-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.comment-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;transition:opacity .2s}.comment-card--selected{border-color:#22c55e66;background:#22c55e0a}.comment-card--excluded{opacity:.65}.comment-card-inner{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem;cursor:pointer}.comment-card-checkbox{margin:.25rem .25rem 0 0;flex-shrink:0}.comment-card-rank{font-weight:600;color:var(--accent);font-size:.9rem;flex-shrink:0}.comment-card-author{font-weight:600;color:var(--text);flex-shrink:0}.comment-card-text{width:100%;margin:.5rem 0 0;font-size:.95rem;line-height:1.5;color:var(--text);white-space:pre-wrap;word-break:break-word}.comment-card-meta{font-size:.85rem;color:var(--textMuted)}.comment-card-replies{margin-left:.25rem}.comment-slideshow-preview{display:flex;gap:1rem;overflow-x:auto;padding:1rem 0;margin-bottom:1rem;scroll-snap-type:x mandatory}.comment-canvas-preview{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:.5rem;scroll-snap-align:start}.comment-canvas-preview canvas{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg)}.comment-slideshow-export{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}
