/* ── Premium Glassmorphism Component Library ── */

/* Glass Utilities */
.glass {
  background: var(--glass-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Page Transitions */
.page {
  display: none;
  animation: slideUp var(--transition-normal) ease-out;
}
.page.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar Layout */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  z-index: 50;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--space-xs) var(--space-lg);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-inverse);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform var(--transition-normal);
}
.brand:hover .brand-logo {
  transform: rotate(-5deg) scale(1.05);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: var(--text-main);
  background: linear-gradient(90deg, var(--primary-glow), transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-ico {
  font-size: 16px;
  opacity: 0.8;
}

.badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--glass-border);
}

.mode-chip, .health-chip {
  font-size: 11px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  overflow-wrap: anywhere;
}
.mode-chip.mock { color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }
.mode-chip.real { color: var(--success); border-color: rgba(16, 185, 129, 0.3); }
.health-chip.ok { color: var(--success); }
.health-chip.bad { color: var(--danger); }

/* Main Content Area */
.main {
  margin-left: 260px;
  padding: var(--space-xl) var(--space-2xl);
  max-width: 1600px;
  transition: margin-left var(--transition-normal);
}

.topbar {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.app-subtitle {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Headers & Typography */
h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-md);
}
.card-head h3 { margin-bottom: 0; }
.row-gap { display: flex; align-items: center; gap: 10px; }

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.metric-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  margin-top: var(--space-xs);
}
.metric-value.accent { color: var(--accent); }
.metric-extra {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Form Controls */
label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin: var(--space-md) 0 var(--space-xs);
  font-weight: 500;
}
label.req::after {
  content: ' *';
  color: var(--danger);
}
label:first-child { margin-top: 0; }

input[type="text"], input[type="password"], input[type="number"], input[type="time"],
input[type="date"], input[type="datetime-local"], textarea, select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
textarea { resize: vertical; }
select { cursor: pointer; }
input[readonly] { opacity: 0.75; }

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: var(--space-md) 0 var(--space-sm);
}
.checkbox-inline input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border: none;
  color: var(--text-inverse);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}
.btn-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}
.btn-lg {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: var(--space-md);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

/* Dropzones */
.dropzone {
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.1);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.dz-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.dz-ico {
  font-size: 18px;
  color: var(--accent);
}
.dz-previews { display: flex; gap: 10px; flex-wrap: wrap; }
.dz-previews:not(:empty) { margin-top: 12px; }
.dz-thumb { position: relative; }
.dz-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
}
.dz-thumb .dz-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: #fff;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.form-result {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
  font-size: 13.5px;
}
.form-result.ok { border-color: var(--success); color: var(--success); }
.form-result.warn { border-color: var(--warning); color: var(--warning); }
.form-result.err { border-color: var(--danger); color: var(--danger); }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}
.tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}
.tab.active {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Human Review Layout */
.review-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.manual-task { display: flex; gap: 8px; margin-bottom: 12px; }

.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.task-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.1);
}
.task-item:hover {
  border-color: var(--text-muted);
}
.task-item.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.task-item-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-item-meta {
  display: flex;
  gap: var(--space-sm);
  margin-top: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.status-pill.blocked {
  color: var(--warning);
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.08);
  animation: pulse 2s infinite;
}
.status-pill.in_progress, .status-pill.doing {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(96, 165, 250, 0.08);
}
.status-pill.done {
  color: var(--success);
  border-color: var(--success);
  background: rgba(52, 211, 153, 0.08);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.task-id-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.detail-section { margin-top: var(--space-lg); }
.detail-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.fact {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.fact .k { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.fact .v { font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.fact .v.cost { color: var(--accent); }

.comments {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-height: 280px;
  overflow-y: auto;
}
.comment {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px var(--space-md);
}
.comment .c-author { font-size: 12px; font-weight: 700; color: var(--accent); }
.comment .c-time { font-size: 10.5px; color: var(--text-muted); margin-left: var(--space-sm); }
.comment .c-text { margin-top: 4px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }

.action-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: 10px;
}
.raw-details { margin-top: 12px; }
.raw-details summary { cursor: pointer; color: var(--text-muted); font-size: 12px; }
.raw-details pre {
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: var(--radius-xs);
}

/* Files / Gallery Grid */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-md);
}
.files-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  max-height: 55vh;
  overflow-y: auto;
}

.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}
.file-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.file-thumb {
  height: 180px;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 32px;
  position: relative;
}
.files-grid.compact .file-thumb { height: 120px; }
.file-thumb img, .file-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.file-thumb:hover img, .file-thumb:hover video {
  transform: scale(1.04);
}
.file-body { padding: var(--space-md); }
.file-name {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.file-actions { display: flex; gap: 6px; padding: 0 var(--space-md) var(--space-md); flex-wrap: wrap; }
.tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  background: var(--accent-glow);
  color: var(--accent);
}
.tag.assets { background: rgba(245, 158, 11, 0.12); color: var(--warning); }

/* Publish / Scheduler Layout */
.publish-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.asset-pick { display: flex; gap: 8px; }
.pub-preview { margin-top: 10px; }
.pub-preview img, .pub-preview video {
  max-height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.list-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: rgba(0, 0, 0, 0.1);
}
.list-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list-item-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.list-item p { font-size: 12px; color: var(--text-muted); margin-top: 4px; word-break: break-all; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.modal.hidden { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  max-width: min(880px, 92vw);
  max-height: 88vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  animation: modalEnter var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-wide { width: min(1050px, 94vw); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.modal-box img, .modal-box video { max-width: 100%; max-height: 65vh; border-radius: var(--radius-sm); }
.modal-box pre { max-height: 60vh; overflow: auto; color: var(--text-main); }
.modal-caption { margin-top: 10px; font-size: 12px; color: var(--text-muted); word-break: break-all; }

@keyframes modalEnter {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Toast Notifications */
.toasts {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}
.toast {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 13.5px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warning); }
.toast.ok { border-left-color: var(--success); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}

/* Setup Onboarding Wizard UI */
.wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg-app);
  background-image: var(--bg-gradient);
}
.wizard-overlay.hidden { display: none !important; }

.wizard-box {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: min(780px, 94vw);
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter var(--transition-normal) ease-out;
}

.wizard-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wizard-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wizard-logo-img {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text-inverse);
}
.wizard-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.wizard-progress {
  height: 4px;
  background: var(--border-color);
  width: 100%;
}
.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  width: 0%;
  transition: width var(--transition-normal);
}

.wizard-body {
  padding: var(--space-xl);
  flex: 1;
  overflow-y: auto;
}
.wizard-step {
  display: none;
  animation: fadeIn var(--transition-fast) ease;
}
.wizard-step.active {
  display: block;
}

.wizard-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

.wizard-step h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wizard-step p.step-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--space-lg);
}

/* Theme Switcher Button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* Responsive Rules */
@media (max-width: 1150px) {
  .form-grid, .publish-layout, .review-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 0 var(--space-sm);
    justify-content: space-around;
    border-right: none;
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  }
  .brand, .sidebar-footer { display: none; }
  .nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }
  .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    font-size: 10px;
    border-radius: var(--radius-xs);
  }
  .nav-item.active {
    box-shadow: inset 0 3px 0 var(--accent);
    background: transparent;
  }
  .nav-ico { font-size: 18px; }
  .main {
    margin-left: 0;
    padding: var(--space-md) var(--space-md) 80px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
