/* ═══════════════════════════════════════════════════════
   Calendar Module — 内容运营排期中台 UI
   ═══════════════════════════════════════════════════════ */

.calendar-module {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f1f5f9;
  overflow: hidden;
  font-family: -apple-system, 'SF Pro Display', 'PingFang SC', sans-serif;
}

/* ── Toolbar ── */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 50px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  gap: 12px;
}

.cal-toolbar-left  { display: flex; align-items: center; gap: 4px; }
.cal-toolbar-right { display: flex; align-items: center; gap: 8px; }

.cal-nav-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.cal-nav-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }

.cal-today-btn {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 4px;
  transition: all 0.15s;
}
.cal-today-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }

.cal-month-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-left: 10px;
  letter-spacing: -0.02em;
  min-width: 90px;
}

.cal-select {
  height: 28px;
  padding: 0 26px 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  outline: none;
  min-width: 88px;
  transition: border-color 0.15s;
}
.cal-select:hover { border-color: #cbd5e1; }
.cal-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(14,165,233,.08); }

.cal-new-btn {
  height: 28px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.cal-new-btn:hover { background: var(--color-primary-hover); }

/* ── 2-column body ── */
.cal-body {
  display: grid;
  grid-template-columns: 1fr 316px;
  flex: 1;
  overflow: hidden;
}

/* ── Left: Calendar ── */
.cal-grid-section {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
}

.cal-weekheader {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.cal-weekday {
  padding: 9px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.cal-weekday:nth-child(n+6) { color: #cbd5e1; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  flex: 1;
}

/* Cell */
.cal-cell {
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 6px 7px 5px;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: #f8fafc; }
.cal-cell:nth-child(7n-1),
.cal-cell:nth-child(7n)   { background: #fafbfc; }
.cal-cell:nth-child(7n-1):hover,
.cal-cell:nth-child(7n):hover { background: #f1f5f9; }

/* Date number */
.cal-date-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.15s;
}

/* Today */
.cal-cell.is-today .cal-date-num {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

/* Selected */
.cal-cell.cal-selected {
  background: var(--color-primary-light) !important;
  box-shadow: inset 0 0 0 1.5px var(--color-primary-border);
}
.cal-cell.cal-selected .cal-date-num { color: var(--color-primary); font-weight: 700; }
.cal-cell.is-today.cal-selected .cal-date-num { background: var(--color-primary); color: #fff; }

/* Other month */
.cal-cell.other-month { opacity: 0.45; }
.cal-cell.other-month .cal-date-num { color: #94a3b8; }

/* Drag-over highlight */
.cal-cell.cal-drag-over {
  background: var(--color-primary-light) !important;
  outline: 2px dashed var(--color-primary);
  outline-offset: -2px;
}
.cal-chip[draggable="true"]:active { cursor: grabbing; }

/* ── View toggle (segmented) ── */
.cal-view-toggle {
  display: inline-flex;
  margin-left: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.cal-view-btn {
  height: 28px;
  padding: 0 12px;
  border: none;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-right: 1px solid #e2e8f0;
  transition: background .12s, color .12s;
}
.cal-view-btn:last-child { border-right: none; }
.cal-view-btn:hover    { background: #f8fafc; color: #0f172a; }
.cal-view-btn.active   { background: var(--color-primary); color: #fff; }

/* ── Week view ── */
.cal-cell.cal-week-col {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  height: 100%;
}
.cal-week-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  flex-shrink: 0;
}
.cal-week-dow { font-size: 11px; color: #94a3b8; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.cal-week-col.is-today .cal-week-hd { background: var(--color-primary-light); }
.cal-week-list {
  flex: 1; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-height: 0;
}
.cal-week-list::-webkit-scrollbar { width: 3px; }
.cal-week-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.cal-week-item {
  display: flex; gap: 6px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.35;
  align-items: baseline;
  overflow: hidden;
}
.cal-week-time { font-variant-numeric: tabular-nums; font-weight: 600; flex-shrink: 0; opacity: .7; }
.cal-week-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Day view (1 wide column with hourly slots, events absolutely positioned) ── */
.cal-day-col {
  position: relative;
  height: 100%;
  overflow-y: auto;
  background: #fff;
}
.cal-day-row {
  display: flex;
  height: 44px;
  border-bottom: 1px solid #f8fafc;
}
.cal-day-time {
  width: 60px;
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 11px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid #f1f5f9;
  text-align: right;
}
.cal-day-slot { flex: 1; }
.cal-day-events {
  position: absolute;
  top: 0; left: 60px; right: 0;
  pointer-events: none;
}
.cal-day-event {
  position: absolute;
  left: 8px; right: 8px;
  height: 36px;
  display: flex; gap: 8px; align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: auto;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.cal-day-event-time { font-variant-numeric: tabular-nums; opacity: .65; flex-shrink: 0; }
.cal-day-event-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

/* Task chips in cells */
.cal-chips {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  flex: 1;
}

.cal-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
}

.cal-chip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Channel chip variants */
.chip-tiktok      { background: #f3f4f6; color: #374151; }
.chip-tiktok      .cal-chip-dot { background: #6b7280; }
.chip-instagram   { background: #fdf2f8; color: #9d174d; }
.chip-instagram   .cal-chip-dot { background: #db2777; }
.chip-douyin      { background: #ecfdf5; color: #065f46; }
.chip-douyin      .cal-chip-dot { background: #059669; }
.chip-xiaohongshu { background: #fff1f2; color: #be123c; }
.chip-xiaohongshu .cal-chip-dot { background: #e11d48; }
.chip-ch-default  { background: var(--color-primary-light); color: var(--color-primary-hover); }
.chip-ch-default  .cal-chip-dot { background: #3b82f6; }

.cal-chip-more {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  padding: 1px 0;
}

/* ── Right: Unified Operations Panel ── */
.cal-right-panel {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow: hidden;
}

/* Panel header */
.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 11px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.panel-hd-text {}

.panel-date-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.panel-date-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.panel-add-btn {
  width: 26px;
  height: 26px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.panel-add-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }

/* Schedule list */
.schedule-list-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.schedule-list-area::-webkit-scrollbar { width: 3px; }
.schedule-list-area::-webkit-scrollbar-track { background: transparent; }
.schedule-list-area::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* Empty state */
.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 16px;
  color: #94a3b8;
  text-align: center;
}
.panel-empty-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
}
.panel-empty-text { font-size: 12px; color: #94a3b8; line-height: 1.5; }

/* Schedule card */
.sc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.sc-card:hover { box-shadow: 0 2px 10px rgba(15,23,42,.07); border-color: #cbd5e1; }

.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 5px;
}

.sc-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.badge-tiktok      { background: #f3f4f6; color: #374151; }
.badge-instagram   { background: #fdf2f8; color: #9d174d; }
.badge-douyin      { background: #ecfdf5; color: #065f46; }
.badge-xiaohongshu { background: #fff1f2; color: #be123c; }
.badge-default     { background: var(--color-primary-light); color: var(--color-primary-hover); }

.sc-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.sc-body { padding: 2px 12px 9px; }

.sc-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 3px;
  line-height: 1.4;
}

.sc-desc {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px 8px;
  border-top: 1px solid #f1f5f9;
}

.sc-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
}
.status-draft           { background: #fef9c3; color: #854d0e; }
.status-pending_review  { background: #fed7aa; color: #9a3412; }
.status-approved        { background: #dcfce7; color: #166534; }
.status-rejected        { background: #fee2e2; color: #991b1b; }
.status-ready           { background: #dbeafe; color: #1e40af; }
.status-publishing      { background: #e0e7ff; color: #3730a3; }
.status-published       { background: var(--color-primary-light); color: #1e40af; }
.status-error           { background: #fee2e2; color: #991b1b; }
.status-archived        { background: #f3f4f6; color: #6b7280; }

.sc-actions { display: flex; gap: 4px; }

.sc-btn {
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  line-height: 1;
}
.sc-btn-ghost   { background: #f8fafc; border-color: #e2e8f0; color: #64748b; }
.sc-btn-ghost:hover { background: #f1f5f9; color: #334155; }
.sc-btn-outline { background: transparent; border-color: #e2e8f0; color: #64748b; }
.sc-btn-outline:hover { border-color: #94a3b8; color: #334155; }
.sc-btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.sc-btn-primary:hover { background: var(--color-primary-hover); }

/* ── Quick Actions ── */
.quick-section {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 10px;
  flex-shrink: 0;
}

.quick-section-hd {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px 8px;
}

.quick-items { display: flex; flex-direction: column; gap: 1px; }

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.12s;
}
.quick-item:hover { background: #f8fafc; border-color: #e2e8f0; }

.qi-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qi-strategy { background: var(--color-primary-light); color: var(--color-primary); }
.qi-image    { background: #f0fdf4; color: #16a34a; }
.qi-video    { background: #fdf4ff; color: #9333ea; }
.qi-avatar   { background: #fff7ed; color: #ea580c; }
.qi-draft    { background: #fefce8; color: #ca8a04; }

.qi-text { display: flex; flex-direction: column; gap: 1px; }

.qi-title {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.qi-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════
   Platform System — Instagram / TikTok / YouTube
   ═══════════════════════════════════════════════════════ */

/* ── Toolbar settings button ── */
.cal-settings-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.cal-settings-btn:hover { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }

/* ── Platform chips in calendar cells ── */
.chip-instagram   { background: #fdf2f8; color: #9d174d; }
.chip-instagram   .cal-chip-dot { background: #db2777; }
.chip-tiktok      { background: #f1f5f9; color: #334155; }
.chip-tiktok      .cal-chip-dot { background: #64748b; }
.chip-youtube     { background: #fff1f0; color: #b91c1c; }
.chip-youtube     .cal-chip-dot { background: #dc2626; }
.chip-ch-default  { background: var(--color-primary-light); color: var(--color-primary); }
.chip-ch-default  .cal-chip-dot { background: var(--color-primary); }

/* ── Schedule card platform badges ── */
.badge-instagram { background: #fdf2f8; color: #9d174d; }
.badge-tiktok    { background: #f1f5f9; color: #334155; }
.badge-youtube   { background: #fff1f0; color: #b91c1c; }
.badge-default   { background: var(--color-primary-light); color: var(--color-primary); }

/* ── Platform status row (bottom of quick section) ── */
.platform-status-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.platform-status-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  transition: all 0.12s;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.platform-status-chip:hover { border-color: #cbd5e1; background: #f8fafc; }

.psc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #cbd5e1;
}
.psc-label { font-weight: 600; }
.psc-status { color: #94a3b8; font-weight: 400; font-size: 9px; }

.dot-connected    { background: #22c55e; }
.dot-disconnected { background: #cbd5e1; }
.dot-error        { background: #f59e0b; }
.dot-unknown      { background: #cbd5e1; }

/* ── Modal overlay ── */
.cal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cal-modal {
  background: #fff;
  border-radius: 16px;
  width: 600px;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15,23,42,.18);
  overflow: hidden;
  animation: cal-modal-in 0.18s ease;
}

.cal-modal-sm { width: 380px; }

@keyframes cal-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cal-modal-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.cal-modal-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.cal-modal-sub   { font-size: 12px; color: #94a3b8; }

.cal-modal-close {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}
.cal-modal-close:hover { background: #f1f5f9; color: #334155; }

/* ── Platform tabs ── */
.pm-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f1f5f9;
  padding: 0 24px;
  flex-shrink: 0;
}

.pm-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.pm-tab:hover { color: #334155; }
.pm-tab.active { color: #0f172a; font-weight: 600; border-bottom-color: var(--color-primary); }

.pm-tab-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.platform-dot-instagram { background: #db2777; }
.platform-dot-tiktok    { background: #64748b; }
.platform-dot-youtube   { background: #dc2626; }

.pm-tab-status {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
  margin-left: 2px;
}

.badge-connected    { background: #dcfce7; color: #166534; }
.badge-disconnected { background: #f1f5f9; color: #64748b; }
.badge-error        { background: #fef9c3; color: #854d0e; }
.badge-unknown      { background: #f1f5f9; color: #94a3b8; }

/* ── Modal body / panes ── */
.pm-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.pm-body::-webkit-scrollbar { width: 4px; }
.pm-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.pm-pane { display: none; }
.pm-pane.active { display: block; }

/* Connection status row */
.pm-conn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 18px;
}

.pm-conn-info { display: flex; align-items: center; gap: 10px; }

.pm-conn-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

.pm-conn-detail { font-size: 12px; color: #64748b; }

.pm-test-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.pm-test-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Config form */
.pm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.pm-field { display: flex; flex-direction: column; gap: 5px; }

.pm-label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.pm-input {
  height: 38px;
  padding: 0 11px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  width: 100%;
}
.pm-input::placeholder { color: #cbd5e1; font-size: 11px; }
.pm-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-glow); }

.pm-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}

.pm-cancel-btn {
  height: 36px; padding: 0 16px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  background: #fff; color: #64748b;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.12s;
  font-family: inherit;
}
.pm-cancel-btn:hover { border-color: #94a3b8; color: #334155; }

.pm-save-btn {
  height: 36px; padding: 0 18px;
  border: none; border-radius: 8px;
  background: var(--color-primary); color: #fff;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
  font-family: inherit;
}
.pm-save-btn:hover { background: var(--color-primary-hover); }

/* ── Publish warning modal ── */
.pm-warn-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 28px 8px;
  text-align: center;
}

.pm-warn-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fef9c3;
  display: flex; align-items: center; justify-content: center;
  color: #ca8a04;
}

.pm-warn-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  max-width: 280px;
}

.pm-warn-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
}
