*{box-sizing:border-box}body{margin:0;background:#f4f7fb;color:#172033;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}header{background:#101827;color:#fff;padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:5}header nav{display:flex;gap:18px;flex-wrap:wrap}header a{color:#dce6ff;text-decoration:none}.tag{background:#315efb;padding:3px 8px;border-radius:999px;font-size:12px;margin-left:8px}.wrap{max-width:1180px;margin:32px auto;padding:0 18px}.center-card{max-width:480px;margin:9vh auto;background:#fff;padding:34px;border-radius:18px;box-shadow:0 18px 50px #1d294312}.panel{background:#fff;padding:24px;border-radius:16px;box-shadow:0 8px 25px #22304b0d;margin:18px 0;overflow:auto}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stats div{background:#fff;padding:24px;border-radius:16px}.stats b{display:block;font-size:36px}.stats span{color:#667085}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#22c55e;margin-right:6px}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid #e6eaf0;padding:12px;vertical-align:top}th{font-size:12px;text-transform:uppercase;color:#64748b}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cfd7e5;border-radius:9px;background:#fff;font:inherit}textarea{resize:vertical}label{display:block;font-weight:600;margin:10px 0}label input,label select,label textarea{margin-top:6px;font-weight:400}button,.button{display:inline-block;border:0;background:#315efb;color:#fff;padding:11px 16px;border-radius:9px;font-weight:700;text-decoration:none;cursor:pointer}.secondary{background:#475569}.danger{background:#b42318}.success,.notice{padding:12px 14px;border-radius:10px;background:#ecfdf3;color:#067647;margin:14px 0}.error{padding:12px 14px;border-radius:10px;background:#fef3f2;color:#b42318;margin:14px 0}.pill{font-size:12px;padding:4px 8px;background:#eef2ff;border-radius:999px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}.formgrid h2,.formgrid .wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:10px}.check input{width:auto;margin:0}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.review-card{display:grid;grid-template-columns:330px 1fr;gap:24px}.preview img{width:100%;height:auto;border-radius:14px;border:1px solid #e5e7eb}@media(max-width:800px){.stats{grid-template-columns:1fr 1fr}.two,.review-card,.formgrid{grid-template-columns:1fr}.formgrid h2,.formgrid .wide{grid-column:auto}header{align-items:flex-start;flex-direction:column}.review-card{display:block}.preview{max-width:360px;margin-bottom:16px}} 
.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.profile-choice{display:flex!important;gap:10px;align-items:flex-start;border:1px solid #dbe3ee;border-radius:10px;padding:12px;background:#fff}.profile-choice input{width:auto;margin-top:4px}.profile-choice small{display:block;color:#64748b;margin-top:4px}.muted{color:#64748b;font-size:.92em}code{word-break:break-all}

.review-preview-large{grid-template-columns:minmax(480px,560px) 1fr}.review-preview-large .preview img,.review-preview-large .preview video{width:100%;height:auto;display:block}.review-preview-large .preview{max-width:560px}@media(max-width:900px){.review-preview-large{grid-template-columns:1fr}.review-preview-large .preview{max-width:100%}}

button.secondary{background:#475569}.bulk-actions{display:flex;gap:10px;flex-wrap:wrap}

.destination-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin-top:16px}.destination-card{border:1px solid #dbe3ee;border-radius:12px;padding:14px;background:#f8fafc}.destination-card label{margin:8px 0}.destination-toggle{margin-bottom:12px!important}.destination-card input[type=text]{background:#fff}

.version-badge{display:inline-block;background:#101827;color:#fff;padding:8px 12px;border-radius:999px;font-weight:800}.about-panel{max-width:800px}.about-panel li{margin:8px 0}

.destination-status{font-size:.85em;padding:6px 8px;border-radius:8px;margin:6px 0 10px}.destination-status.is-selected{background:#ecfdf3;color:#067647}.destination-status.is-off{background:#f1f5f9;color:#64748b}.schedule-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:760px}.review-library{overflow:auto;max-height:650px}.review-library td:first-child,.review-library th:first-child{width:70px;text-align:center}.review-library input[type=checkbox]{width:auto}@media(max-width:700px){.schedule-controls{grid-template-columns:1fr}}

.profile-selection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:16px}.profile-network-group{border:1px solid #dbe3ee;border-radius:14px;padding:14px;background:#f8fafc}.profile-network-group h3{margin:0 0 10px}.social-profile-card{display:flex!important;align-items:flex-start;gap:10px;border:1px solid #dbe3ee;background:#fff;border-radius:10px;padding:12px;margin:8px 0;cursor:pointer}.social-profile-card input{width:auto;margin-top:3px}.social-profile-card span{display:block}.social-profile-card small{display:block;color:#64748b;margin-top:4px}.social-profile-card.profile-selected{border-color:#315efb;box-shadow:0 0 0 1px #315efb22}

/* v1.6.3 simplified client review workflow */
.client-actions{display:flex;gap:8px;flex-wrap:wrap}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.section-heading h2{display:inline-block;margin:0 0 6px}.section-heading p{margin:0;color:#64748b}.step-badge{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#315efb;color:#fff;font-weight:800;margin-right:10px;vertical-align:middle}.status-good{background:#ecfdf3;color:#067647;font-weight:800;padding:7px 10px;border-radius:999px}.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:end}.source-summary{margin-top:14px;padding:12px 14px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;color:#166534}.review-count{font-size:30px;font-weight:800;text-align:right}.review-count small{display:block;font-size:12px;font-weight:600;color:#64748b}.sync-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.sync-actions form{margin:0}.primary-large{font-size:16px;padding:13px 20px}.empty-state{padding:24px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;text-align:center}.library-toolbar{display:grid;grid-template-columns:1fr 1.4fr .8fr;gap:12px;margin:18px 0}.action-card{border:1px solid #dbe3ee;border-radius:12px;padding:14px;background:#f8fafc;display:flex;flex-direction:column;gap:9px}.action-card span{font-size:.9em;color:#64748b}.danger-card{background:#fff7f6}.mini-schedule{display:grid;grid-template-columns:1.25fr .65fr auto;gap:8px;align-items:center}.mini-schedule input{min-width:0}.unified-library th:nth-child(-n+3),.unified-library td:nth-child(-n+3){width:80px;text-align:center}.unified-library input[type=checkbox]{width:auto}.review-text-cell{min-width:280px}.table-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.automation-card{border:1px solid #e2e8f0;border-radius:12px;padding:16px;background:#f8fafc}.automation-card p{margin-bottom:0}.test-review-details summary{cursor:pointer}.test-review-details[open] summary{margin-bottom:10px}@media(max-width:900px){.source-grid,.library-toolbar{grid-template-columns:1fr}.mini-schedule{grid-template-columns:1fr}.section-heading{flex-direction:column}.review-count{text-align:left}}

/* v1.6.6 sync progress + automatic review scheduler */
.progress-overlay{position:fixed;inset:0;background:rgba(15,23,42,.52);display:flex;align-items:center;justify-content:center;z-index:9999;backdrop-filter:blur(2px)}
.progress-overlay[hidden]{display:none}
.progress-card{background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.25);padding:26px 30px;min-width:280px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;color:#0f172a}
.progress-card span{font-size:13px;color:#64748b}
.progress-wheel{width:46px;height:46px;border:5px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:rsa-spin .8s linear infinite}
@keyframes rsa-spin{to{transform:rotate(360deg)}}
.scheduler-strip{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:13px 14px;margin:0 0 16px;font-size:13px}
.scheduler-strip .button{margin-left:auto}
.advanced-manual-schedule{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:14px}
.review-library table{min-width:1180px}
.review-library{overflow:auto;max-height:900px}
