/* ═══════════════════════════════════════════════════════════════════════════
   GBP Publisher — Dark SaaS Theme
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0f1117;
  --bg-raised: #161822;
  --bg-surface: #1c1f2e;
  --bg-hover: #252840;
  --bg-active: #2a2d45;
  --border: #2a2d3e;
  --border-light: #353849;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-dim: rgba(99,102,241,0.15);
  --success: #22c55e;
  --success-dim: rgba(34,197,94,0.15);
  --error: #ef4444;
  --error-dim: rgba(239,68,68,0.15);
  --warning: #f59e0b;
  --warning-dim: rgba(245,158,11,0.15);
  --info: #3b82f6;
  --info-dim: rgba(59,130,246,0.15);
  --google-blue: #4285F4;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 13px; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); border-color: var(--border-light); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.btn-google { background: white; color: #333; font-weight: 600; }
.btn-google:hover:not(:disabled) { background: #f1f1f1; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #16a34a; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-lg { padding: 12px 24px; font-size: 14px; width: 100%; justify-content: center; }

/* ── Inputs ── */
.input, .select { width: 100%; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 13px; font-family: inherit; transition: border-color 0.15s; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.input::placeholder { color: var(--text-dim); }
.select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.post-textarea { width: 100%; min-height: 160px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; line-height: 1.6; font-family: inherit; resize: vertical; transition: border-color 0.15s; }
.post-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.post-textarea::placeholder { color: var(--text-dim); }

/* ── Form ── */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
.form-hint { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: block; }
.form-row { display: flex; gap: 12px; }
.flex-1 { flex: 1; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.label-row label { margin-bottom: 0; }
.label-actions { display: flex; align-items: center; gap: 8px; }
.char-count { font-size: 11px; color: var(--text-dim); font-weight: 500; }
.char-count.over { color: var(--error); font-weight: 700; }
.toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.toggle-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.toggle-text { color: var(--text-muted); }

/* ── Topbar ── */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: var(--bg-raised); border-bottom: 1px solid var(--border); height: 52px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-info { font-size: 12px; color: var(--text-muted); }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 22px; height: 22px; color: var(--primary); }
.logo-text { font-size: 15px; font-weight: 800; background: linear-gradient(135deg, var(--primary), #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--warning-dim); color: var(--warning); }
.badge.live { background: var(--success-dim); color: var(--success); }

/* ── Layout ── */
.app-layout { display: flex; flex-direction: column; height: 100vh; }
.main-content { display: grid; grid-template-columns: 280px 1fr 360px; flex: 1; overflow: hidden; }

/* ── Sidebar ── */
.sidebar { background: var(--bg-raised); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.sidebar-header h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.sidebar-actions { display: flex; gap: 4px; }
.sidebar-search { padding: 0 12px 8px; }
.sidebar-search input { width: 100%; padding: 6px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 12px; font-family: inherit; }
.sidebar-search input:focus { outline: none; border-color: var(--primary); }
.sidebar-count { padding: 0 16px 8px; font-size: 11px; color: var(--text-dim); }
.location-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }

.loc-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.1s; margin-bottom: 2px; }
.loc-item:hover { background: var(--bg-hover); }
.loc-item.selected { background: var(--primary-dim); }
.loc-item input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.loc-info { flex: 1; min-width: 0; }
.loc-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-address { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Editor panel ── */
.editor-panel { display: flex; flex-direction: column; overflow-y: auto; background: var(--bg); padding: 0; }

.data-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--border); background: var(--bg-raised); flex-wrap: wrap; gap: 8px; }
.data-bar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.data-bar-right { display: flex; align-items: center; gap: 6px; }
.data-row-info { font-size: 12px; color: var(--text-muted); font-weight: 600; min-width: 40px; text-align: center; }
.data-files-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.csv-file-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--info-dim); color: var(--info); font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.csv-file-tag button { background: none; border: none; cursor: pointer; color: var(--info); font-size: 11px; padding: 0 2px; }
.csv-file-tag button:hover { color: var(--error); }

