:root {
  --bg: #f8f5f2;
  --panel: #ffffff;
  --line: #e8e0d8;
  --line-light: #f0ebe6;
  --ink: #2b201a;
  --ink-soft: #6b5a50;
  --muted: #8c7b70;
  --sidebar-bg: #2b201a;
  --sidebar-hover: #3d2f26;
  --sidebar-active: #4a3b30;
  --accent: #c5653a;
  --accent-hover: #a8522d;
  --accent-soft: #faf3ef;
  --warning: #e9a84a;
  --error: #c44a4a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 0 rgba(43,32,26,0.05);
  --shadow-card: 0 0 0 1px rgba(43,32,26,0.06), 0 2px 4px rgba(43,32,26,0.08);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 6px; z-index: 9999; }

/* ========== SHELL LAYOUT ========== */
.studio-shell { 
  min-height: 100vh; 
  display: block;
}

/* ========== SIDEBAR - Shopify Style ========== */
.studio-sidebar { 
  background: var(--sidebar-bg);
  color: #e3e5e7;
  display: flex; 
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  z-index: 100;
  overflow-y: auto;
}

.studio-logo { 
  padding: 16px 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-main { 
  margin: 0; 
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-sub { 
  margin: 2px 0 0; 
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.brand-tag { display: none; }

.studio-nav { 
  padding: 12px 8px;
  flex: 1;
}
.studio-nav-heading { 
  margin: 16px 8px 8px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  font-size: 11px; 
  font-weight: 600;
  color: rgba(255,255,255,0.45);
}
.studio-nav-heading:first-child { margin-top: 0; }

.studio-nav-btn { 
  width: 100%; 
  text-align: left; 
  border: 0; 
  background: transparent; 
  color: rgba(255,255,255,0.85);
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer; 
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease;
}
.studio-nav-btn:hover { 
  background: var(--sidebar-hover);
  color: #fff;
}
.studio-nav-btn.is-active { 
  background: var(--sidebar-active);
  color: #fff;
}

.pill { 
  margin-left: auto;
  background: var(--accent);
  color: #fff; 
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px; 
  padding: 3px 8px;
  min-width: 20px;
  text-align: center;
}

.studio-user { 
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  display: flex; 
  gap: 12px;
  align-items: center;
}
.avatar { 
  width: 32px; 
  height: 32px; 
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.studio-user > div { flex: 1; min-width: 0; }
.studio-user strong { 
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-user p { 
  margin: 0; 
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ========== MAIN CONTENT ========== */
.studio-main { 
  margin-left: 240px;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  width: calc(100% - 240px);
  max-width: none;
}

.studio-topbar { 
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}
.studio-topbar h1 { 
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.studio-search { 
  flex: 1;
  max-width: 400px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.studio-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}

.studio-quick { 
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.studio-quick:hover {
  background: var(--bg);
  border-color: #c9cccf;
}

/* Primary action button */
.btn-primary-admin {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary-admin:hover {
  background: var(--accent-hover);
}

/* ========== STATUS MESSAGES ========== */
.studio-status { 
  margin: 0 24px 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-status.is-success { background: #e3f1eb; color: #1f5c43; }
.studio-status.is-error { background: #fff4f4; color: #c41e1e; }
.studio-status.is-warning { background: #fff7e1; color: #7a5c1d; }

/* ========== MODULE PANELS ========== */
.module { 
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}
.module[hidden] { display: none !important; }

/* ========== KPI GRID - Shopify Style ========== */
.kpi-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 16px;
  align-items: stretch;
}

.card.kpi {
  padding: 20px 24px;
}
.kpi h3 { 
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.kpi p { 
  margin: 0; 
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.kpi small { 
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.kpi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.kpi-head h3 { margin: 0; }
.kpi-spark { color: var(--accent); opacity: 0.85; min-width: 80px; height: 28px; }

/* ========== CARDS - Shopify Style ========== */
.card { 
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  overflow: visible;
}
.card h3 { 
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.card-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 16px;
}
.card-head h3 { margin: 0; }
.card-head a { 
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.card-head a:hover { text-decoration: underline; }

.card-hint { 
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ========== GRID LAYOUTS ========== */
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.grid-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.orders-layout { align-items: start; }

/* ========== TABLES - Shopify Style ========== */
.table { 
  width: 100%; 
  border-collapse: collapse;
  font-size: 13px;
}
.table th { 
  text-align: left; 
  padding: 10px 10px 10px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
.table td { 
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line-light);
  vertical-align: middle;
}
.table tbody tr:hover {
  background: #fafbfb;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table th.narrow-col { width: 1%; white-space: nowrap; }

/* Product table with images */
.product-row-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--line-light);
}
.product-row-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-row-name strong {
  font-weight: 500;
  color: var(--ink);
}
.product-row-sku {
  font-size: 12px;
  color: var(--muted);
}

/* ========== BADGES - SUNDAY Style ========== */
.badge { 
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.pending { background: #fef6ed; color: #9a5c31; }
.badge.shipped, .badge.active, .badge.approved, .badge.healthy { background: #eef6f0; color: #2d6840; }
.badge.refund, .badge.error, .badge.critical { background: #fef2f2; color: #a43f3f; }
.badge.draft, .badge.low { background: #f5f0eb; color: var(--ink-soft); }

/* ========== BUTTONS ========== */
.mini-btn { 
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.mini-btn:hover {
  background: var(--bg);
  border-color: #c9cccf;
}
.mini-btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.pill-row { display: flex; gap: 4px; }
.pill.muted { 
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}
.order-filter { border: 0; cursor: pointer; }
.order-filter.is-active { 
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ========== FORMS - Shopify Style ========== */
.form-grid { display: grid; gap: 16px; }
.form-grid--tight { gap: 12px; }
.form-grid input,
.form-grid textarea,
.form-grid select { 
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-grid label { 
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.form-label-full { grid-column: 1 / -1; }
.form-checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.form-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.form-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.small-form-status { margin-bottom: 12px; font-size: 13px; }

/* ========== CATALOG TOOLBAR ========== */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog-toolbar-actions {
  display: flex;
  gap: 8px;
}

/* ========== ORDER DETAIL ========== */
.order-detail h4 { 
  margin: 20px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.order-detail-grid { 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.order-detail-grid p { 
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-detail-grid strong { 
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.order-detail-empty { 
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius);
}
.order-detail-empty[hidden],
#order-detail-body[hidden] {
  display: none !important;
}
.order-tracking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-light); }

/* ========== FEED / TIMELINE ========== */
.feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feed li { 
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 13px;
}
.feed.compact { gap: 6px; max-height: 200px; overflow-y: auto; }
.feed.compact li { padding: 8px 12px; font-size: 12px; }
.feed--timeline li {
  position: relative;
  padding-left: 24px;
}
.feed--timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========== LIST STYLES ========== */
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list li { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
}
.list li span { color: var(--ink); }
.list li strong { color: var(--muted); font-weight: 400; font-size: 13px; }
.list li a { color: var(--accent); font-weight: 500; text-decoration: none; }
.list li a:hover { text-decoration: underline; }

/* ========== VISUALIZATIONS ========== */
.viz-panel { min-height: 160px; }
.viz-panel--compact { min-height: 80px; margin-bottom: 12px; }
.viz-caption { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.viz-empty { 
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 13px;
  gap: 8px;
  background: var(--bg);
  border-radius: var(--radius);
}
.viz-empty-icon { font-size: 32px; opacity: 0.5; }
.viz-empty p { margin: 0; }

.viz-bar-chart { 
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 180px;
  padding: 12px 8px 32px;
  background: var(--bg);
  border-radius: var(--radius);
}
.viz-bar-col { 
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
}
.viz-bar-value { font-size: 11px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.viz-bar-track { 
  width: 100%;
  max-width: 40px;
  height: 120px;
  background: #e1e3e5;
  border-radius: 4px 4px 2px 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.viz-bar-fill { 
  width: 100%;
  background: #c4cdd5;
  border-radius: 4px 4px 0 0;
  transition: height 0.35s ease;
}
.viz-bar-col.is-active .viz-bar-fill { background: var(--accent); }
.viz-bar-label { margin-top: 8px; font-size: 11px; color: var(--muted); }

.viz-split { display: flex; align-items: center; gap: 24px; }
.viz-donut-host { width: 120px; height: 120px; flex-shrink: 0; }
.viz-legend-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.viz-legend-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.viz-legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

.mini-label { font-size: 12px; color: var(--muted); }

/* ========== VARIANT PANEL ========== */
.variant-panel { 
  margin-top: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.variant-panel[hidden] { display: none !important; }
.variant-panel-head { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.variant-panel-head h4 { margin: 0; font-size: 14px; font-weight: 600; }

/* ========== CUSTOMERS ========== */
.customers-search { 
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  margin-bottom: 16px;
}
.customers-pager { 
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ========== ANALYTICS ========== */
.analytics-banner { font-size: 13px; margin: 0 24px 16px; }
.channel-wrap { display: flex; align-items: center; gap: 24px; }
.donut { 
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 50%, #d4a574 50% 75%, #e8ddd5 75% 100%);
  position: relative;
}
.donut::after { 
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: #fff;
  left: 20%;
  top: 20%;
}
.legend { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.legend li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 3px; }
.dot.web { background: var(--accent); }
.dot.insta { background: #d4a574; }
.dot.wholesale { background: #e8ddd5; }

.viz-line { 
  width: 100%;
  height: 220px;
  background: var(--bg);
  border-radius: var(--radius);
}

.funnel { display: grid; gap: 12px; margin-top: 8px; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; font-size: 13px; }
.funnel-label { color: var(--muted); }
.funnel-bar-wrap { background: #e1e3e5; border-radius: 999px; overflow: hidden; height: 16px; }
.funnel-bar { height: 100%; background: var(--accent); border-radius: 999px; }
.funnel-val { font-weight: 600; min-width: 48px; text-align: right; }

.live-dot { 
  font-size: 12px;
  font-weight: 600;
  color: #c41e1e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot::before { 
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c41e1e;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ========== EDUCATION KPI ========== */
.edu-kpi-grid { grid-template-columns: repeat(5, 1fr); }
.orders-kpi-grid .kpi p { font-size: 28px; }

/* ========== LAUNCH CHECKLIST ========== */
.launch-checklist-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.viz-ring-host {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.launch-checklist-list {
  flex: 1;
}

/* ========== ADMIN SEARCH RESULTS ========== */
.admin-search-results { 
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin: 0 24px 16px;
}
.admin-search-results[hidden] { display: none !important; }
.admin-search-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-search-cols section h4 { 
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.admin-search-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.admin-search-jump { 
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: background 0.15s;
}
.admin-search-jump:hover { 
  background: var(--bg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-two { grid-template-columns: 1fr; }
  .grid-three { grid-template-columns: 1fr; }
  .admin-search-cols { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .studio-sidebar { 
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .studio-sidebar.is-open { transform: translateX(0); }
  .studio-main { 
    margin-left: 0;
    width: 100%;
  }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .module { padding: 16px; }
  .studio-topbar { padding: 12px 16px; }
  .studio-topbar h1 { font-size: 18px; }
  .card { padding: 16px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .edu-kpi-grid { grid-template-columns: 1fr; }
}

/* ========== EDUCATION EXTRAS ========== */
.edu-builder-list { margin: 0; padding: 0; list-style: none; }
.edu-builder-item { 
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line-light);
}
.edu-builder-item[draggable="true"] { cursor: grab; }
.edu-builder-handle { color: var(--muted); font-size: 16px; user-select: none; }

.edu-review-modal { 
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.edu-review-modal[hidden] { display: none !important; }
.edu-review-modal-inner {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.edu-review-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.edu-review-image {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.edu-review-notes {
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.edu-rubric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
  border: none;
  padding: 0;
}
.edu-rubric-grid legend { margin-bottom: 8px; }
.edu-review-decision {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.edu-review-decision label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.edu-competency-list { margin: 0; padding: 0; list-style: none; }
.edu-quiz-editor { margin-top: 16px; }
#edu-quiz-questions-list { margin: 16px 0; }

/* ========== PRODUCT EDITOR MODAL ========== */
.products-search {
  width: 280px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
}
.table-products tbody tr {
  cursor: pointer;
}
.table-products tbody tr:hover {
  background: var(--accent-soft);
}

.product-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.product-editor-modal[hidden] { display: none !important; }

.product-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
}

.product-editor-panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.product-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.product-editor-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.product-editor-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.product-editor-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.product-editor-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) {
  .product-editor-layout { grid-template-columns: 1fr; }
}

.product-editor-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-editor-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.pe-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.pe-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
}

.pe-input-lg {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
}
.pe-input-lg:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.product-editor-section textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
}
.product-editor-section textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.product-editor-section label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.product-editor-section label input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
}
.product-editor-section label input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pe-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pe-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .pe-row-2, .pe-row-3 { grid-template-columns: 1fr; }
}

.pe-input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pe-input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.pe-input-prefix input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pe-input-prefix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Media Section */
.pe-media-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}
.pe-media-main {
  aspect-ratio: 1;
  max-height: 280px;
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
}
.pe-media-main:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pe-media-placeholder {
  text-align: center;
  color: var(--muted);
}
.pe-media-placeholder svg {
  margin-bottom: 12px;
  opacity: 0.5;
}
.pe-media-placeholder span {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.pe-media-placeholder small {
  font-size: 12px;
}
.pe-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-media-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pe-media-thumb {
  width: 64px;
  height: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.pe-media-thumb:hover {
  border-color: var(--accent);
}
.pe-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pe-thumb-placeholder {
  font-size: 12px;
  color: var(--muted);
}

.pe-media-urls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .pe-media-urls { grid-template-columns: 1fr; }
}

/* Sidebar */
.product-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pe-sidebar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.pe-sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}
.pe-sidebar-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.pe-sidebar-card label:last-of-type {
  margin-bottom: 0;
}
.pe-sidebar-card input[type="text"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
}
.pe-sidebar-card input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pe-toggle-row {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}
.pe-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.pe-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.4;
}

/* Primary button with icon */
.btn-primary-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary-admin:hover {
  background: var(--accent-hover);
}
.btn-primary-admin svg {
  flex-shrink: 0;
}

/* ========== EDUCATION TABS ========== */
.edu-tabs-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0 4px;
  margin-bottom: -8px;
}
.edu-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.edu-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.edu-tab:hover {
  color: var(--ink);
}
.edu-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.edu-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
}
.edu-tab-badge:empty,
.edu-tab-badge[data-count="0"] {
  display: none;
}

.edu-tab-panel {
  display: none;
}
.edu-tab-panel.is-active {
  display: block;
}
.edu-tab-panel[hidden] {
  display: none !important;
}

/* Course table styling */
.table-courses tbody tr {
  cursor: pointer;
}
.table-courses tbody tr:hover {
  background: var(--accent-soft);
}
.course-row-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-row-thumb {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--line-light);
}
.course-row-title {
  font-weight: 500;
}
.course-row-modules {
  font-size: 12px;
  color: var(--muted);
}

/* Course editor modules list */
.ce-modules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ce-module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}
.ce-module-item:hover {
  border-color: var(--line);
}
.ce-module-drag {
  color: var(--muted);
  cursor: grab;
  user-select: none;
}
.ce-module-drag:active {
  cursor: grabbing;
}
.ce-module-item.ce-module-dragging {
  opacity: 0.5;
  background: var(--accent-soft);
  border-color: var(--accent);
}
.ce-module-item.ce-module-dragover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.ce-module-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ce-module-info {
  flex: 1;
  min-width: 0;
}
.ce-module-title {
  font-weight: 500;
  font-size: 14px;
}
.ce-module-meta {
  font-size: 12px;
  color: var(--muted);
}
.ce-module-actions {
  display: flex;
  gap: 4px;
}
.ce-module-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

/* Module Add Modal */
.module-add-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.module-add-modal[hidden] { display: none !important; }
.module-add-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.module-add-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}
.module-add-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.module-add-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.module-add-panel .form-grid {
  padding: 20px;
}
.module-add-panel select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

/* Select styling for course editor */
.product-editor-section select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.product-editor-section select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ========== MODULE EDITOR MODAL ========== */
.module-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.module-editor-modal[hidden] { display: none !important; }
.module-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.module-editor-panel {
  position: relative;
  width: 100%;
  max-width: 700px;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.module-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
}
.module-editor-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.module-editor-type-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 8px;
}
.module-editor-header-actions {
  display: flex;
  gap: 8px;
}
.module-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.module-editor-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}
.module-editor-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.module-editor-section h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.me-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.me-form-grid .me-full {
  grid-column: 1 / -1;
}
.me-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.me-form-grid input,
.me-form-grid select,
.me-form-grid textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.me-form-grid input:focus,
.me-form-grid select:focus,
.me-form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.me-form-grid small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* Video preview */
.me-video-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.me-video-placeholder {
  color: var(--muted);
  font-size: 13px;
}
.me-video-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.me-video-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.me-video-upload-block label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.me-video-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.me-video-upload-btn { cursor: pointer; }
.me-video-upload-progress { margin-top: 0.75rem; }
.me-video-upload-bar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.me-video-upload-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* Quiz questions */
.me-quiz-questions {
  margin-top: 24px;
}
.me-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.me-quiz-header h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.me-questions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.me-question-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}
.me-question-item:hover {
  border-color: var(--line);
}
.me-question-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.me-question-content {
  flex: 1;
  min-width: 0;
}
.me-question-text {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}
.me-question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.me-question-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}
.me-question-opt.is-correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}
.me-question-actions {
  display: flex;
  gap: 4px;
}
.me-question-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

/* Question Editor Modal */
.question-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.question-editor-modal[hidden] { display: none !important; }
.question-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  cursor: pointer;
}
.question-editor-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.question-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.question-editor-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.question-editor-body {
  padding: 20px;
}
.question-editor-body label.me-full {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.question-editor-body textarea,
.question-editor-body input[type="text"] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
}
.question-editor-body textarea:focus,
.question-editor-body input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.qe-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qe-option {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qe-option-label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.qe-option input[type="text"] {
  flex: 1;
}
.qe-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}
.qe-type-row {
  margin-bottom: 16px;
}
.qe-type-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}
.qe-type-row select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.qe-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}
.qe-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}
.me-question-type-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 6px;
  vertical-align: middle;
}
.question-editor-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Quill Rich Text Editor */
#me-quill-toolbar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}
#me-quill-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  font-family: inherit;
  font-size: 14px;
}
#me-quill-editor .ql-editor {
  min-height: 200px;
  line-height: 1.6;
}
#me-quill-editor .ql-editor h1,
#me-quill-editor .ql-editor h2,
#me-quill-editor .ql-editor h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin: 0.5em 0;
}
#me-quill-editor .ql-editor p {
  margin: 0.5em 0;
}
#me-quill-editor .ql-editor ul,
#me-quill-editor .ql-editor ol {
  padding-left: 1.5em;
}
#me-quill-editor .ql-editor blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1em;
  margin: 0.5em 0;
  color: var(--muted);
}
#me-quill-editor .ql-editor pre.ql-syntax {
  background: var(--bg);
  padding: 1em;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
}
.ql-snow .ql-picker {
  color: var(--text);
}
.ql-snow .ql-stroke {
  stroke: var(--text);
}
.ql-snow .ql-fill {
  fill: var(--text);
}
.ql-snow .ql-picker-options {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
  color: var(--accent);
}
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--accent);
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  .module-editor-panel {
    max-width: 100%;
  }
  .me-form-grid {
    grid-template-columns: 1fr;
  }
  .qe-option {
    flex-wrap: wrap;
  }
}
