@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css");@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Noto+Serif+KR:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  --font-sans: "Pretendard Variable", "Pretendard", "Malgun Gothic", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Noto Serif KR", Georgia, serif;
  --font-mono: "JetBrains Mono", "D2Coding", Consolas, monospace;
  font-family: var(--font-sans);
  color: #0A1A33;
  background: #F2F1EC;
  --bg: #F2F1EC;
  --panel: #FBFAF6;
  --paper: #FBFAF6;
  --line: #0E275033;
  --muted: #6E7A8F;
  --text: #0A1A33;
  --ink: #0A1A33;
  --primary: #0E2750;
  --primary-dark: #0E2750;
  --accent: #C9A86A;
  --success: #0E2750;
  --success-bg: #0E275014;
  --warning: #A8853F;
  --warning-bg: #C9A86A33;
  --danger: #B42318;
  --danger-bg: #FEE4E2;
  --danger-line: #FDA29B;
  --focus: #C9A86A;
  --shadow: 0 1px 2px #0A1A330A, 0 8px 22px #0A1A3309;
}
* {
  box-sizing: border-box;
}
html {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
.shell {
  width: calc(100% - 32px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 0 36px;
}
.topbar,
.sectionHead,
.topActions,
.cardTitleRow,
.adminSettingsHeader,
.fieldLabelRow,
.formActions,
.jobActions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sectionHead,
.fieldLabelRow,
.formActions,
.jobActions,
.previewHeader,
.adminSettingsHeader,
.connectionActions {
  flex-wrap: wrap;
}
.topbar,
.sectionHead,
.fieldLabelRow,
.formActions {
  justify-content: space-between;
}
.composePanel .sectionHead,
.batchPanel .sectionHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.composePanel .sectionHead .formStatus,
.batchPanel .sectionHead .formStatus {
  justify-self: end;
}
.sectionHeadActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.composePanel .sectionHead .sectionHeadActions {
  justify-self: end;
}
.sectionHeadActions .secondaryButton {
  min-height: 34px;
  padding-inline: 12px;
}
.sectionHeadActions .dangerButton {
  min-height: 34px;
  padding-inline: 12px;
}
.jobsActions > button {
  flex: 0 1 180px;
}
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 12px;
  padding: 20px 22px;
  border: 1px solid #0E2750;
  border-radius: 8px;
  background: #0E2750;
  color: #F2F1EC;
  box-shadow: var(--shadow);
}
.topbar h1,
.topbar p {
  color: #F2F1EC;
}
.topbar .eyebrow {
  color: #C9A86A;
}
.topActions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topbar > div,
.sectionHead > div,
.topActions .linkButton,
.cardTitleRow,
.fieldLabelRow,
.formActions,
.jobActions,
.connectionBody,
.connectionCard,
.channelSection,
.copySection,
.marketingTools,
.imagePicker,
.job > div,
.jobBody,
.jobMeta,
.batchControls,
.batchInsights,
.publishPreviewPanel {
  min-width: 0;
}
.topbar p {
  line-height: 1.35;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}
h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
p {
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.eyebrow {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.muted,
.fieldHint {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.workspaceNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.workspaceMainTabs,
.workspaceUtilityTabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.workspaceMainTabs {
  width: min(420px, 100%);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px #0A1A330A;
}
.workspaceUtilityTabs {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.workspaceNav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 10px;
  color: #6E7A8F;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.workspaceUtilityTabs button {
  flex: 0 1 auto;
  min-width: 108px;
  border-color: var(--line);
  background: #FFFFFF;
  color: #6E7A8F;
  font-weight: 700;
  box-shadow: 0 1px 2px #0A1A3308;
}
.workspaceNav button:hover {
  background: #FBFAF6;
  color: var(--text);
}
.workspaceNav button.isActive {
  border-color: #0E275033;
  background: #C9A86A33;
  color: var(--primary-dark);
}
.workspaceUtilityTabs button.isActive {
  border-color: #0E275033;
  background: #C9A86A33;
}
[data-workspace-panel] {
  display: none;
}
[data-workspace-panel].isWorkspaceActive {
  display: block;
}
.summaryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.summaryItem {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}
.summaryIcon,
.platformMark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid #0E275033;
  background: #0E275014;
  color: #0E2750;
  font-weight: 800;
}
.platformMark svg {
  width: 22px;
  height: 22px;
  display: block;
}
.platformMark--instagram {
  border-color: transparent;
  background:
    radial-gradient(circle at 30% 105%, #FEDA77 0 16%, #F58529 32%, #DD2A7B 56%, #8134AF 78%, #515BD4 100%);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px #FFFFFF33;
}
.platformMark--instagram svg path,
.platformMark--threads svg path {
  fill: currentColor;
}
.platformMark--threads {
  background: #061328;
  color: #FFFFFF;
}
.platformMark--kakao {
  background: #C9A86A;
  color: #0A1A33;
}
.platformMark--kakao svg path {
  fill: currentColor;
}
.platformMark--fallback {
  font-size: 16px;
}
.summaryIcon {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  font-size: 0;
}
.summaryItem .summaryIcon {
  width: 10px;
  height: 10px;
}
.summaryItem.ready .summaryIcon {
  background: var(--success-bg);
  color: var(--success);
}
.summaryItem.missing .summaryIcon {
  background: var(--danger-bg);
  color: var(--danger);
}
.summaryItem strong {
  font-size: 16px;
}
.summaryItem p {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.customerStartPanel {
  margin-bottom: 18px;
  padding: 14px 16px;
  box-shadow: none;
  background: #FFFFFF;
}
.startSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.startStep {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  min-height: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.startStep p {
  grid-column: 1 / -1;
  margin-top: 0;
}
.startStep span,
.platformStatusItem span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 16px;
  font-weight: 800;
}
.startStep.ready {
  border-color: #0E275066;
}
.startStep.ready span,
.platformStatusItem.ok span {
  background: var(--success-bg);
  color: var(--success);
}
.startStep.missing span,
.platformStatusItem.missing span {
  background: var(--danger-bg);
  color: var(--danger);
}
.platformStatusItem.pending span {
  background: var(--warning-bg);
  color: var(--warning);
}
.startStep p,
.platformStatusItem p,
.startActions p {
  font-size: 16px;
  line-height: 1.35;
}
.startActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #F2F1EC;
}
.postingFlow,
.mainColumn {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel {
  position: relative;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.composePanel {
  padding: 18px;
}
.composeWorkspace,
.batchWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.48fr);
  gap: 18px;
  align-items: start;
}
.composeEditorColumn,
.composePreviewColumn,
.batchEditorColumn,
.batchPreviewColumn,
.selectedMediaPanel,
.batchSelectedPreviewPanel {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.composePreviewColumn,
.batchPreviewColumn {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  scrollbar-gutter: stable;
}
form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
label,
fieldset {
  display: grid;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  margin-bottom: 9px;
  font-weight: 700;
}
input,
textarea,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #0E275033;
  border-radius: 6px;
  padding: 10px 11px;
  background: #FFFFFF;
  color: var(--text);
  font: inherit;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
.setupGrid {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  grid-template-areas:
    "channels copy"
    "tracking copy";
  gap: 14px;
  align-items: start;
}
.channelSection {
  grid-area: channels;
}
.copySection {
  grid-area: copy;
}
.marketingTools {
  grid-area: tracking;
}
.formSection {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.optionalSection {
  background: #FBFAF6;
}
.formSectionHead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.formSectionHead div {
  display: grid;
  gap: 2px;
}
.formSectionHead strong {
  font-size: 16px;
}
.formSectionHead span:not(.sectionToken) {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.sectionToken {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  width: fit-content;
  max-width: 72px;
  border-radius: 999px;
  border: 1px solid #0E275033;
  background: #FBFAF6;
  color: #6E7A8F;
  padding: 3px 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #C9A86A59;
  border-color: var(--focus);
}
button,
.linkButton {
  max-width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
button:hover,
.linkButton:hover {
  background: var(--primary-dark);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.secondaryButton,
.ghostButton {
  border: 1px solid #0E275033;
  background: #FFFFFF;
  color: var(--text);
}
.secondaryButton {
  min-height: 36px;
}
.topbar .secondaryButton {
  border-color: #0E275033;
  background: #FFFFFF;
  color: var(--text);
}
.topbar .secondaryButton:hover {
  background: #FBFAF6;
}
.secondaryButton:hover,
.ghostButton:hover {
  background: #FBFAF6;
}
.ghostButton {
  min-height: 32px;
  padding: 0 10px;
  font-size: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.formStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  max-width: 100%;
  width: fit-content;
  border-radius: 999px;
  background: #0E275014;
  color: #6E7A8F;
  padding: 5px 11px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.isHidden {
  display: none;
}
.fileDrop {
  min-height: 88px;
  place-items: center;
  text-align: center;
  border: 1px dashed #0E275066;
  border-radius: 8px;
  background: #F2F1EC;
  color: var(--text);
  cursor: pointer;
}
.fileDrop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.fileDrop span {
  font-weight: 700;
}
.fileDrop small {
  color: var(--muted);
  font-weight: 600;
}
.imagePicker {
  display: grid;
  gap: 10px;
}
.marketingTools {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  overflow: hidden;
}
.formSection.marketingTools {
  padding: 0;
}
.marketingSummary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
.marketingSummary::-webkit-details-marker {
  display: none;
}
.marketingSummary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0E275014;
  color: var(--muted);
  font-weight: 800;
}
.marketingTools[open] .marketingSummary {
  border-bottom: 1px solid var(--line);
}
.marketingTools[open] .marketingSummary::after {
  content: "-";
}
.marketingFields {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.toggleRow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.toggleRow input {
  width: 18px;
  min-height: 18px;
}
.utmPreview {
  min-height: 34px;
  border: 1px solid #0E275033;
  border-radius: 6px;
  padding: 9px 10px;
  background: #FFFFFF;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.campaignHelp {
  display: grid;
  gap: 4px;
  border: 1px solid #0E275033;
  border-radius: 6px;
  padding: 9px 10px;
  background: #F2F1EC;
}
.campaignHelp strong {
  font-size: 16px;
}
.campaignHelp span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.manualPostDetails {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFAF6;
}
.manualPostDetails summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.manualPostDetails summary::-webkit-details-marker {
  display: none;
}
.manualPostDetails summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0E275014;
  color: var(--muted);
}
.manualPostDetails[open] summary::after {
  content: "-";
}
.manualPostDetails small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.manualPostContent {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}
.postExecutionGrid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.postModeGrid {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: start;
}
.schedulerBoard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.batchSetupGrid {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  grid-template-areas: "channels copy";
  gap: 14px;
  margin-bottom: 12px;
  align-items: start;
}
.batchChannelSection {
  grid-area: channels;
}
.batchCopySection {
  grid-area: copy;
}
.batchInsights {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.utmPreview.ready {
  border-style: solid;
  color: var(--primary-dark);
}
.trackingDetails {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.trackingDetails summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 700;
}
.trackingFields {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.platformCopyDetails {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFAF6;
}
.platformCopyDetails summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.platformCopyDetails summary::-webkit-details-marker {
  display: none;
}
.platformCopyDetails small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.platformCopyGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.fileDrop:focus-within,
.platformPicker input:focus-visible + span,
.quickPlatformButton:focus-visible,
button:focus-visible,
.linkButton:focus-visible {
  outline: 3px solid #C9A86A59;
  border-color: var(--focus);
}
.batchControls,
.batchPlan,
.batchQueue,
.batchDateGroups,
.scheduleCalendar {
  display: grid;
  gap: 12px;
}
.folderDrop {
  min-height: 132px;
  background: #FFFFFF;
}
.manualBatchAdd {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #FBFAF6;
}
.batchManualAddGrid {
  grid-template-columns: minmax(180px, 0.42fr) minmax(240px, 1fr);
}
.compactFileDrop {
  min-height: 96px;
  background: #FFFFFF;
}
.batchFolderFeedback {
  display: none;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #FFFFFF;
}
.batchFolderFeedback.ready,
.batchFolderFeedback.warning {
  display: grid;
}
.batchFolderFeedback.ready {
  border-color: #0E275066;
  background: var(--success-bg);
}
.batchFolderFeedback.warning {
  border-color: #C9A86A66;
  background: var(--warning-bg);
}
.batchFolderFeedback span,
.batchFolderFeedback small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.batchFolderFeedback details {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.batchFolderFeedback summary {
  cursor: pointer;
  color: var(--warning);
  font-size: 16px;
  font-weight: 800;
}
.batchFolderFeedback details div {
  display: grid;
  gap: 4px;
}
.batchTimeGrid {
  grid-template-columns: minmax(160px, 0.55fr) minmax(220px, 1fr);
}
.batchGuide,
.batchMetricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.batchGuide article,
.batchMetricGrid article,
.batchPlanEmpty,
.batchRuleSummary,
.batchChecks,
.batchSkipped {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  padding: 9px 11px;
}
.batchGuide article,
.batchPlanEmpty,
.batchMetricGrid article {
  display: grid;
  gap: 4px;
}
.batchGuide article,
.batchRuleSummary {
  background: #F2F1EC;
}
.batchGuide span,
.batchPlanEmpty span,
.batchRuleSummary span,
.batchSkipped span {
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.batchMetricGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.batchMetricGrid article {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
}
.batchMetricGrid article:last-child {
  border-right: 0;
}
.batchMetricGrid span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.batchMetricGrid strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.batchRuleSummary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.batchChecks {
  display: grid;
  gap: 6px;
  border-color: #C9A86A66;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 16px;
  font-weight: 700;
}
.batchChecks.ok {
  border-color: #0E275066;
  background: var(--success-bg);
  color: var(--success);
}
.batchSkipped {
  border-color: #C9A86A66;
  background: #C9A86A33;
}
.batchSkipped summary {
  cursor: pointer;
  color: var(--warning);
  font-weight: 700;
}
.batchSkipped div {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.batchSkipped article {
  display: grid;
  gap: 3px;
}
.batchSummary,
.batchDateHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.batchSummary {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #F2F1EC;
}
.batchSummary span,
.batchFile small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.batchDateGroup {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.batchDateHeader {
  padding: 10px 12px;
  background: #F2F1EC;
  cursor: pointer;
  list-style: none;
}
.batchDateHeader::-webkit-details-marker {
  display: none;
}
.batchDateHeader::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0E275014;
  color: var(--muted);
  font-weight: 700;
}
.batchDateGroup[open] .batchDateHeader::after {
  content: "-";
}
.batchDateHeader span,
.batchBadge,
.batchProgress {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.batchDateHeader span {
  background: #C9A86A33;
  color: var(--primary-dark);
}
.batchFile {
  display: grid;
  grid-template-columns: 30px 74px minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.batchFile:hover,
.batchFile:focus-visible,
.batchFile.isSelected {
  background: #0E275014;
}
.batchFile:focus-visible,
.batchFile.isSelected {
  outline: 3px solid #C9A86A59;
  outline-offset: -3px;
}
.batchSequence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #0E275014;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.batchThumb {
  display: block;
  width: 74px;
  height: 74px;
  border: 1px solid #0E275033;
  border-radius: 8px;
  object-fit: cover;
  background: #061328;
}
.batchThumbPlaceholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #F2F1EC;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.batchFile strong {
  overflow-wrap: anywhere;
}
.batchFileMeta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.batchFileSchedule {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}
.batchFileSchedule strong {
  font-size: 16px;
}
.batchBadge {
  background: var(--success-bg);
  color: var(--success);
}
.batchProgress {
  background: #0E275014;
  color: var(--muted);
}
.batchProgress.success {
  background: var(--success-bg);
  color: var(--success);
}
.batchProgress.failed {
  background: var(--danger-bg);
  color: var(--danger);
}
.batchProgress.running,
.batchProgress.uploading,
.batchProgress.creating,
.batchProgress.scheduling {
  background: var(--warning-bg);
  color: var(--warning);
}
.batchRemoveButton {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 16px;
}
.batchBadge.warning,
.batchWarning {
  background: var(--warning-bg);
  color: var(--warning);
}
.batchWarning {
  padding: 10px 12px;
  border: 1px solid #C9A86A66;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}
.captionBadge {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #0E275014;
  color: #6E7A8F;
  font-size: 16px;
  font-weight: 700;
}
.batchCaptionPreview {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.batchSelectedPreview {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  overflow: hidden;
}
.batchSelectedPreview.emptyState {
  display: grid;
  place-items: center;
  padding: 18px;
}
.batchSelectedPreviewCard {
  display: grid;
  min-width: 0;
}
.batchPreviewStage {
  min-height: 260px;
}
.batchPreviewStage img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #061328;
}
.batchPreviewStage .previewGeneratedImage {
  width: 100%;
  min-height: 260px;
}
.batchPreviewHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  background: #FFFFFF;
}
.batchPreviewHeader > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.batchPreviewHeader .multiMediaIndex {
  position: static;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 4px 9px;
  background: #0E275014;
  color: #0A1A33;
}
.batchPreviewHeader strong,
.batchPreviewHeader small {
  overflow-wrap: anywhere;
}
.batchSelectedPreview .batchPostPreviewTexts {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #FBFAF6;
}
.scheduleCalendar {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.scheduleCalendarHeader,
.calendarLegend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.scheduleCalendarHeader span,
.calendarLegend span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.calendarLegend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.calendarLegend span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #C9A86A33;
}
.calendarLegend .existing::before {
  background: var(--warning-bg);
}
.calendarLegend .conflict::before {
  background: var(--danger-bg);
}
.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendarWeekday {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.calendarDay {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  background: #F2F1EC;
}
.calendarDay.outside {
  opacity: 0.45;
}
.calendarDay.today {
  border-color: var(--primary);
}
.calendarDay.hasBatch {
  background: #C9A86A33;
}
.calendarDay.hasExisting {
  background: var(--warning-bg);
}
.calendarDay.conflict {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.calendarDay strong {
  font-size: 16px;
}
.calendarDay span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.imagePreview {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #FFFFFF;
  overflow: hidden;
}
.imagePreview.uploading {
  opacity: 0.7;
}
.imagePreview.hasError {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}
.imagePreview.hasMedia,
.imagePreview:has(img),
.imagePreview:has(video) {
  grid-template-columns: 180px 1fr;
  place-items: stretch;
  align-items: center;
  text-align: left;
}
.imagePreview.hasMedia:has(.multiMediaPreviewList) {
  grid-template-columns: 1fr;
}
.imagePreview img,
.imagePreview video {
  width: 180px;
  height: 128px;
  object-fit: contain;
  background: #061328;
}
.imagePreview div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
}
.mediaCarousel {
  display: grid;
  width: 100%;
  min-width: 0;
  background: #FFFFFF;
}
.imagePreview .mediaCarousel,
.imagePreview .mediaCarouselStage,
.imagePreview .mediaCarouselMeta,
.imagePreview .mediaCarouselDots {
  padding: 0;
}
.mediaCarouselStage,
.previewMediaFrame,
.batchPreviewStage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
  background: #061328;
}
.mediaCarouselStage img,
.mediaCarouselStage video,
.previewMediaFrame img,
.previewMediaFrame video {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #061328;
}
.mediaCarouselButton {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #C9A86A66;
  border-radius: 999px;
  padding: 0;
  background: #FBFAF6E6;
  color: #0E2750;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}
.mediaCarouselButton.previous {
  left: 10px;
}
.mediaCarouselButton.next {
  right: 10px;
}
.mediaCarouselButton:hover {
  background: #C9A86A;
  color: #0E2750;
}
.mediaCarouselMeta {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #FFFFFF;
}
.mediaCarouselMeta .multiMediaIndex {
  position: static;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  border-radius: 999px;
  padding: 4px 9px;
  background: #0E275014;
  color: #0A1A33;
}
.mediaCarouselDots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.mediaCarouselDots button {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: #FFFFFF;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}
.mediaCarouselDots button.isActive {
  border-color: #C9A86A;
  background: #0E2750;
  color: #FFFFFF;
}
.multiMediaPreviewList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  width: 100%;
  padding: 10px;
}
.multiMediaPreviewCard {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.multiMediaPreviewCard.hasIssue {
  border-color: var(--danger-line);
}
.multiMediaPreviewCard img,
.multiMediaPreviewCard video {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #061328;
}
.multiMediaIndex {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: #0E2750;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
}
.multiMediaMeta {
  display: grid;
  gap: 5px;
  padding: 12px;
}
.imageMeta {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.imageIssue {
  color: var(--danger);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.imageActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.imageActionHint {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.imageActions .secondaryButton {
  min-height: 32px;
  padding: 0 10px;
  font-size: 16px;
}
.mediaChecklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.mediaCheckItem {
  display: grid;
  gap: 3px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #FFFFFF;
}
.mediaCheckItem strong {
  font-size: 16px;
}
.mediaCheckItem span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.mediaCheckItem.ok {
  border-color: #0E275066;
  background: var(--success-bg);
}
.mediaCheckItem.missing {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.mediaCheckItem.pending {
  border-color: #C9A86A66;
  background: #C9A86A33;
}
.publishPreviewPanel {
  display: grid;
  gap: 10px;
}
.composePreviewColumn .imagePreview {
  min-height: 240px;
}
.composePreviewColumn .imagePreview.hasMedia,
.composePreviewColumn .imagePreview:has(img),
.composePreviewColumn .imagePreview:has(video) {
  grid-template-columns: 1fr;
}
.composePreviewColumn .imagePreview img,
.composePreviewColumn .imagePreview video {
  width: 100%;
  height: 240px;
}
.publishPreview {
  display: grid;
  gap: 10px;
}
.publishPreviewCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.previewHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
}
.previewHeader div {
  display: grid;
  gap: 3px;
}
.previewHeader span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.previewMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 8px 14px;
  background: #FFFFFF;
}
.previewMeta span {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: #0E275014;
  color: #6E7A8F;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.previewMedia,
.previewGeneratedImage {
  border-top: 1px solid var(--line);
}
.previewMedia {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: #061328;
  overflow: hidden;
}
.previewMedia.multi {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  place-items: stretch;
  background: #0E275033;
}
.previewMedia.carousel {
  display: block;
  min-height: 0;
  background: #061328;
}
.previewMedia.carousel .previewMediaItem {
  display: grid;
}
.previewMedia.carousel .previewMediaFrame {
  min-height: 260px;
}
.previewMediaItem {
  display: grid;
  margin: 0;
  background: #061328;
}
.previewMediaItem figcaption {
  min-height: 36px;
  padding: 7px 9px;
  background: #FFFFFF;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.previewMedia img,
.previewMedia video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #061328;
}
.previewMedia.carousel .previewMediaFrame img,
.previewMedia.carousel .previewMediaFrame video {
  height: 260px;
  max-height: none;
}
.previewGeneratedImage {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 260px;
  aspect-ratio: 1 / 1;
  padding: 24px;
  background: #F2F1EC;
  color: #0A1A33;
}
.previewGeneratedImage strong {
  color: #0E2750;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.previewGeneratedImage span {
  color: #6E7A8F;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.previewGeneratedImage em {
  color: #0E2750;
  font-family: var(--font-mono);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.previewStatus {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.previewStatus.ok {
  background: var(--success-bg);
  color: var(--success);
}
.previewStatus.pending {
  background: var(--warning-bg);
  color: var(--warning);
}
.previewStatus.missing {
  background: var(--danger-bg);
  color: var(--danger);
}
.previewText {
  min-height: 112px;
  max-height: 260px;
  margin: 0;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 14px;
  background: #F2F1EC;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.previewEmpty {
  color: var(--muted);
  font-weight: 700;
}
.batchPostPreview,
.jobContentPreview {
  display: grid;
  gap: 8px;
}
.batchPostPreview summary,
.jobContentPreview summary {
  width: fit-content;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
}
.batchPostPreviewGrid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #FBFAF6;
}
.batchPostPreviewGrid > img {
  width: 160px;
  height: 160px;
  border-radius: 6px;
  object-fit: contain;
  background: #061328;
}
.batchPostPreviewTexts,
.batchPostPreviewTexts article {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.batchPostPreviewTexts > span {
  color: var(--muted);
  font-weight: 700;
}
.batchPostPreviewTexts pre,
.jobContentPreview pre {
  max-height: 220px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #FFFFFF;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  line-height: 1.55;
}
.jobContentPreview > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.jobContentPreview img,
.jobContentPreview video {
  width: 140px;
  height: 140px;
  border-radius: 6px;
  object-fit: contain;
  background: #061328;
}
.platformPicker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.platformPicker legend {
  grid-column: 1 / -1;
}
.platformPicker label {
  display: block;
}
.platformPicker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.platformPicker span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 1px solid #0E275033;
  border-radius: 6px;
  background: #FFFFFF;
  font-weight: 700;
}
.platformPicker input:checked + span {
  border-color: var(--primary);
  background: #C9A86A33;
  color: var(--primary-dark);
}
.platformPicker label.disabled span {
  cursor: not-allowed;
  background: #F2F1EC;
  color: #6E7A8F;
  border-color: #0E275033;
}
.platformPicker label.disabled {
  display: none;
}
.startActions.singleState {
  align-items: center;
}
.startActions.singleState.ready {
  border-color: #0E27503D;
  background: var(--success-bg);
}
.startActions.singleState.pending {
  border-color: #A8853F3D;
  background: #C9A86A33;
}
.startActions.singleState.missing {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.nativePlatformPicker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.platformQuickPicker {
  display: grid;
  gap: 8px;
}
.quickPickerButtons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}
.quickPlatformButton {
  min-height: 86px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon state"
    "note note";
  gap: 5px 10px;
  align-content: start;
  align-items: start;
  justify-items: start;
  text-align: left;
  border: 1px solid #0E275033;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
}
.quickPlatformButton .platformMark {
  width: 36px;
  height: 36px;
  grid-area: icon;
  align-self: start;
}
.quickPlatformButton .platformMark svg {
  width: 20px;
  height: 20px;
}
.quickPlatformName {
  grid-area: name;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
}
.quickPlatformState {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0E275014;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  grid-area: state;
  line-height: 1.25;
  white-space: normal;
}
.quickPlatformButton small {
  grid-area: note;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.quickPlatformButton.selected {
  border-color: var(--primary);
  background: #C9A86A33;
  color: var(--primary-dark);
  box-shadow: 0 0 0 2px #C9A86A29;
}
.quickPlatformButton.selected .quickPlatformState {
  background: #C9A86A33;
  color: var(--primary-dark);
}
.quickPlatformButton:disabled {
  cursor: not-allowed;
  background: #F2F1EC;
  color: #6E7A8F;
  border-color: #0E275033;
}
.quickPlatformButton:disabled .quickPlatformName,
.quickPlatformButton:disabled .quickPlatformState,
.quickPlatformButton:disabled small {
  color: #6E7A8F;
}
.inlineNotice {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #F2F1EC;
}
.inlineNotice strong {
  color: var(--text);
}
.inlineNotice span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.inlineNotice.pending {
  border-color: #C9A86A66;
  background: #C9A86A33;
}
.platformStatusItem {
  display: grid;
  grid-template-columns: minmax(90px, auto) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #F2F1EC;
}
.connections,
.readinessGrid,
.jobs {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.adminSettingsPanel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.adminSettingsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 12px 0;
}
.adminSettingsHeader div {
  display: grid;
  gap: 4px;
}
.adminSettingsPanel small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.adminSettingsForm {
  padding: 0 12px 12px;
}
.adminSettingsGrid,
.adminStatusGrid {
  display: grid;
  gap: 12px;
}
.adminSettingsGrid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.adminStatusGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.adminSettingsStatus {
  display: grid;
  gap: 10px;
}
.settingsGuide {
  border: 1px solid #0E275033;
  border-radius: 8px;
  background: #F2F1EC;
  overflow: hidden;
}
.settingsGuide summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.settingsGuide summary::-webkit-details-marker {
  display: none;
}
.settingsGuide summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0E275014;
  color: var(--muted);
  font-size: 16px;
}
.settingsGuide[open] summary::after {
  content: "-";
}
.settingsGuideGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}
.settingsGuideGrid article {
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #FFFFFF;
}
.settingsGuideGrid strong {
  color: var(--text);
}
.settingsGuideGrid span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.adminStatusSummary {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #FFFFFF;
}
.adminStatusSummary.ready {
  border-color: #0E275066;
  background: var(--success-bg);
}
.adminStatusSummary.missing {
  border-color: #C9A86A66;
  background: var(--warning-bg);
}
.adminStatusSummary span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.adminStatusItem {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #FFFFFF;
}
.adminStatusItem span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 16px;
  font-weight: 700;
}
.adminStatusItem.ready span {
  background: var(--success-bg);
  color: var(--success);
}
.adminStatusItem.missing span {
  background: var(--danger-bg);
  color: var(--danger);
}
.adminStatusItem small {
  overflow-wrap: anywhere;
}
.redirectUriBox {
  display: grid;
  gap: 7px;
  border: 1px solid #0E275033;
  border-radius: 6px;
  padding: 10px 11px;
  background: #FFFFFF;
}
.redirectUriBox code {
  color: var(--primary-dark);
  font: 700 16px var(--font-mono);
  overflow-wrap: anywhere;
}
.connectionGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.connectionCard,
.job {
  display: grid;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #FFFFFF;
}
.connectionCard {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  grid-template-areas: "icon body actions";
  min-height: 74px;
}
.connectionCard > .platformMark {
  grid-area: icon;
}
.connectionBody {
  grid-area: body;
}
.connectionActions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.connectionCard.connected {
  border-color: #0E275066;
  background: #FBFAF6;
}
.platformMark {
  width: 38px;
  height: 38px;
  font-size: 16px;
}
.connectionBody p,
.job p,
.jobMeta small {
  overflow-wrap: anywhere;
}
.connectionInfoDetails {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.connectionInfoDetails summary {
  width: fit-content;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
}
.connectionInfoDetails dl {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.connectionInfoDetails dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.connectionInfoDetails dt {
  color: var(--muted);
  font-weight: 800;
}
.connectionInfoDetails dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.connectionInfoDetails small {
  color: var(--muted);
  font-weight: 700;
}
.statusBadge,
.status,
.readinessItem span {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}
.statusBadge.ok,
.readinessItem.ready span,
.status.success {
  background: var(--success-bg);
  color: var(--success);
}
.statusBadge.pending,
.status.queued,
.status.running,
.status.scheduled {
  background: var(--warning-bg);
  color: var(--warning);
}
.status.cancelled {
  background: #0E275014;
  color: var(--muted);
}
.statusBadge.missing,
.readinessItem.missing span,
.status.failed {
  background: var(--danger-bg);
  color: var(--danger);
}
.connectionWarning {
  padding: 10px 12px;
  border: 1px solid #C9A86A66;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 16px;
}
.readinessGrid {
  grid-template-columns: 1fr;
}
.readinessItem {
  display: grid;
  gap: 7px;
  min-height: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.readinessItem small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.job {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon body status"
    ". meta actions";
  align-items: start;
}
.job > .platformMark {
  grid-area: icon;
}
.jobBody {
  grid-area: body;
  display: grid;
  gap: 5px;
}
.job > .status {
  grid-area: status;
  justify-self: end;
}
.jobMeta {
  grid-area: meta;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 16px;
}
.jobActions {
  grid-area: actions;
  justify-content: flex-end;
}
.jobMeta small,
.jobErrorDetail pre {
  color: var(--danger);
}
.jobErrorDetail {
  display: grid;
  gap: 6px;
}
.jobErrorDetail summary {
  cursor: pointer;
  color: var(--danger);
  font-weight: 800;
}
.jobErrorDetail pre {
  max-height: 160px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--danger-line);
  border-radius: 6px;
  padding: 8px;
  background: var(--danger-bg);
  font: inherit;
}
.jobCampaign {
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.jobLink {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.jobsOverview,
.jobsFilters {
  margin-top: 14px;
}
.jobsOverview {
  display: grid;
  gap: 10px;
}
.jobSummaryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.jobSummaryGrid article,
.jobCalendarStrip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  padding: 10px 12px;
}
.jobSummaryGrid article {
  display: grid;
  gap: 4px;
}
.jobSummaryGrid span,
.jobCalendarStrip span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.jobSummaryGrid strong {
  font-size: 20px;
}
.jobCalendarStrip {
  display: grid;
  gap: 8px;
}
.jobCalendarStrip div,
.jobsFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jobCalendarStrip span {
  width: fit-content;
  border-radius: 999px;
  background: #0E275014;
  padding: 5px 9px;
}
.jobFilterButton {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--text);
}
.jobFilterButton.isActive {
  border-color: #0E275033;
  background: #C9A86A33;
  color: var(--primary-dark);
}
.jobFilterButton span {
  color: var(--muted);
}
.dangerButton {
  min-height: 36px;
  border: 1px solid var(--danger-line);
  background: #FFFFFF;
  color: var(--danger);
}
.dangerButton:hover {
  background: var(--danger-bg);
}
.emptyState {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px dashed #0E275066;
  border-radius: 8px;
  color: var(--muted);
  background: #F2F1EC;
}
.emptyState.compact {
  padding: 14px;
}
.emptyState strong {
  color: var(--text);
}
.emptyState.error {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}
.skeletonBlock {
  min-height: 76px;
  border-radius: 8px;
  background: #0E275014;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100% - 32px));
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  background: #0A1A33;
  color: #FFFFFF;
  font-weight: 700;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  background: var(--danger);
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 1040px) {
  .readinessGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .startSteps,
  .setupGrid,
  .composeWorkspace,
  .batchWorkspace,
  .batchInsights,
  .batchSetupGrid,
  .schedulerBoard {
    grid-template-columns: 1fr;
  }

  .composePreviewColumn,
  .batchPreviewColumn {
    position: static;
    max-height: none;
    overflow: visible;
    border-left: 0;
    padding-left: 0;
  }

  .setupGrid {
    grid-template-areas:
      "channels"
      "copy"
      "tracking";
  }

  .batchSetupGrid {
    grid-template-areas:
      "channels"
      "copy";
  }

  .workspaceNav {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .workspaceMainTabs {
    width: 100%;
  }

  .workspaceUtilityTabs {
    justify-content: stretch;
  }

  .workspaceUtilityTabs button {
    flex: 1 1 0;
  }
}
@media (max-width: 720px) {
  .shell {
    width: 100%;
    max-width: 1360px;
    padding: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .topbar,
  .sectionHead,
  .startActions,
  .batchGuide,
  .batchMetricGrid,
  .batchRuleSummary,
  .batchSummary,
  .batchDateHeader,
  .batchFile,
  .grid,
  .summaryGrid,
  .readinessGrid,
  .platformPicker,
  .connectionCard,
  .job,
  .adminSettingsGrid,
  .adminStatusGrid,
  .setupGrid,
  .composeWorkspace,
  .composeEditorColumn,
  .composePreviewColumn,
  .batchWorkspace,
  .batchEditorColumn,
  .batchPreviewColumn,
  .batchPostPreviewGrid,
  .batchPreviewHeader,
  .jobContentPreview > div,
  .batchSetupGrid,
  .schedulerBoard,
  .postExecutionGrid,
  .postModeGrid,
  .platformCopyGrid,
  .mediaChecklist,
  .jobSummaryGrid,
  .jobsFilters {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .composePanel .sectionHead,
  .batchPanel .sectionHead {
    grid-template-columns: 1fr;
  }

  .sectionHead > div {
    width: 100%;
    max-width: calc(100vw - 56px);
  }

  .sectionHead .muted {
    width: auto;
    max-width: 29ch;
    white-space: normal;
  }

  .composePanel .sectionHead .formStatus,
  .batchPanel .sectionHead .formStatus {
    justify-self: start;
  }

  .composePanel .sectionHead .sectionHeadActions {
    justify-self: start;
  }

  .sectionHeadActions {
    width: 100%;
    justify-content: flex-start;
  }

  .connectionCard {
    grid-template-areas:
      "icon"
      "body"
      "actions";
  }

  .connectionActions {
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .connectionActions > button,
  .connectionActions > .linkButton,
  .connectionActions > .secondaryButton {
    width: 100%;
  }

  .connectionInfoDetails dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .job {
    grid-template-areas:
      "icon"
      "body"
      "status"
      "meta"
      "actions";
  }

  .job > .status {
    justify-self: start;
  }

  .workspaceNav {
    position: static;
    gap: 6px;
  }

  .workspaceMainTabs,
  .workspaceUtilityTabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .workspaceNav button {
    min-height: 34px;
  }

  .batchMetricGrid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .batchMetricGrid article:last-child {
    border-bottom: 0;
  }

  .manualPostDetails summary {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 56px;
  }

  .topbar {
    padding: 16px;
  }

  .topbar h1 {
    max-width: 10ch;
  }

  .startStep {
    grid-template-columns: 1fr;
  }

  .startStep span {
    justify-self: start;
  }

  .panel,
  .composePanel {
    padding: 14px;
  }

  .imagePreview.hasMedia,
  .imagePreview:has(img),
  .imagePreview:has(video) {
    grid-template-columns: 1fr;
  }

  .imagePreview img,
  .imagePreview video,
  .mediaCarouselStage img,
  .mediaCarouselStage video,
  .batchPreviewStage img,
  .previewMedia.carousel .previewMediaFrame img,
  .previewMedia.carousel .previewMediaFrame video {
    width: 100%;
    height: 190px;
  }

  .batchPostPreviewGrid > img,
  .jobContentPreview img,
  .jobContentPreview video {
    width: 100%;
    height: 220px;
  }

  .batchFileSchedule {
    justify-items: start;
    text-align: left;
  }

  .jobActions,
  .formActions,
  .previewHeader {
    justify-content: stretch;
    display: grid;
  }

  .topbar .topActions {
    display: none;
  }

  .formActions > button,
  .topbar .topActions > .linkButton,
  .jobActions > button,
  .jobActions > .linkButton,
  .startActions button,
  .startActions .linkButton {
    width: 100%;
  }

  button,
  .linkButton {
    white-space: normal;
    line-height: 1.25;
    padding-block: 10px;
  }

  .ghostButton {
    width: auto;
  }

  .scheduleCalendar {
    overflow-x: auto;
  }

  .calendarGrid {
    min-width: 560px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }

}
