/* Scoped campaign workflow enhancement for Social Media Post Previewer. */
#tool-socialhook .mtd-social-variant-control{border:1px solid #335267;border-radius:10px;background:rgba(107, 155, 206,.30);padding:10px 12px;margin-top:9px}
#tool-socialhook .mtd-social-variant-switch{display:flex;gap:10px;align-items:flex-start;cursor:pointer;margin:0}
#tool-socialhook .mtd-social-variant-switch input{width:16px;height:16px;margin:2px 0 0;flex:0 0 auto;accent-color:#74a1d1}
#tool-socialhook .mtd-social-variant-switch strong{display:block;font-size:12px;color:var(--text-primary,#e7eff9)}
#tool-socialhook .mtd-social-variant-switch small{display:block;font-size:10px;line-height:1.55;color:var(--text-muted,#a3b7c5);margin-top:3px}
#tool-socialhook .mtd-social-variant-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid #355267;padding-top:9px;margin-top:9px;font-size:10.5px;color:var(--text-muted,#aec2db)}
#tool-socialhook .mtd-social-variant-actions[hidden]{display:none!important}
#tool-socialhook .mtd-social-insights{padding:10px 12px;margin:10px 0 6px;border:1px solid #3b74b1;border-radius:10px;background:rgba(142, 179, 217,.36);line-height:1.55;color:var(--text-primary,#e1ebf7);font-size:11px}
#tool-socialhook .mtd-social-insights strong{display:block;font-size:11px}
#tool-socialhook .mtd-social-insights p{margin:4px 0 0;color:var(--text-muted,#bed2dd)}
#tool-socialhook .mtd-social-project-tools{margin:12px 0 10px;border:1px solid #385369;border-radius:11px;background:rgba(14,36,51,.5);padding:12px}
#tool-socialhook .mtd-social-project-tools summary,#tool-socialhook .mtd-social-matrix summary{font-weight:750;cursor:pointer;font-size:12px;line-height:1.5}
#tool-socialhook .mtd-social-project-tools summary i{margin-right:6px;color:#88b0db}
#tool-socialhook .mtd-project-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
#tool-socialhook .mtd-project-drop{display:flex;align-items:center;gap:12px;border:1px dashed #4a7183;border-radius:11px;background:rgba(9,35,50,.7);padding:13px 12px;cursor:pointer;min-height:68px}
#tool-socialhook .mtd-project-drop.is-dragging{border-color:#74a1d1;background:rgba(132, 172, 214,.24)}
#tool-socialhook .mtd-project-drop>i{font-size:18px;color:#83acd8}
#tool-socialhook .mtd-project-drop strong{display:block;font-size:11px}
#tool-socialhook .mtd-project-drop small{display:block;font-size:10px;line-height:1.55;color:var(--text-muted,#b3c6d1)}
#tool-socialhook .mtd-project-help,#tool-socialhook .mtd-project-status{margin:10px 0 0;font-size:10px;line-height:1.55;color:var(--text-muted,#b3c6d1)}
#tool-socialhook .mtd-social-matrix{margin-top:12px;padding:12px;border:1px solid #355267;border-radius:12px;background:rgba(10,31,45,.45)}
#tool-socialhook .mtd-matrix-cards{display:grid;gap:9px;margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
#tool-socialhook .mtd-matrix-card{min-width:0;padding:10px;border:1px solid #355569;border-radius:10px;background:rgba(9,29,44,.68)}
#tool-socialhook .mtd-matrix-title{display:flex;justify-content:space-between;align-items:flex-start;gap:7px;flex-wrap:wrap;font-size:11px}
#tool-socialhook .mtd-matrix-good,#tool-socialhook .mtd-matrix-review{font-size:9px;border:1px solid #2a537e;border-radius:15px;padding:2px 6px;color:#b4c8e0}
#tool-socialhook .mtd-matrix-review{color:#f8cf96;border-color:#856948}
#tool-socialhook .mtd-matrix-snippet{margin:8px 0;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;max-height:68px;overflow:hidden}
#tool-socialhook .mtd-matrix-note{margin:0;font-size:10px;color:var(--text-muted,#b3c6d1);line-height:1.55;overflow-wrap:anywhere}
#tool-socialhook .mtd-matrix-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
#tool-socialhook .mtd-matrix-actions button{font-size:10px!important}
#tool-socialhook .mtd-matrix-actions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:650px){#tool-socialhook .mtd-matrix-cards{grid-template-columns:1fr}}
@media(max-width:360px){#tool-socialhook .mtd-project-actions button{flex:1 1 100%}}
/* Keep the profile uploader readable on narrow phones. */
@media(max-width:480px){
 #tool-socialhook #hook-avatar-dropzone{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;gap:8px!important}
 #tool-socialhook #hook-avatar-dropzone .hook-avatar-drop-preview{grid-column:1;grid-row:1}
 #tool-socialhook #hook-avatar-dropzone .hook-avatar-drop-copy{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
 #tool-socialhook #hook-avatar-dropzone .hook-avatar-browse{grid-column:1 / -1;grid-row:2;width:100%!important}
}
@media(max-width:480px){
 #tool-socialhook #hook-avatar-dropzone .hook-avatar-browse{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important;justify-self:stretch!important}
}
/* Light theme: match the site's existing contrast without dark-on-dark panels. */
body.light-theme #tool-socialhook .mtd-social-variant-control,
body.light-theme #tool-socialhook .mtd-social-insights,
body.light-theme #tool-socialhook .mtd-social-project-tools,
body.light-theme #tool-socialhook .mtd-social-matrix,
body.light-theme #tool-socialhook .mtd-matrix-card{background:rgba(232,240,250,.94)!important;border-color:#b5c8e0!important;color:#173241!important}
body.light-theme #tool-socialhook .mtd-social-variant-switch strong,
body.light-theme #tool-socialhook .mtd-social-insights strong,
body.light-theme #tool-socialhook .mtd-project-drop strong{color:#173241!important}
body.light-theme #tool-socialhook .mtd-social-variant-switch small,
body.light-theme #tool-socialhook .mtd-social-insights p,
body.light-theme #tool-socialhook .mtd-project-help,
body.light-theme #tool-socialhook .mtd-project-status,
body.light-theme #tool-socialhook .mtd-matrix-note{color:#456477!important}
body.light-theme #tool-socialhook .mtd-project-drop{background:#fff!important;border-color:#a4bbd7!important;color:#173241!important}
