/* Social Studio uses the shared GENESIS palette and control language. */
.social-studio {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  color: var(--ink);
  font-family: inherit;
}
.social-studio * { box-sizing: border-box; }
.social-main { min-width: 0; }
.social-rail {
  background: linear-gradient(155deg, #111b29f7, #080e17fc 85%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px 13px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px #dbefff06;
}
.social-wordmark { color: var(--ink); font-size: 16px; font-weight: 550; letter-spacing: .16em; padding: 0 6px; }
.social-wordmark span { color: var(--cyan); }
.social-eyebrow { color: var(--muted); font-size: 9px; font-weight: 550; letter-spacing: .2em; text-transform: uppercase; margin: 23px 6px 13px; }
.social-rail nav { display: grid; gap: 6px; }
.social-studio button {
  font: inherit;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .01em;
  color: #e0edf4;
  border: 1px solid #a6c9de40;
  background: linear-gradient(145deg, #213144cc, #132132d9);
  border-radius: 7px;
  padding: 10px 13px;
  min-height: 38px;
  cursor: pointer;
  box-shadow: inset 0 1px #ffffff09, 0 4px 14px #00000015;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.social-studio button:hover { background: #254152; border-color: #add2de8a; }
.social-studio button:focus-visible,
.social-studio input:focus-visible,
.social-studio select:focus-visible,
.social-studio textarea:focus-visible,
.social-studio summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.social-studio button:disabled { opacity: .5; cursor: wait; }
.social-rail nav button {
  display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 11px 10px; color: var(--muted); border-color: transparent;
  background: transparent; box-shadow: none; font-size: 11px; font-weight: 450;
}
.social-rail nav button:hover { color: var(--ink); background: #d1ecff08; }
.social-rail nav button span { width: 17px; text-align: center; color: #8fa9bb; font-size: 15px; }
.social-rail nav button b { margin-left: auto; color: var(--cyan); background: #a5efe90c; border: 1px solid #a5efe926; border-radius: 5px; font-size: 9px; font-weight: 500; padding: 2px 5px; }
.social-rail nav button b:empty { display: none; }
.social-rail nav button.selected { color: var(--cyan); background: linear-gradient(90deg, #a5efe911, #a5efe903); border-color: #a5efe928; box-shadow: inset 2px 0 var(--cyan); }
.social-rail nav button.selected span { color: var(--cyan); }
.social-studio .social-orange,
.social-studio .social-navy { background: linear-gradient(110deg, #d1f9ee, #a9dcdf); border-color: #d4faf3; color: #112d35; box-shadow: 0 4px 20px #91dbe61c, inset 0 1px #ffffff99; }
.social-studio .social-orange:hover,
.social-studio .social-navy:hover { background: linear-gradient(110deg, #ecfff9, #c3eef0); border-color: #effffc; }
.social-rail-note { margin: 30px 6px 0; padding-top: 23px; border-top: 1px solid var(--line); }
.social-rail-note>span { display: block; font-size: 25px; color: var(--cyan); margin-bottom: 12px; }
.social-rail-note strong { font-size: 11px; font-weight: 500; color: #d4e2ee; }
.social-rail-note p { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 8px 0 0; }
.social-header {
  min-height: 230px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 27px; margin: 0 0 22px;
  border: 1px solid #c5e7ff28; border-radius: 14px;
  background-image: linear-gradient(90deg, #05101cef 0%, #06101cb0 52%, #09132265), linear-gradient(0deg, #07111bef, #07111b12 80%), url('/command/assets/world-hq.webp');
  background-size: cover; background-position: center 45%;
  box-shadow: 0 12px 36px #00000020, inset 0 0 0 1px #ffffff04;
}
.social-header>div:first-child { min-width: 0; }
.social-header .social-eyebrow { color: var(--cyan); margin: 0 0 16px; font-size: 9px; letter-spacing: .22em; }
.social-header h1 { color: #f5f8ff; font-size: clamp(29px, 2.8vw, 42px); line-height: 1.12; font-weight: 450; letter-spacing: -.045em; margin: 0; text-wrap: balance; text-shadow: 0 4px 28px #00000080; }
.social-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.social-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.social-stats>div { position: relative; padding: 20px; background: linear-gradient(130deg, #152335d9, #0d1825e8); border: 1px solid #b9d5e929; border-radius: 12px; box-shadow: inset 0 1px #edf6ff05; }
.social-stats>div::before { content: ''; position: absolute; top: 22px; left: 0; width: 2px; height: 22px; background: var(--cyan); opacity: .55; }
.social-stats span { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.social-stats strong { color: var(--ink); font-size: 32px; font-weight: 450; letter-spacing: -.04em; display: block; margin-top: 10px; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.social-panel { background: linear-gradient(145deg, #142131ea, #0d1725f5); border: 1px solid #afcde026; border-radius: 14px; padding: 23px; min-width: 0; margin-bottom: 22px; box-shadow: inset 0 1px #dbefff06, 0 10px 34px #00000014; }
.social-grid>.social-panel { margin-bottom: 0; }
.social-grid { margin-bottom: 22px; }
.social-panel h2 { color: var(--ink); font-size: 16px; font-weight: 550; letter-spacing: -.025em; margin: 0 0 14px; }
.social-panel p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.social-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.social-chip { color: #adc2d4; background: #a5c8e009; border: 1px solid #a5c8e026; border-radius: 5px; padding: 4px 7px; white-space: nowrap; font-size: 9px; font-weight: 450; }
.social-agent { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; }
.social-agent .social-eyebrow { margin: 0 0 16px; color: var(--cyan); }
.social-agent h2 { font-size: 25px; letter-spacing: -.04em; line-height: 1.25; font-weight: 450; }
.social-studio label { display: block; color: #c3d3e4; font-size: 11px; font-weight: 450; margin-bottom: 15px; }
.social-studio input,.social-studio textarea,.social-studio select { width: 100%; max-width: 100%; display: block; margin-top: 8px; padding: 11px 12px; border-radius: 7px; border: 1px solid #a6c9de30; background: #08131fe0; color: var(--ink); font: inherit; font-size: 12px; line-height: 1.6; box-shadow: inset 0 1px 4px #00000020; }
.social-studio input::placeholder,.social-studio textarea::placeholder { color: #899eb4; opacity: 1; }
.social-studio textarea { min-height: 104px; resize: vertical; }
.social-studio fieldset { border: 0; min-width: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.social-studio legend { color: #b4c9dc; font-size: 10px; font-weight: 500; margin-bottom: 9px; }
.social-studio fieldset label { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 450; }
.social-studio input[type=checkbox] { width: 14px; height: 14px; display: inline; margin: 0; accent-color: var(--cyan); }
.social-studio small { display: block; font-size: 10px; line-height: 1.7; color: var(--muted); margin: 9px 0; }
.social-item { background: #08121e80; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 12px 0; }
.social-item-meta { display: flex; justify-content: space-between; align-items: start; gap: 9px; color: #9eb5ca; font-size: 9px; text-transform: uppercase; font-weight: 450; letter-spacing: .08em; }
.social-item-meta b { color: #d7c198; background: #edc68509; border: 1px solid #edc68530; padding: 3px 7px; border-radius: 5px; font-size: 8px; font-weight: 450; }
.social-item h3 { color: #e5eff8; font-size: 14px; font-weight: 500; line-height: 1.5; margin: 14px 0 5px; }
.social-panel .social-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: #d0dfec; }
.social-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.social-actions button { padding: 8px 10px; font-size: 10px; min-height: 34px; }
.social-item details { font-size: 11px; color: #b2c8d9; }
.social-item details summary { cursor: pointer; line-height: 1.7; }
.social-item details p { white-space: pre-wrap; overflow-wrap: anywhere; }
.social-empty { text-align: center; padding: 30px 12px; }
.social-empty>span { display: inline-grid; place-items: center; width: 43px; height: 43px; color: #a5efe9aa; border: 1px solid #a5efe918; border-radius: 12px; background: #a5efe905; font-size: 24px; }
.social-empty h3 { color: #d4e2ee; font-size: 13px; font-weight: 450; margin: 16px 0 8px; }
.social-empty p { font-size: 11px; max-width: 245px; margin: 0 auto; }
.social-notice { color: #d3e9f1; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-notice:not(:empty) { padding: 13px 17px; background: #142b38; border: 1px solid #a5efe92b; border-radius: 9px; margin-bottom: 22px; }
.social-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.social-compose { border-color: #a5efe944; }
.social-source-list { display: grid; gap: 8px; }
.social-source-list button { text-align: left; display: flex; justify-content: space-between; gap: 14px; line-height: 1.6; }
.social-source-list button span { flex-shrink: 0; color: var(--cyan); }
.social-panel .social-date { color: var(--amber); font-weight: 500; }
.social-brand-label { margin: 0 5px 0!important; font-size: 10px!important; }
.social-brand-label select { font-size: 11px; padding: 9px 7px; }
@media (max-width: 1150px) {
  .social-studio { grid-template-columns: 164px minmax(0, 1fr); gap: 18px; }
  .social-agent { grid-template-columns: 1fr; gap: 12px; }
  .social-header { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .social-grid { grid-template-columns: 1fr; }
  .social-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .social-studio { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .social-rail { padding: 17px 13px; }
  .social-wordmark { font-size: 14px; }
  .social-rail>.social-eyebrow,.social-rail-note { display: none; }
  .social-brand-label { margin-top: 16px!important; }
  .social-rail nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 15px; gap: 5px; }
  .social-rail nav button { font-size: 10px; padding: 9px 6px; gap: 5px; }
  .social-rail nav button span { width: 12px; font-size: 13px; }
  .social-rail nav button b { padding: 2px 4px; font-size: 8px; }
  .social-header { padding: 24px; min-height: 245px; background-position: 65% center; }
  .social-header h1 { font-size: 34px; }
  .social-panel { padding: 20px; }
  .social-form-grid { grid-template-columns: 1fr; }
  .social-stats { gap: 12px; }
  .social-stats>div { padding: 18px; }
  .social-panel-heading,.social-item-meta { flex-wrap: wrap; }
  .social-item { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .social-studio button { transition: none; }
}
.social-media-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:14px 0}
.social-media-preview {margin:0;min-width:0}
.social-media-preview img,.social-media-preview video {width:100%;height:160px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.social-media-preview figcaption {font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:6px}
.social-asset-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:20px;align-items:start}
.social-asset-grid .social-item {min-width:0;border:1px solid var(--line);border-radius:14px;padding:18px;margin:0}
.social-asset-grid .social-media-preview img,.social-asset-grid .social-media-preview video,.social-source-preview {display:block;width:100%;height:300px;object-fit:contain;background:var(--bg);border-radius:10px;margin-bottom:16px}
.social-asset-grid h3,.social-asset-grid p {overflow-wrap:anywhere}
.social-studio .social-media-choice,.social-studio .social-consent {display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px}
.social-studio .social-media-choice input,.social-studio .social-consent input {width:18px;flex:0 0 18px;margin:2px 0}
.social-studio .social-compose fieldset {display:block;border:0;padding:0;margin:0;min-width:0}
.social-studio .social-compose fieldset label {display:block;font-size:11px}
.social-studio .social-compose .social-media-choice {display:flex}
.social-studio .social-compose fieldset>label,.social-media-editor {margin-bottom:16px}
.social-studio .social-error {color:var(--red);overflow-wrap:anywhere}
.social-inbox-tools {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}
.social-studio dl {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:12px;gap:8px;color:var(--muted)}
.social-studio dt,.social-studio dd {margin:0;overflow-wrap:anywhere}
.social-studio [data-social-provider],.social-studio [data-social-bind] {display:grid;gap:12px;margin:18px 0;max-width:580px}

.social-studio .social-compose fieldset.social-campaign-days{display:flex;flex-wrap:wrap;gap:14px;border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0}.social-studio .social-compose .social-campaign-days label{display:flex;align-items:center;gap:6px}.social-campaign-days input{width:auto}.social-automatic-intro{margin-bottom:20px}.social-automatic-intro .social-muted{margin-top:14px;color:var(--muted);font-size:13px}

.social-research-status{padding:14px 16px;margin:16px 0;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.social-research-status strong{color:var(--amber)}.social-research-status[data-research-status="ready"] strong{color:var(--cyan)}
.social-research-status p{margin:6px 0;font-size:13px}.social-research-status small,.social-research-context small{color:var(--muted)}
.social-research-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.social-research-context p{margin:6px 0}
.social-research-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 24px}.social-research-terms article,.social-research-source{padding:16px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
.social-research-source{margin:12px 0}.social-studio .social-compose section h3{margin-top:26px}.social-research-terms p{margin:8px 0}
@media(max-width:620px){.social-research-context,.social-research-terms{grid-template-columns:1fr}}

.social-production-budget,.social-generation-settings{border:1px solid #a5efe92b;border-radius:10px;background:#a5efe905;padding:16px;margin:16px 0}
.social-production-budget>strong{color:var(--cyan);font-size:12px;font-weight:500}
.social-production-budget p:last-child,.social-generation-settings p:last-child{margin-bottom:0}
.social-generation-settings h3{font-size:15px;font-weight:500;margin:0 0 12px}
.social-generation-settings [data-reference-preview]{max-width:230px;margin-bottom:16px}
.social-production-video{display:block;width:100%;height:360px;max-height:65vh;object-fit:contain;background:var(--bg);border:1px solid var(--line);border-radius:10px;margin:16px 0}
.social-quality img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:7px;margin:12px 0;background:var(--bg)}
.social-production-item details{margin:14px 0}
.social-account-evidence dl{grid-template-columns:minmax(90px,.65fr) minmax(0,1fr);gap:16px}
.social-account-evidence dt{color:var(--ink)}
.social-account-evidence dd small{margin:5px 0 0}
.social-generation-settings[hidden]{display:none}
@media(max-width:620px){.social-production-video{height:330px}.social-account-evidence dl{grid-template-columns:1fr;gap:6px}.social-account-evidence dd{margin-bottom:12px}}
