@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%;
  /* clip: 가로 넘침만 잘라낸다. hidden이면 스크롤 컨테이너가 생겨 미리보기 sticky가 풀린다. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
}
.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;
}
/* 교체 예약 체크박스: 지금은 숨김(폴더 다시 읽기가 자동 제어). hidden이 클래스 display를 이기도록 명시. */
.batchReplaceToggle[hidden] {
  display: none;
}
/* 전역 input 규칙(width:100%·min-height:40px)이 체크박스를 큰 빈 네모로 만드는 것을 바로잡아, 라벨 옆 작은 체크박스로 표시한다. */
.batchReplaceToggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 2px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.45;
}
.batchReplaceToggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  accent-color: #0E2750;
  cursor: pointer;
}
.batchReplaceToggle .fieldHint {
  flex-basis: 100%;
  font-weight: 400;
}
.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;
}
/* 예약 게시 미리보기(우측 고정) 폭을 넓혀 이미지·본문을 크게 본다. */
.batchWorkspace {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.64fr);
}
.composeEditorColumn,
.composePreviewColumn,
.batchEditorColumn,
.batchPreviewColumn,
.selectedMediaPanel,
.batchSelectedPreviewPanel {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.composePreviewColumn,
.batchPreviewColumn {
  position: sticky;
  top: 88px;
  /* 그리드에서 높이가 늘어나면 sticky가 동작하지 않으므로 시작점에 고정한다. */
  align-self: start;
  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;
}
/* 예약 게시 폼의 캠페인 섹션은 작성 폼의 명명 그리드 영역(tracking)을 쓰지 않는다(편집 열에서 어긋남 방지). */
#batchScheduleForm .marketingTools {
  grid-area: auto;
}
.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);
}
.batchManualDateTime {
  display: grid;
  gap: 10px;
  align-content: start;
}
.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(200px, 0.6fr);
}
.batchGuide,
.batchMetricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.batchGuideDetails > summary {
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #F2F1EC);
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}
.batchGuideDetails[open] > summary {
  margin-bottom: 8px;
}
.batchGuideDetailBody {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.batchGuideDetailBody ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.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;
}
/* display:block로 스테이지·이미지가 컬럼 폭을 확실히 채우게 한다(grid 컬럼 sizing이 중첩 min-width:0로 이미지를 축소시키던 문제 회피). */
.batchSelectedPreviewCard {
  display: block;
  width: 100%;
}
.batchPreviewStage {
  min-height: 260px;
}
/* 우측 미리보기 이미지·영상은 컬럼 폭을 꽉 채워 비율대로 크게 표시 */
.batchPreviewStage img,
.batchPreviewStage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: #061328;
}
.batchPreviewStage .previewGeneratedImage {
  width: 100%;
  min-height: 320px;
}
.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;
}
/* 작업 현황 탭: 예약 현황 캘린더(좌) + 오른쪽 미리보기(우) 2열. 예약 게시 워크스페이스와 같은 형식. */
.jobsCalendarWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.64fr);
  gap: 18px;
  align-items: start;
  margin: 4px 0 16px;
}
.jobsCalendar {
  min-width: 0;
}
/* 캘린더 날짜 셀의 상태 요약(예약2 · 성공1 …) 줄. */
.calDayBreakdown {
  font-size: 11px;
  opacity: 0.85;
}
.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;
}
/* 캘린더 월 이동(이전/다음 달) */
.calendarNav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.calendarNavButton {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0E275033;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.calendarNavButton:hover {
  background: #0E27500D;
}
.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);
}
.calendarLegend .done::before {
  background: var(--success);
}
.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.clickable {
  cursor: pointer;
}
.calendarDay.clickable:hover {
  border-color: var(--primary);
}
.calendarDay.selected {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.calendarHint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.calendarDayDetail {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.calendarDayDetailHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.calendarDayHeaderActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* 작업 현황: 맨 아래 예약 상세 목록 접기/펼치기 헤더. */
.jobsListHeader {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.jobsListToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 6px 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-weight: 600;
}
.jobsListToggle .jobsListToggleIcon {
  font-size: 12px;
  opacity: 0.7;
}
#jobsListBody.isCollapsed {
  display: none;
}
.calendarJob {
  cursor: pointer;
}
.calendarDaySectionTitle {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}
.calendarDaySectionTitle span {
  color: var(--muted);
  font-size: 13px;
}
.calendarJob .batchThumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}
.calendarJob.isPreviewing {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.jobPreviewNav {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 4px;
}
.jobReschedule {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.jobReschedule label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.jobReschedule input {
  padding: 6px 8px;
}
.uploadMethod {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.uploadMethodTag {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.uploadMethodDesc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
/* === batchStep 3구획 통일 카드 (기본값 · 파일·일정 · 결과 확인) === */
.batchGroup {
  gap: 14px;
}
/* 번호 토큰: 단일 숫자를 원형에 가깝게 */
.batchGroupToken {
  min-width: 26px;
  max-width: none;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.batchGroupBody {
  display: grid;
  gap: 12px;
}
.batchGroupBody.batchSetupGrid {
  margin-bottom: 0;
}
/* 채널·문구는 카드 안 카드 대신 가벼운 서브블록으로 */
.batchSubSection {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.batchSubHead {
  display: grid;
  gap: 2px;
}
.batchSubHead strong {
  font-size: 15px;
}
.batchSubHead span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
/* 방법 A = 추천(강조), 방법 B = 부차(톤다운) */
.uploadMethodBadge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.uploadMethod--primary {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.uploadMethodTag--alt {
  background: var(--surface, #F2F1EC);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}
/* 기본 발행 시간: 전역 기본값임이 드러나게 별도 소구획 */
.batchDefaultTimeBlock {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #FBFAF6;
}
.batchDefaultTimeBlock .batchTimeGrid {
  margin: 0;
}
.visuallyHiddenLabel {
  gap: 0;
}
.composeMethodDesc {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface, #F6F5F1);
}
.calendarDayEmpty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.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;
}
/* 예약 후보 미리보기: 본문을 직접 수정할 수 있는 편집 영역 */
.batchPreviewEditor {
  min-height: 120px;
  max-height: 320px;
  margin: 0;
  padding: 10px;
  width: 100%;
  resize: vertical;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.batchPreviewEditor:focus {
  outline: 2px solid var(--accent, #2F6BFF);
  outline-offset: 1px;
  border-color: transparent;
}
.batchPreviewEditor:disabled {
  background: #F4F3EE;
  color: var(--muted);
}
.batchPreviewEditableTag {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #2F6BFF;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: middle;
}
.batchPreviewExtras {
  color: var(--muted);
  font-weight: 500;
}
/* 게시 내용 확인 토글: 본문을 이미지 높이에 맞춰 조금 더 보이게 */
.jobContentPreview pre {
  max-height: 300px;
}
.jobContentPreview > div {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.jobContentPreview img,
.jobContentPreview video {
  width: 100%;
  height: auto;
  max-height: 300px;
  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 {
  position: relative;
  grid-template-columns: 22px 38px minmax(0, 1fr) auto;
  grid-template-areas:
    "select icon body status"
    "select .    meta actions";
  align-items: start;
}
.job > .platformMark {
  grid-area: icon;
}
.jobSelect {
  grid-area: select;
  align-self: start;
  justify-self: center;
  display: inline-flex;
  padding-top: 3px;
  cursor: pointer;
}
.jobSelect input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}
.job.isSelected {
  border-color: var(--primary);
  background: var(--primary-bg, #F3F6FC);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.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;
}
.jobTopic {
  display: inline-flex;
  align-self: start;
  gap: 4px;
  padding: 2px 9px;
  border: 1px solid #0E275033;
  border-radius: 999px;
  background: var(--primary-bg, #F3F6FC);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.jobLink {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.jobsOverview,
.jobsFilters {
  margin-top: 14px;
}
/* 작업 현황 도구모음: 검색 + 기간(기본 30일)으로 기록이 쌓여도 목록이 길어지지 않게 한다. */
.jobsToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.jobsSearchField {
  flex: 1 1 240px;
  min-width: 0;
}
.jobsSearchField input {
  width: 100%;
}
.jobsRangeField {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.jobsCustomRange {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.jobsCustomRange[hidden] {
  display: none;
}
.jobsCustomRange label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.jobsCustomRange input {
  min-width: 150px;
}
.jobsRangeSep {
  align-self: center;
  padding-bottom: 8px;
  color: var(--muted);
}
#jobsRangeReset {
  align-self: end;
  flex: 0 0 auto;
  white-space: nowrap;
}
.jobsRangeHint {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-weight: 600;
  line-height: 1.45;
}
/* 오전/오후를 맨 왼쪽에 두는 커스텀 시간 드롭다운 (네이티브 피커 대체) */
.timePicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.timePicker select {
  width: auto;
  min-width: 64px;
  padding: 8px 8px;
}
.timePicker .timePickerMer {
  min-width: 72px;
}
.timePicker .timePickerDate {
  width: auto;
  min-width: 150px;
  flex: 0 1 auto;
}
/* 선택 작업 일괄 처리 바 */
.jobsBulkBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-bg, #F3F6FC);
}
.jobsBulkBar[hidden] {
  display: none;
}
.bulkSelectControls,
.bulkActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bulkCount {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.jobsBulkBar button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
/* 일괄 '다시 예약': 날짜·시각 입력 + 버튼을 한 묶음으로 */
.bulkReschedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bulkRescheduleInput {
  min-width: 0;
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #FFFFFF;
}
.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.jobsListFooter,
.jobsRangeNotice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
}
/* 카드 안 캐러셀 미리보기(작업 현황·예약 후보 공용) */
.jobPreviewStage {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #061328;
  overflow: hidden;
}
.jobPreviewStage .jobPreviewMedia {
  display: grid;
  place-items: center;
  width: 100%;
}
.jobPreviewStage img,
.jobPreviewStage video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.jobPreviewCount {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: #061328B8;
  padding: 3px 9px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
}
.batchPostPreviewGrid > .jobPreviewStage {
  width: 160px;
}
.batchPostPreviewGrid > .jobPreviewStage img,
.batchPostPreviewGrid > .jobPreviewStage video {
  height: 160px;
}
.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,
  .jobsCalendarWorkspace,
  .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,
  .jobsCalendarWorkspace,
  .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-columns: 22px minmax(0, 1fr);
    grid-template-areas:
      "select icon"
      "select body"
      "select status"
      "select meta"
      "select 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,
  .batchPreviewStage video,
  .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;
  }

}
/* 폴더 대량 예약 · 날짜 범위 필터 */
.folderDateRange {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.folderDateRangeHead {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 9px;
}
.folderDateRangeHead strong {
  font-size: 0.9rem;
}
.folderDateRangeInputs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.folderDateRangeInputs label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  flex: 1 1 140px;
}
.folderDateRangeInputs button {
  flex: 0 0 auto;
  min-height: 40px;
}
.folderChannelTimes {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
/* '함께 올리기'(영상+이미지 1게시물) 옵션 — 방법 A·B 공통이라 두 카드 밖 별도 블록 */
.folderCombineOption {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.uploadMethod--shared {
  border-style: dashed;
  background: #FBFAF6;
}
.uploadMethodTag--shared {
  background: var(--surface, #F2F1EC);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}
.folderCombineOption .toggleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
}
.folderCombineOption .toggleRow input {
  width: auto;
  margin: 0;
}
.folderChannelTimesHead {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 9px;
}
.folderChannelTimesHead strong {
  font-size: 0.9rem;
}
.folderChannelTimesInputs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}
.folderChannelTimesInputs label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  flex: 1 1 120px;
}
/* 모바일에서는 폴더 선택이 동작하지 않아 방법 B로 안내한다 */
.folderPickerUnsupported {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #FFF7E8;
}
.fileDrop.isUnsupported {
  opacity: 0.6;
}
/* ── 발행 관제 (control 탭) ── */
.controlPanel .ctlStatus { margin: 4px 0 12px; }
.ctlSummary { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.ctlFilters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.ctlFilterBtn { border: 1px solid var(--line, #d8dbe2); background: transparent; border-radius: 18px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; color: inherit; }
.ctlFilterBtn.isOn { background: #0e2750; border-color: #0e2750; color: #fff; }
.ctlTableWrap { overflow-x: auto; border: 1px solid var(--line, #d8dbe2); border-radius: 10px; }
.ctlTable { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 13px; }
.ctlTable th { text-align: left; font-size: 11.5px; opacity: .75; padding: 8px 10px; border-bottom: 1px solid var(--line, #d8dbe2); position: sticky; top: 0; background: inherit; }
.ctlTable td { padding: 8px 10px; border-bottom: 1px solid var(--line, #d8dbe2); vertical-align: top; }
.ctlTable tr:last-child td { border-bottom: none; }
.ctlDate { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctlDate small { font-weight: 400; opacity: .6; }
.ctlFolder { font-size: 11px; opacity: .6; font-weight: 400; }
.ctlChip { display: inline-block; padding: 1px 9px; border-radius: 16px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ctlOk { background: #e2ede6; color: #23684a; }
.ctlWait { background: #e3e9f5; color: #3d5a99; }
.ctlWarn { background: #f5e8d8; color: #9a5518; }
.ctlCrit { background: #f5dfda; color: #a33b2a; }
.ctlMute { background: rgba(128,128,128,.12); color: inherit; opacity: .8; }
.ctlIssues { font-size: 11.5px; color: #9a5518; margin-top: 4px; }
.ctlRowIssue td { background: rgba(200,112,47,.05); }
.ctlCtaCell { max-width: 240px; }
.ctlCtaTag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 5px; background: rgba(128,128,128,.1); }
.ctlCtaTag.ctlCtaLink { border: 1px solid #c9a86a; background: rgba(201,168,106,.12); }
.ctlDest { font-size: 11.5px; opacity: .75; word-break: break-all; }
.ctlDeferBtn { font-size: 12px; padding: 4px 10px; white-space: nowrap; }
/* 관제 탭의 주 버튼 — 앱에 primaryButton 정의가 없어 여기서 준다(네이비 채움) */
.primaryButton {
  border: 1px solid #0E2750;
  background: #0E2750;
  color: #FFFFFF;
  min-height: 36px;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
.primaryButton:hover { background: #16345f; }
/* 관제 v1.1 — 축 칩·요약 */
.ctlPillar { font-weight: 700; }
.ctlPillarA { background: #E8EDF7; color: #2C4A8A; }
/* 자소서 */
.ctlPillarB { background: #EAF2EC; color: #2F6B4A; }
/* 서류 */
.ctlPillarC { background: #F7EEE3; color: #8A5A1F; }
/* 면접 */
.ctlPillarD { background: #F2E8F4; color: #6E3A78; }
/* 신뢰 */
.ctlPillarE { background: #E7F0F2; color: #2A6470; }
/* 연구직 */
.ctlPillarF { background: #FBF3DC; color: #7A6220; }
/* 시그니처 */
.ctlSummarySep { font-size: 12px; opacity: .6; margin-left: 6px; }
.ctlSummaryNum { font-size: 12px; font-weight: 700; margin-right: 4px; }
/* 관제 v1.4.1 — 매니챗 안내 배너 */
.ctlNotice { border-radius: 10px; padding: 12px 16px; margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
.ctlNotice ol { margin: 8px 0 6px; padding-left: 22px; }
.ctlNotice li { margin: 3px 0; }
.ctlNoticeOk { background: #e2ede6; border: 1px solid #23684a55; }
.ctlNoticeWarn { background: #f5e8d8; border: 1px solid #9a551855; }
.ctlNoticeCrit { background: #f5dfda; border: 1px solid #a33b2a55; }
/* 관제 v1.6 — 정렬·기간·오늘 */
.ctlSortable { cursor: pointer; user-select: none; }
.ctlSortable:hover { color: #0E2750; }
.ctlSortable.ctlSortOn::after { content: " ↕"; opacity: .8; }
.ctlSortable.ctlSortOn[aria-sort="ascending"]::after { content: " ▲"; }
.ctlSortable.ctlSortOn[aria-sort="descending"]::after { content: " ▼"; }
.ctlRangeLabel { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.ctlRangeLabel input { font-size: 12.5px; padding: 2px 6px; border: 1px solid #0E275033; border-radius: 8px; background: #fff; }
.ctlRangeSep { width: 8px; }
.ctlRowToday td { background: #F7EFDD55; box-shadow: inset 0 0 0 1px #C9A86A55; }
/* 관제 v1.8 — 행 클릭 미리보기(영상·캐러셀·캡션) */
.ctlRowClickable { cursor: pointer; }
.ctlRowClickable:hover td { background: #0E27500A; }
.ctlRowClickable.ctlRowToday:hover td { background: #F7EFDD99; }
body.ctlPreviewOpen { overflow: hidden; }
.ctlPreview { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.ctlPreview[hidden] { display: none; }
.ctlPreviewBackdrop { position: absolute; inset: 0; background: #0A1A33AA; }
.ctlPreviewPanel {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(1080px, 100%); max-height: min(92vh, 940px);
  border: 1px solid var(--line, #d8dbe2); border-radius: 12px; background: #FFFFFF;
  box-shadow: 0 24px 60px #0A1A3340; overflow: hidden;
}
.ctlPreviewPanel:focus { outline: none; }
.ctlPreviewHead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line, #d8dbe2); background: #FBFAF6;
}
.ctlPreviewHeadMain { display: grid; gap: 6px; min-width: 0; }
.ctlPreviewHeadMain > strong { font-size: 16px; }
.ctlPreviewHeadMain .ctlFolder { font-size: 12px; }
.ctlPreviewChips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; }
.ctlPreviewClose {
  flex: none; width: 32px; height: 32px; border: 1px solid var(--line, #d8dbe2); border-radius: 8px;
  background: #FFFFFF; color: #0E2750; font-size: 20px; line-height: 1; cursor: pointer;
}
.ctlPreviewClose:hover { background: #C9A86A; }
.ctlPreviewTabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.ctlPreviewTabs[hidden] { display: none; }
.ctlPreviewTab {
  border: 1px solid var(--line, #d8dbe2); border-radius: 18px; padding: 4px 12px;
  background: transparent; color: inherit; font-size: 12.5px; cursor: pointer;
}
.ctlPreviewTab.isOn { background: #0E2750; border-color: #0E2750; color: #FFFFFF; }
.ctlPreviewBody { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 16px; overflow: auto; padding: 12px 16px 16px; }
.ctlPreviewStage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border-radius: 10px; background: #061328; min-height: 320px;
}
.ctlPreviewStage img, .ctlPreviewStage video {
  display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; background: #061328;
}
.ctlPreviewStage .emptyState { color: #FBFAF6; }
.ctlPreviewStageMeta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 2px 0; }
.ctlPreviewStageMeta small { opacity: .7; }
.ctlPreviewTexts { grid-column: 2; grid-row: 1 / span 2; align-content: start; gap: 12px; }
.ctlPreviewTexts pre { max-height: 30vh; }
.ctlPreviewBody > .emptyState { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .ctlPreview { padding: 0; }
  .ctlPreviewPanel { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .ctlPreviewBody { grid-template-columns: minmax(0, 1fr); }
  .ctlPreviewStageMeta, .ctlPreviewTexts { grid-column: 1; }
  .ctlPreviewTexts { grid-row: auto; margin-top: 12px; }
  .ctlPreviewStage img, .ctlPreviewStage video { max-height: 48vh; }
}
/* .multiMediaIndex는 전역이 position:absolute다(캐러셀 스테이지 위 배지). 미리보기 메타줄에서는 흐름에 둔다. */
.ctlPreviewStageMeta .multiMediaIndex {
  position: static; width: fit-content; min-width: 0; min-height: 0;
  border-radius: 999px; padding: 4px 9px; background: #0E275014; color: #0A1A33;
}
/* 폴더 미연결이라 못 보여주는 것이 있을 때의 안내 — 「영상이 없다」로 읽히지 않게 이유를 적는다. */
.ctlPreviewNotice {
  grid-column: 1 / -1; margin: 0 0 10px; border: 1px solid #9a551855; border-radius: 8px;
  padding: 8px 12px; background: #f5e8d8; font-size: 12.5px; line-height: 1.6;
}
/* 관제 v1.13 — 「수정 필요」 표시(태블릿에서도 누른다) */
.ctlFixBtn {
  border: 1px solid #a33b2a55; border-radius: 16px; padding: 3px 12px;
  background: transparent; color: #a33b2a; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.ctlFixBtn:hover { background: #f5dfda; }
.ctlFixBtn.isOn { background: #a33b2a; border-color: #a33b2a; color: #FFFFFF; }
.ctlFixNote { font-size: 11.5px; color: #a33b2a; overflow-wrap: anywhere; }
.ctlFixRow { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* 관제 v1.17 — 항목별 「수정 필요」: 버튼이 스테이지 메타줄 오른쪽에 선다 */
.ctlPreviewStageMeta { justify-content: flex-start; }
.ctlPreviewStageMeta .ctlFixBtn { margin-left: auto; }
/* 관제 v1.18 — 여러 날 선택해서 한 번에 미루기·예약 */
.ctlSelCol { width: 34px; text-align: center; }
.ctlSelCol input { width: 16px; height: 16px; cursor: pointer; }
.ctlBulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px;
  border: 1px solid #C9A86A; border-radius: 10px; padding: 8px 12px; background: #FBF3DC;
}
.ctlBulk[hidden] { display: none; }
.ctlBulk strong { font-size: 13px; }
.ctlBulk .secondaryButton { font-size: 12.5px; padding: 4px 12px; }
