/* Final composer overrides: loaded after page-specific composer/media CSS.
   Keeps the We Are Elixir black/rainbow theme and fixes control collisions. */

/* Header / toolbar */
body .composer-window-head{
  min-height:0;
  padding:16px 18px;
  margin-bottom:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#fff;
  background:#0d0d0f;
  border:1px solid #2a2a2f;
  border-radius:14px 14px 0 0;
  box-shadow:none;
}
body .composer-window-head>div:first-child{gap:2px;min-width:0}
body .composer-window-head h1{margin:0;color:#fff;font-size:25px;line-height:1.08}
body .composer-window-head .eyebrow{color:#8d8d96}
body .composer-window-head .publisher-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
body .composer-window-head .composer-tool,
body .composer-window-head .role-pill,
body .composer-window-head .button{
  min-height:36px;
  height:36px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  white-space:nowrap;
  font-size:10.5px;
  font-weight:800;
  line-height:1;
}
body .composer-window-head .composer-tool{
  color:#d7d7dc;
  background:#171719;
  border:1px solid #303036;
  text-decoration:none;
}
body .composer-window-head .composer-tool:hover{color:#fff;border-color:#505057;background:#1d1d20}
body .composer-window-head .role-pill{color:#c7c7cd;background:#121214;border:1px solid #29292e}
body .composer-window-head .button{color:#fff;background:#151517;border:1px solid #35353a}
body .composer-window-head .button:hover{background:#202023;border-color:#56565e}
body .composer-window-head:before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:3px;
  border-radius:14px 14px 0 0;
  background:linear-gradient(90deg,#ffc72c,#ff5a1f,#f53697,#9851db,#20c6e8,#a8e63a);
}

/* Composer frame */
body .composer-grid.buffer-composer{
  border-color:#2a2a2f;
  background:#0b0b0d;
}
body .composer-card.composer-editor{background:#0d0d0f;border-color:#29292e}
body .composer-editor label{color:#f5f5f5}
body .composer-editor label span,
body .composer-editor label small,
body .composer-editor .muted{color:#96969e}
body .composer-editor input,
body .composer-editor textarea,
body .composer-editor select{color:#fff;background:#141416;border-color:#34343a}
body .composer-editor input:focus,
body .composer-editor textarea:focus,
body .composer-editor select:focus{border-color:#777780;box-shadow:0 0 0 3px rgba(255,255,255,.07)}
body .channel-chip-row{border-color:#25252a}
body .channel-chip{background:#161618!important;color:#fff!important;border-color:#34343a!important}
body .channel-chip.add{background:#111113!important;color:#cfcfd5!important}

/* Upload box: give upload and library buttons separate grid areas. */
body .media-drop{
  min-height:150px;
  grid-template-columns:46px minmax(0,1fr) auto auto;
  grid-template-areas:
    "icon title upload library"
    "icon copy upload library"
    "icon file file file";
  column-gap:12px;
  row-gap:5px;
  align-items:center;
  padding:19px;
  color:#fff;
  background:#111113;
  border:1px dashed #45454d;
}
body .media-drop:before{grid-area:icon;color:#fff;background:#1a1a1d;border-color:#35353a}
body .media-drop>strong{grid-area:title;color:#fff;font-size:13px}
body .media-drop>p{grid-area:copy;color:#92929a}
body .media-pick-button{
  grid-area:upload;
  min-width:112px;
  min-height:38px;
  margin:0;
  color:#070707;
  background:linear-gradient(100deg,#ffc72c 0%,#ff5a1f 28%,#f53697 52%,#9851db 72%,#20c6e8 88%,#a8e63a 100%);
  border:0;
  border-radius:9px;
  box-shadow:none;
}
body .media-pick-button:hover{filter:brightness(1.06);background:linear-gradient(100deg,#ffc72c 0%,#ff5a1f 28%,#f53697 52%,#9851db 72%,#20c6e8 88%,#a8e63a 100%)}
body .media-library-toggle{
  grid-area:library;
  min-width:138px;
  min-height:38px;
  margin:0!important;
  color:#fff;
  background:#19191c;
  border:1px solid #3b3b42;
  border-radius:9px;
}
body .media-library-toggle:hover{color:#fff;background:#222226;border-color:#585860}
body .media-file-meta{grid-area:file;color:#aaaab2;border-color:#29292e}
body .media-file-meta strong{color:#fff}
body .media-drop.is-dragging{background:#161619;border-color:#a9a9b2}

/* Library picker */
body .composer-library{color:#fff;background:#111113;border-color:#303036}
body .composer-library-head strong{color:#fff}
body .composer-library-head small{color:#8d8d95}
body .composer-library-head a{color:#d9d9df}
body .composer-library-item{color:#eee;background:#151517;border-color:#34343a}
body .composer-library-item:hover{border-color:#777780;background:#1b1b1e}
body .composer-library-item.selected{border-color:#fff;box-shadow:0 0 0 1px #fff}
body .composer-library-thumb{background:#09090a}

/* Right preview pane */
body .composer-preview-pane{color:#fff;background:#09090b!important}
body .preview-pane-head{
  min-height:54px;
  padding:15px 18px;
  color:#fff;
  background:#111113!important;
  border-color:#29292e!important;
}
body .preview-pane-head strong{color:#fff}
body .preview-pane-head span{color:#8e8e96;font-size:10px}
body .platform-preview-tabs{padding:12px 18px 3px;background:#09090b}
body .platform-preview-tab{color:#bcbcc3;background:#151517;border-color:#34343a}
body .platform-preview-tab:hover{color:#fff;border-color:#66666e}
body .platform-preview-tab.active{
  color:#080808;
  background:linear-gradient(100deg,#ffc72c,#ff5a1f,#f53697,#9851db,#20c6e8,#a8e63a);
  border-color:transparent;
}
body .preview-no-channel{color:#7f7f87}
body .social-preview-card{background:#111113;border-color:#303036;box-shadow:0 12px 34px rgba(0,0,0,.24)}
body .preview-card-head{border-color:#29292e}
body .preview-profile strong{color:#fff}
body .preview-profile small{color:#8c8c94}
body .preview-avatar{color:#080808;background:linear-gradient(135deg,#f53697,#9851db,#20c6e8)}
body .preview-platform{color:#d1d1d7;background:#18181b;border-color:#38383e}
body .preview-post-title{color:#fff}
body .preview-copy{color:#ededf1}
body .preview-media{background:#050506;border-color:#29292e}
body .preview-media-empty{color:#83838b}
body .preview-media-empty strong{color:#d9d9df}
body .preview-file-info{color:#97979f;background:#0d0d0f;border-color:#29292e}
body .delivery-panel{color:#fff;background:#111113!important;border-color:#29292e!important}
body .delivery-panel h2{color:#fff}
body .delivery-panel label{color:#eee}
body .delivery-panel label small,
body .delivery-panel .note{color:#909098}
body .schedule-choice{color:#fff;background:#151517;border-color:#34343a}
body .schedule-choice:hover{background:#1a1a1d;border-color:#56565e}
body .schedule-choice:has(input:checked){background:#19191c;border-color:#66666e;box-shadow:inset 3px 0 0 #fff}
body .delivery-panel input,
body .delivery-panel textarea,
body .delivery-panel select{color:#fff;background:#151517;border-color:#34343a}
body .workflow-actions .button{color:#fff;background:#171719;border-color:#3b3b41}
body .workflow-actions .button.primary{color:#080808;background:linear-gradient(100deg,#ffc72c,#ff5a1f,#f53697,#9851db,#20c6e8,#a8e63a);border:0}

@media(max-width:1180px){
  body .media-drop{
    grid-template-columns:46px minmax(0,1fr) auto;
    grid-template-areas:
      "icon title upload"
      "icon copy upload"
      "icon file file"
      ". library library";
  }
  body .media-library-toggle{justify-self:start;margin-top:6px!important}
}
@media(max-width:900px){
  body .composer-window-head{align-items:flex-start;flex-direction:column}
  body .composer-window-head .publisher-actions{margin-left:0;justify-content:flex-start}
}
@media(max-width:620px){
  body .composer-window-head{padding:14px}
  body .composer-window-head h1{font-size:22px}
  body .composer-window-head .composer-tool{display:inline-flex}
  body .composer-window-head .publisher-actions{width:100%;gap:6px}
  body .composer-window-head .composer-tool,
  body .composer-window-head .role-pill,
  body .composer-window-head .button{height:34px;min-height:34px;padding:0 9px;font-size:9.5px}
  body .media-drop{
    grid-template-columns:42px minmax(0,1fr);
    grid-template-areas:
      "icon title"
      "icon copy"
      "upload upload"
      "library library"
      "file file";
    padding:16px;
  }
  body .media-pick-button,
  body .media-library-toggle{width:100%;justify-self:stretch;margin-top:7px!important}
  body .preview-pane-head{align-items:flex-start;gap:4px;flex-direction:column}
}

/* Dashboard command-centre polish. Scoped to the homepage by the stats grid. */
body .main:has(> .stats) > .page-head{
  min-height:176px;
  padding:28px 30px;
  margin-bottom:16px;
  overflow:hidden;
  align-items:flex-end;
  background:
    radial-gradient(circle at 86% 20%,rgba(32,198,232,.12),transparent 19rem),
    radial-gradient(circle at 72% 0%,rgba(245,54,151,.11),transparent 18rem),
    linear-gradient(145deg,#111113 0%,#0b0b0d 70%);
  border:1px solid #2b2b30;
  border-radius:18px;
  box-shadow:0 18px 46px rgba(0,0,0,.18);
}
body .main:has(> .stats) > .page-head:before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:4px;
  background:linear-gradient(90deg,#ffc72c,#ff5a1f,#f53697,#9851db,#20c6e8,#a8e63a);
}
body .main:has(> .stats) > .page-head .eyebrow{color:#8d8d95}
body .main:has(> .stats) > .page-head h1{
  margin:8px 0 7px;
  color:#fff;
  font-size:clamp(34px,4vw,54px);
  line-height:.98;
  letter-spacing:-.045em;
}
body .main:has(> .stats) > .page-head p{color:#a6a6ae;font-size:14px}
body .main:has(> .stats) > .page-head .button.primary{
  min-height:44px;
  padding:10px 16px;
  color:#080808;
  background:linear-gradient(100deg,#ffc72c,#ff5a1f,#f53697,#9851db,#20c6e8,#a8e63a);
  border:0;
  border-radius:10px;
  box-shadow:0 10px 28px rgba(245,54,151,.15);
}

body .main:has(> .stats) > .stats{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
  margin-bottom:16px;
}
body .main:has(> .stats) > .stats article{
  position:relative;
  min-height:144px;
  padding:19px 19px 17px;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(145deg,#141416,#0f0f11);
  border:1px solid #29292e;
  border-radius:15px;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
body .main:has(> .stats) > .stats article:before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:3px;
  display:block;
  background:linear-gradient(90deg,#ffc72c,#ff5a1f,#f53697,#9851db,#20c6e8,#a8e63a);
}
body .main:has(> .stats) > .stats article:hover{
  transform:translateY(-2px);
  border-color:#46464d;
  background:linear-gradient(145deg,#171719,#111113);
}
body .main:has(> .stats) > .stats span{
  color:#9999a2;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
body .main:has(> .stats) > .stats strong{
  margin:12px 0 5px;
  color:#fff;
  font-size:38px;
  line-height:1;
  letter-spacing:-.045em;
}
body .main:has(> .stats) > .stats small{color:#85858e;font-size:10.5px;line-height:1.45}

body .main:has(> .stats) > .stats + .panel{
  padding:24px;
  background:linear-gradient(145deg,#111113,#0d0d0f);
  border:1px solid #29292e;
  border-radius:17px;
  box-shadow:0 18px 46px rgba(0,0,0,.14);
}
body .main:has(> .stats) > .stats + .panel .section-head{margin-bottom:18px}
body .main:has(> .stats) > .stats + .panel .section-head h2{color:#fff;font-size:22px;letter-spacing:-.025em}
body .main:has(> .stats) > .stats + .panel .section-head a{
  padding:7px 10px;
  color:#c6c6cc;
  background:#171719;
  border:1px solid #303036;
  border-radius:8px;
  text-decoration:none;
}
body .main:has(> .stats) > .stats + .panel .section-head a:hover{color:#fff;border-color:#55555d}
body .main:has(> .stats) .platform-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
body .main:has(> .stats) .platform-grid article{
  position:relative;
  min-height:142px;
  padding:15px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  overflow:hidden;
  background:#151517;
  border:1px solid #2d2d32;
  border-radius:13px;
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
body .main:has(> .stats) .platform-grid article:before{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:2px;
  background:linear-gradient(90deg,#ffc72c,#ff5a1f,#f53697,#9851db,#20c6e8,#a8e63a);
  opacity:.75;
}
body .main:has(> .stats) .platform-grid article:hover{
  transform:translateY(-2px);
  background:#19191c;
  border-color:#4a4a51;
}
body .main:has(> .stats) .platform-grid .platform-icon{
  width:38px;
  height:38px;
  color:#fff!important;
  background:linear-gradient(#171719,#171719) padding-box,linear-gradient(135deg,#f53697,#9851db,#20c6e8) border-box!important;
  border:1px solid transparent!important;
  border-radius:10px;
}
body .main:has(> .stats) .platform-grid strong{margin-top:3px;color:#fff;font-size:13px}
body .main:has(> .stats) .platform-grid small{margin-top:auto;color:#85858e;font-size:10px;line-height:1.4}

@media(max-width:1100px){
  body .main:has(> .stats) > .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .main:has(> .stats) .platform-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  body .main:has(> .stats) > .page-head{min-height:0;padding:22px;align-items:flex-start;flex-direction:column}
  body .main:has(> .stats) > .page-head h1{font-size:38px}
  body .main:has(> .stats) > .stats{grid-template-columns:1fr 1fr}
  body .main:has(> .stats) .platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:470px){
  body .main:has(> .stats) > .stats{grid-template-columns:1fr}
  body .main:has(> .stats) .platform-grid{grid-template-columns:1fr}
}
