:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;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;min-width:320px;min-height:100vh;background-color:#fff}h1{font-size:3.2em;line-height:1.1}button{font-family:inherit;cursor:pointer;transition:all .2s ease}button:focus-visible{outline:2px solid #6366f1;outline-offset:2px}.app-shell{min-height:100vh;padding:2.5rem clamp(1.25rem,4vw,3.5rem) 3.5rem;background:radial-gradient(circle at top,#fdf0ff 4%,transparent 20%),linear-gradient(120deg,#fafbff,#f5f3ff);color:#0f172a;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:2rem}.eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:.2em;font-weight:600;color:#64748b;margin-bottom:.5rem}.app-header h1{font-size:clamp(1.8rem,3.2vw,2.875rem);margin:0}.muted{color:#64748b;margin:.25rem 0 0}.error-text{color:#dc2626;font-weight:600}.header-actions,.form-actions{display:flex;gap:.75rem}.grid-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}.panel{background:#ffffffe6;border-radius:1.25rem;padding:1.5rem;border:1px solid rgba(99,102,241,.08);box-shadow:0 15px 45px #0f172a14;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.25rem}.list{display:flex;flex-direction:column;gap:1rem}.run-card{text-align:left;border:1px solid transparent;border-radius:1rem;padding:1rem;background:linear-gradient(135deg,#fff,#f9f9ff);transition:border-color .16s ease,transform .16s ease;cursor:pointer}.run-card.selected{border-color:#4f46e580;box-shadow:0 8px 25px #4f46e526}.run-card:hover{transform:translateY(-1px)}.run-card h3{margin:.4rem 0 .2rem;font-size:1rem}.run-card__top,.run-card__meta{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:#475569}.run-card__actions{display:flex;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid #e2e8f0}.run-action{flex:1;padding:.4rem .75rem;border:none;border-radius:.5rem;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .2s ease}.run-action.cancel{background:#ef44441a;color:#dc2626}.run-action.cancel:hover{background:#ef444433}.run-action.restart{background:#3b82f61a;color:#2563eb}.run-action.restart:hover{background:#3b82f633}.run-action.delete{background:#64748b1a;color:#64748b}.run-action.delete:hover{background:#64748b33}.request-form{display:flex;flex-direction:column;gap:1rem}label{font-size:.9rem;font-weight:500;color:#0f172a;display:flex;flex-direction:column;gap:.35rem}input,textarea,select{border-radius:.8rem;border:1px solid #cbd5f5;padding:.75rem 1rem;font-size:.95rem;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}input:focus,textarea:focus,select:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f133;outline:none}.checkbox{flex-direction:row;align-items:center;gap:.8rem}.checkbox input{width:auto;accent-color:#6366f1}.ghost,.primary{border-radius:999px;padding:.65rem 1.5rem;font-weight:600;border:none;cursor:pointer}.ghost{background:#6366f114;color:#4338ca}.ghost.small{padding:.45rem 1rem;font-size:.85rem}.primary{background:linear-gradient(135deg,#7c3aed,#4338ca);color:#fff;box-shadow:0 10px 20px #4338ca4d}.primary:disabled{opacity:.6;cursor:not-allowed}.stream-log{display:flex;flex-direction:column;gap:.75rem;max-height:400px;overflow-y:auto;padding-right:.5rem}.log-line{display:flex;gap:.75rem;align-items:center;background:#f8fafc;border-radius:.9rem;padding:.75rem 1rem;border:1px solid rgba(15,23,42,.03)}.status-pill{border-radius:999px;padding:.2rem .65rem;font-size:.75rem;font-weight:600;text-transform:capitalize}.status-queued,.status-status{background:#fbbf2433;color:#b45309}.status-running,.status-token{background:#3b82f626;color:#1d4ed8}.status-complete{background:#22c55e26;color:#15803d}.status-error{background:#f8717133;color:#b91c1c}@media(max-width:768px){.app-header{flex-direction:column}.header-actions{align-self:flex-start}}.content-preview{background:#fff;border-radius:1rem;padding:1.5rem;border:1px solid #e2e8f0}.content-preview.empty{text-align:center;padding:3rem 1.5rem;background:#f8fafc}.preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e2e8f0}.preview-header h3{margin:0;font-size:1.25rem;color:#0f172a}.review-link{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:linear-gradient(135deg,#7c3aed,#4338ca);color:#fff;text-decoration:none;border-radius:999px;font-size:.9rem;font-weight:600;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 4px 12px #4f46e533}.review-link:hover{transform:translateY(-2px);box-shadow:0 6px 16px #4f46e54d}.image-preview{margin-bottom:1.5rem;border-radius:.75rem;overflow:hidden;border:1px solid #e2e8f0;background:#f8fafc}.image-preview img{width:100%;height:auto;display:block}.content-section{margin-bottom:1.5rem}.content-label{display:block;font-size:.85rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.content-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:.75rem;padding:1.25rem}.post-text{margin:0;font-size:1rem;line-height:1.7;color:#1e293b;white-space:pre-wrap}.hashtags{margin:1rem 0 0;color:#6366f1;font-weight:600;font-size:.95rem}.content-meta{display:flex;flex-direction:column;gap:.75rem;padding-top:1rem;border-top:1px solid #e2e8f0}.meta-row{display:flex;gap:.75rem;font-size:.9rem;align-items:flex-start}.meta-label{font-weight:600;color:#475569;min-width:120px;flex-shrink:0}.meta-row a{color:#6366f1;text-decoration:none;word-break:break-all}.meta-row a:hover{text-decoration:underline}.admin-page{min-height:100vh;background:#f8fafc}.admin-header{background:#fff;padding:1.5rem 2rem;border-bottom:1px solid #e2e8f0}.admin-header h1{margin:.5rem 0 .25rem;font-size:1.75rem;color:#1e293b}.admin-header .muted{margin:0;color:#64748b}.back-button{background:none;border:none;color:#6366f1;font-size:.9rem;cursor:pointer;padding:0;margin-bottom:.5rem}.back-button:hover{color:#4f46e5;text-decoration:underline}.admin-content{display:grid;grid-template-columns:320px 1fr;gap:0;min-height:calc(100vh - 120px)}.company-list-panel{background:#fff;border-right:1px solid #e2e8f0;padding:1.5rem;overflow-y:auto}.company-list-panel h2{margin:0 0 1rem;font-size:1.1rem;color:#1e293b}.company-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.company-item{padding:.75rem 1rem;border-radius:.5rem;cursor:pointer;transition:all .2s ease;border:1px solid transparent}.company-item:hover{background:#f1f5f9}.company-item.selected{background:#eef2ff;border-color:#6366f1}.company-item-header{display:flex;align-items:center;gap:.5rem}.company-logo-small{width:24px;height:24px;object-fit:contain;border-radius:4px}.brand-color-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.company-name{font-weight:600;color:#1e293b}.company-description{margin:.25rem 0 0;font-size:.8rem;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-editor{padding:2rem;background:#f8fafc;overflow-y:auto}.editor-header{margin-bottom:1.5rem}.editor-header h2{margin:0 0 .5rem;font-size:1.5rem;color:#1e293b}.success-text{color:#059669;background:#ecfdf5;padding:.5rem 1rem;border-radius:.5rem;margin:.5rem 0;font-size:.9rem}.error-text{color:#dc2626;background:#fef2f2;padding:.5rem 1rem;border-radius:.5rem;margin:.5rem 0;font-size:.9rem}.editor-form{display:flex;flex-direction:column;gap:2rem}.form-section{background:#fff;border-radius:.75rem;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.form-section h3{margin:0 0 1rem;font-size:1.1rem;color:#1e293b;padding-bottom:.75rem;border-bottom:1px solid #e2e8f0}.form-section label{display:block;margin-bottom:1rem;font-size:.9rem;color:#475569;font-weight:500}.form-section input[type=text],.form-section input[type=url],.form-section textarea{display:block;width:100%;padding:.625rem .75rem;margin-top:.25rem;border:1px solid #e2e8f0;border-radius:.5rem;font-size:.9rem;font-family:inherit;background:#fff;transition:border-color .2s ease}.form-section input:focus,.form-section textarea:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.color-input-wrapper{display:flex;gap:.5rem;align-items:center;margin-top:.25rem}.color-input-wrapper input[type=color]{width:48px;height:36px;border:1px solid #e2e8f0;border-radius:.5rem;cursor:pointer;padding:2px}.color-input-wrapper input[type=text]{width:120px;margin-top:0}.large-textarea{min-height:200px;resize:vertical}.code-textarea{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.85rem;line-height:1.5}.upload-section{margin-bottom:1rem}.file-input{display:none}.upload-button{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background:linear-gradient(135deg,#f1f5f9,#e2e8f0);border:2px dashed #94a3b8;border-radius:.5rem;color:#475569;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.upload-button:hover{background:linear-gradient(135deg,#e2e8f0,#cbd5e1);border-color:#6366f1;color:#6366f1}.upload-button.uploading{background:linear-gradient(135deg,#eef2ff,#e0e7ff);border-color:#6366f1;border-style:solid;color:#6366f1;cursor:wait}.upload-icon{font-size:1.1rem}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #c7d2fe;border-top-color:#6366f1;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.upload-help{margin:.5rem 0 0;font-size:.8rem;color:#94a3b8}.divider{display:flex;align-items:center;margin:1rem 0;color:#94a3b8;font-size:.85rem}.divider:before,.divider:after{content:"";flex:1;height:1px;background:#e2e8f0}.divider span{padding:0 1rem}.form-actions{display:flex;justify-content:flex-end;gap:1rem;padding-top:1rem}.form-actions button.primary{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;border:none;padding:.75rem 2rem;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease}.form-actions button.primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #6366f14d}.form-actions button.primary:disabled{opacity:.7;cursor:not-allowed;transform:none}.no-selection{display:flex;align-items:center;justify-content:center;height:100%;color:#64748b;font-size:1.1rem}@media(max-width:768px){.admin-content{grid-template-columns:1fr}.company-list-panel{border-right:none;border-bottom:1px solid #e2e8f0;max-height:300px}}.review-shell{min-height:100vh;padding:2rem;background:linear-gradient(120deg,#fafbff,#f5f3ff);display:flex;justify-content:center;align-items:flex-start}.review-panel{max-width:800px;width:100%;background:#fff;border-radius:1.25rem;padding:2.5rem;box-shadow:0 15px 45px #0f172a1f;margin-top:2rem}.review-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid #e2e8f0}.review-header h1{font-size:2rem;margin:.5rem 0;color:#0f172a}.review-content{display:flex;flex-direction:column;gap:1.5rem}.review-section label{display:flex;flex-direction:column;gap:.5rem}.review-section strong{color:#475569;font-size:.9rem;text-transform:uppercase;letter-spacing:.05em}.editable-field{border:2px solid #cbd5e1;border-radius:.75rem;padding:.875rem;font-size:1rem;font-family:inherit;transition:border-color .2s ease,box-shadow .2s ease;background:#f8fafc}.editable-field:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a;background:#fff}.info-box{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:.75rem;padding:1rem;font-size:.95rem}.info-box strong{display:block;margin-bottom:.5rem;color:#475569;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em}.info-box p{margin:0;color:#1e293b}.review-actions{display:flex;gap:1rem;margin-top:2.5rem;padding-top:2rem;border-top:1px solid #e2e8f0}.action-button{flex:1;padding:1rem 1.5rem;border:none;border-radius:.75rem;font-weight:600;font-size:1rem;cursor:pointer;transition:all .2s ease}.action-button:disabled{opacity:.5;cursor:not-allowed}.action-button.approve{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;box-shadow:0 4px 12px #22c55e4d}.action-button.approve:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #22c55e66}.action-button.needs-edits{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;box-shadow:0 4px 12px #f59e0b4d}.action-button.needs-edits:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #f59e0b66}.action-button.reject{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 4px 12px #ef44444d}.action-button.reject:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #ef444466}.action-button.publish{background:linear-gradient(135deg,#0a66c2,#0052a0);color:#fff;box-shadow:0 4px 12px #0a66c24d}.action-button.publish:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #0a66c266}.publish-result{margin-top:1rem;padding:.875rem 1rem;border-radius:.75rem;font-size:.95rem}.publish-result p{margin:0}.publish-result a{color:inherit;font-weight:600}.publish-success{background:#dcfce7;border:1px solid #86efac;color:#166534}.publish-error{background:#fee2e2;border:1px solid #fca5a5;color:#991b1b}.submitting-overlay{position:fixed;inset:0;background:#00000080;display:flex;justify-content:center;align-items:center;color:#fff;font-size:1.5rem;font-weight:600}.success-message{text-align:center;padding:3rem 2rem}.success-message h1{color:#22c55e;margin-bottom:1rem}.success-message p{font-size:1.1rem;margin:.5rem 0}@media(max-width:768px){.review-shell{padding:1rem}.review-panel{padding:1.5rem}.review-actions{flex-direction:column}.action-button{width:100%}}