.manual-vars-panel { background: var(--bg-raised); border-bottom: 1px solid var(--border); padding: 12px 20px; max-height: 300px; overflow-y: auto; }
.manual-vars-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.manual-vars-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.manual-var-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.manual-var-card .loc-label { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.manual-var-field { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.manual-var-field label { font-size: 11px; color: var(--text-dim); min-width: 70px; font-family: monospace; }
.manual-var-field input { flex: 1; padding: 3px 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; font-family: inherit; }
.manual-var-field input:focus { outline: none; border-color: var(--primary); }

/* ── Tabs ── */
.post-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-raised); padding: 0 20px; }
.tab { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text-dim); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.tab:hover { color: var(--text-muted); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.editor-forms { padding: 20px; flex: 1; }
.editor-form { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Image upload ── */
.image-upload { border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--text-dim); cursor: pointer; transition: all 0.15s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.image-upload:hover { border-color: var(--primary); color: var(--text-muted); background: var(--primary-dim); }
.image-upload span { font-size: 12px; }
.img-preview { margin-top: 8px; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.img-preview img { width: 100%; max-height: 150px; object-fit: cover; display: block; }
.img-preview .remove-img { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.7); color: white; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ── Templates bar ── */
.templates-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-top: 1px solid var(--border); background: var(--bg-raised); }
.templates-bar-left { display: flex; gap: 6px; flex-wrap: wrap; }

.template-list-panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 20px 12px; overflow: hidden; }
.template-list-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.tpl-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); transition: background 0.1s; cursor: pointer; }
.tpl-item:last-child { border-bottom: none; }
.tpl-item:hover { background: var(--bg-hover); }
.tpl-item-name { font-size: 13px; font-weight: 600; }
.tpl-item-type { font-size: 11px; color: var(--text-dim); }
.tpl-item-actions { display: flex; gap: 4px; }

/* ── Preview panel ── */
.preview-panel { background: var(--bg-raised); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.preview-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.preview-header h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.preview-count { font-size: 11px; color: var(--text-dim); }
.preview-list { flex: 1; overflow-y: auto; padding: 0 12px 12px; }

.preview-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.preview-card.has-error { border-color: var(--error); }
.preview-card-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.preview-card-name { font-size: 12px; font-weight: 700; color: var(--text); }
.preview-card-status { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.preview-card-status.pending { color: var(--text-dim); }
.preview-card-status.success { background: var(--success-dim); color: var(--success); }
.preview-card-status.error { background: var(--error-dim); color: var(--error); }
.preview-card-status.publishing { background: var(--warning-dim); color: var(--warning); }
.preview-card-body { padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--text-muted); white-space: pre-wrap; word-wrap: break-word; max-height: 120px; overflow-y: auto; }
.preview-card-body .var-highlight { background: var(--primary-dim); color: var(--primary); padding: 0 3px; border-radius: 3px; font-family: monospace; font-size: 12px; }
.preview-card-meta { padding: 6px 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-dim); display: flex; gap: 12px; }
.preview-card-img { width: 100%; max-height: 100px; object-fit: cover; }
.preview-card-edit { padding: 8px 12px; border-top: 1px solid var(--border); }
.preview-card-edit textarea { width: 100%; min-height: 60px; padding: 6px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; font-family: inherit; resize: vertical; }
.preview-card-edit textarea:focus { outline: none; border-color: var(--primary); }
.preview-card-actions { display: flex; gap: 4px; padding: 0 12px 8px; }

/* ── Publish section ── */
.publish-section { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-surface); }
.publish-actions { display: flex; flex-direction: column; gap: 6px; }
.publish-progress { margin-bottom: 10px; }
.progress-bar { width: 100%; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; width: 0%; }
.progress-text { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: block; text-align: center; }

/* ── Variable dropdown ── */
.var-dropdown { position: fixed; z-index: 200; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 200px; max-height: 250px; overflow-y: auto; }
.var-dropdown-header { padding: 8px 12px; font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.var-dropdown-list { padding: 4px; }
.var-dropdown-item { display: block; width: 100%; padding: 6px 10px; text-align: left; background: none; border: none; border-radius: 4px; color: var(--text); font-size: 13px; font-family: monospace; cursor: pointer; transition: background 0.1s; }
.var-dropdown-item:hover { background: var(--primary-dim); color: var(--primary); }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 300; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.hidden { display: none; }
.modal { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; width: 480px; max-width: 90vw; box-shadow: var(--shadow); overflow: hidden; }
.modal-header { padding: 20px 24px 12px; }
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.modal-body { padding: 0 24px 16px; }
.modal-footer { padding: 12px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: white; transform: translateX(120%); opacity: 0; transition: all 0.3s ease; max-width: 360px; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }
.toast.info { background: #1d4ed8; }
.toast.warning { background: #b45309; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 32px 16px; color: var(--text-dim); font-size: 13px; }

/* ── Location management ── */
.sidebar-footer {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}
.loc-item {
  display: flex;
  align-items: flex-start;
}
.loc-info {
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}
.loc-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
  margin-left: 4px;
}
.loc-item:hover .loc-actions { opacity: 1; }
.loc-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.1s, background 0.1s;
}
.loc-action-btn:hover { color: var(--text); background: var(--bg-hover); }
.loc-action-del:hover { color: var(--error); }

/* ═══════════════════════════════════════════════════════════════════════════
   Scheduler — Planification de posts
   ═══════════════════════════════════════════════════════════════════════════ */

.scheduler-config,
.scheduler-ai,
.scheduler-images {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Image drop zone ── */
.image-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.image-drop-zone:hover,
.image-drop-zone.dragover {
  border-color: var(--primary);
  color: var(--text-muted);
  background: var(--primary-dim);
}
.image-drop-zone span { font-size: 13px; }
.image-drop-zone a { color: var(--primary); text-decoration: underline; }

/* ── Image pool grid ── */
.image-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.image-pool-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}
.image-pool-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-pool-item .remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.image-pool-item:hover .remove-img { opacity: 1; }

/* ── Scheduler actions bar ── */
.scheduler-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Month header ── */
.sched-month-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 10px 0 4px;
  margin-top: 4px;
}

/* ── Scheduled post card ── */
.sched-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.sched-post-card.validated { border-left: 3px solid var(--success); }
.sched-post-card.published { border-left: 3px solid var(--info); opacity: 0.7; }
.sched-post-card.error { border-left: 3px solid var(--error); }

.sched-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
  gap: 8px;
}
.sched-post-header:hover { background: var(--bg-hover); }

.sched-post-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.sched-post-week {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 4px;
  white-space: nowrap;
}
.sched-post-excerpt {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  margin-top: 2px;
}
.sched-post-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sched-post-status.draft { color: var(--text-dim); }
.sched-post-status.validated { background: var(--success-dim); color: var(--success); }
.sched-post-status.published { background: rgba(59,130,246,0.15); color: #3b82f6; }
.sched-post-status.error { background: var(--error-dim); color: var(--error); }

.sched-post-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Post body (expandable) ── */
.sched-post-body {
  display: none;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.sched-post-body.open { display: block; }

.sched-post-body textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
}
.sched-post-body textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.sched-post-actions {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ── Scheduler preview stats ── */
.scheduler-preview-stats {
  padding: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.stat-value {
  font-weight: 700;
  color: var(--text);
}

/* ── Scheduler publish section ── */
.scheduler-publish-section {
  padding: 8px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── AI progress ── */
#sched-ai-progress {
  margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .main-content { grid-template-columns: 240px 1fr 300px; }
}
