/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* superfícies — neutro frio, levemente azulado */
  --bg: oklch(15.5% 0.012 260);
  --panel: oklch(19.5% 0.014 260);
  --panel2: oklch(24% 0.016 260);
  --panel3: oklch(28% 0.018 260);
  --border: oklch(32% 0.02 260);
  --border-strong: oklch(40% 0.024 260);

  /* texto */
  --text: oklch(95% 0.008 260);
  --text-dim: oklch(80% 0.012 260);
  --muted: oklch(64% 0.02 260);
  --faint: oklch(48% 0.018 260);

  /* marca / ação primária */
  --accent: oklch(65% 0.19 279);
  --accent-hover: oklch(70% 0.19 279);
  --accent-dim: oklch(65% 0.19 279 / 0.15);
  --accent-text: oklch(97% 0.01 279);

  /* status */
  --ok: oklch(74% 0.16 154);
  --ok-dim: oklch(74% 0.16 154 / 0.15);
  --warn: oklch(78% 0.15 80);
  --warn-dim: oklch(78% 0.15 80 / 0.15);
  --danger: oklch(66% 0.19 23);
  --danger-dim: oklch(66% 0.19 23 / 0.15);

  /* categorias de conteúdo (distintas de status) */
  --normal: oklch(74% 0.11 200);
  --normal-dim: oklch(74% 0.11 200 / 0.15);
  --acao: oklch(75% 0.15 55);
  --acao-dim: oklch(75% 0.15 55 / 0.15);

  /* forma */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* elevação */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);

  /* tipografia */
  --font-display: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  font-family: var(--font-body);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); height: 100%; }
body {
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
code, .mono { font-family: var(--font-mono); }
a { color: var(--accent); }

::selection { background: var(--accent-dim); color: var(--text); }

/* barra de rolagem discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel3); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* foco visível — teclado */
:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm);
}

svg.icon { width: 16px; height: 16px; flex-shrink: 0; display: block; }
svg.icon-sm { width: 14px; height: 14px; }
svg.icon-lg { width: 20px; height: 20px; }

/* ==========================================================================
   Shell / Sidebar
   ========================================================================== */
.shell { display: flex; height: 100vh; width: 100%; overflow: hidden; align-items: stretch; }

.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap;
  display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; overflow: hidden;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), oklch(65% 0.19 320));
  display: flex; align-items: center; justify-content: center; color: white;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 12px; }
.admin-brand-badge {
  display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--accent); background: var(--accent-dim); padding: 3px 9px; border-radius: var(--radius-full);
}
.admin-brand-badge svg { width: 12px; height: 12px; }

.sidebar {
  width: 232px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; height: 100vh; z-index: 30;
  transition: width .15s ease;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sidebar-collapse-btn {
  width: 26px; height: 26px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border);
  color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all .12s;
}
.sidebar-collapse-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel2); }
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 1px; }
.sidebar-section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 14px 10px 6px; white-space: nowrap; }
.sidebar-section-label:first-child { padding-top: 6px; }
.sidebar-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius); color: var(--text-dim);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; overflow: hidden;
}
.sidebar-item:hover { background: var(--panel2); color: var(--text); }
.sidebar-item.active { background: var(--accent-dim); color: var(--accent); }
.sidebar-item svg { flex-shrink: 0; }
.sidebar-item .item-label { overflow: hidden; text-overflow: ellipsis; }
.sidebar-item .item-badge {
  margin-left: auto; background: var(--danger); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: var(--radius-full); flex-shrink: 0;
}
.sidebar-item.sub { padding-left: 30px; }
.sidebar-bottom { border-top: 1px solid var(--border); padding: 12px 14px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sidebar-bottom .user-email { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.sidebar-bottom .icon-btn { flex-shrink: 0; }
.user-role-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent-dim); color: var(--accent); padding: 2px 7px; border-radius: var(--radius-full);
}

/* colapsado: so icones, com tooltip nativo (title) */
.sidebar.collapsed { width: 60px; }
.sidebar.collapsed .brand-label,
.sidebar.collapsed .sidebar-section-label,
.sidebar.collapsed .sidebar-item .item-label,
.sidebar.collapsed .sidebar-item .item-badge,
.sidebar.collapsed .sidebar-bottom .user-email { display: none; }
.sidebar.collapsed .sidebar-item { justify-content: center; padding: 9px; }
.sidebar.collapsed .sidebar-item.sub { padding-left: 9px; }
.sidebar.collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
.sidebar.collapsed .sidebar-top { justify-content: center; }
.sidebar.collapsed .sidebar-bottom { justify-content: center; }

.sidebar-scrim { display: none; }

.main-col {
  flex: 1; min-width: 0; min-height: 0; height: 100vh; display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
}
.topbar-mini { display: none; }

/* ==========================================================================
   Layout geral
   ========================================================================== */
#app { flex: 1; padding: 24px 32px 60px; max-width: 1600px; margin: 0 auto; width: 100%; }
.spacer { flex: 1; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

.empty-state {
  text-align: center; color: var(--muted); padding: 30px 20px; font-size: 14px;
}
.empty-hero {
  text-align: center; padding: 72px 24px; max-width: 460px; margin: 40px auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.empty-hero .empty-icon {
  width: 64px; height: 64px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted); margin-bottom: 18px;
}
.empty-hero .empty-icon svg { width: 30px; height: 30px; }
.empty-hero h2 { font-size: 19px; margin-bottom: 6px; }
.empty-hero p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 22px; }

.skeleton {
  background: linear-gradient(90deg, var(--panel2) 25%, var(--panel3) 37%, var(--panel2) 63%);
  background-size: 400% 100%; animation: skeleton-shine 1.4s ease infinite; border-radius: var(--radius);
}
@keyframes skeleton-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.skeleton-card { aspect-ratio: 9/13; border-radius: var(--radius); }

/* ==========================================================================
   Stepper de progresso (visão geral do produto)
   ========================================================================== */
.stepper { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 190px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; cursor: pointer; transition: border-color .12s, background .12s, transform .12s;
  display: flex; flex-direction: column; gap: 8px; position: relative;
}
.step:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.step.current { border-color: var(--accent); background: var(--accent-dim); }
.step-top { display: flex; align-items: center; gap: 8px; }
.step-index {
  width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--panel3); color: var(--muted);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-display);
}
.step.done .step-index { background: var(--ok); color: oklch(20% 0.05 154); }
.step.done .step-index svg { width: 12px; height: 12px; }
.step.current .step-index { background: var(--accent); color: white; }
.step-title { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.step.current .step-title, .step.done .step-title { color: var(--text); }
.step-value { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.step-hint { font-size: 11.5px; color: var(--muted); }
.step-connector { width: 20px; align-self: center; color: var(--border-strong); flex: 0; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .step-connector { display: none; } }

.stat-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px;
  min-width: 120px;
}
.stat-card .num { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.stat-card .label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ==========================================================================
   Páginas: Dashboard / Produtos / Processamentos / Vídeos finais
   ========================================================================== */
.dashboard-grid { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.dashboard-grid .stat-card { flex: 1; min-width: 130px; }
.dashboard-section-title { font-size: 14px; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }

/* KPIs ricos (Dashboard do usuario, Admin Visao geral) */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin-bottom: 8px; }
.kpi-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 10px; min-height: 108px;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon {
  width: 30px; height: 30px; border-radius: var(--radius); background: var(--panel2); color: var(--muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kpi-card.warn .kpi-icon { background: var(--warn-dim); color: var(--warn); }
.kpi-card.danger .kpi-icon { background: var(--danger-dim); color: var(--danger); }
.kpi-card.ok .kpi-icon { background: var(--ok-dim); color: var(--ok); }
.kpi-num { font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1; }
.kpi-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
.kpi-sub { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.kpi-link {
  font-size: 11.5px; font-weight: 600; color: var(--accent); background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px; margin-top: auto; font-family: var(--font-body);
}
.kpi-link:hover { text-decoration: underline; }

/* wrapper de secao reutilizavel: titulo + subtitulo + acao "ver tudo" */
.dash-section { margin-bottom: 30px; }
.dash-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dash-section-head h2 { font-size: 15px; display: flex; align-items: center; gap: 7px; }
.dash-section-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.see-all {
  font-size: 12.5px; font-weight: 600; color: var(--accent); background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-family: var(--font-body); flex-shrink: 0;
}
.see-all:hover { text-decoration: underline; }

/* listas de itens (Precisa de atencao, Continuar trabalhando, Solicitacoes recentes...) */
.item-list { display: flex; flex-direction: column; gap: 8px; }
.item-row {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.item-row .ir-body { flex: 1; min-width: 200px; }
.item-row .ir-name { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.item-row .ir-detail { font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.item-row .ir-detail span { display: flex; align-items: center; gap: 5px; }
.item-row .ir-detail .danger-text { color: var(--danger); }

.mini-bar { height: 5px; width: 100%; border-radius: var(--radius-full); background: var(--panel2); overflow: hidden; }
.mini-bar .fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); }

/* resumo de producao agregada (Dashboard) */
.production-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.production-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.production-item .pi-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.production-item .pi-num { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.production-item .pi-label { font-size: 12px; color: var(--muted); }

.mini-stats { display: flex; gap: 22px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.mini-stats strong { color: var(--text); font-family: var(--font-display); font-size: 16px; margin-right: 5px; }

.empty-block {
  text-align: center; padding: 26px 20px; color: var(--muted); font-size: 13px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}

.workspace-back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600;
  cursor: pointer; margin-bottom: 10px; transition: color .12s; background: none; border: none; padding: 0; font-family: var(--font-body);
}
.workspace-back:hover { color: var(--text); }
.workspace-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.workspace-title-row h1 { font-size: 20px; }

.products-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.products-search {
  flex: 1; min-width: 200px; max-width: 340px; display: flex; align-items: center; gap: 8px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; color: var(--muted);
}
.products-search svg { flex-shrink: 0; }
.products-search input {
  flex: 1; background: transparent; border: none; color: var(--text); font-size: 13px; outline: none; font-family: var(--font-body);
  -webkit-appearance: none; appearance: none;
}
.products-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.product-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px;
  cursor: pointer; transition: border-color .12s, transform .12s; display: flex; flex-direction: column; gap: 10px;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.product-card.needs-attention { border-color: var(--warn); }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pc-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.3; word-break: break-word; }
.pc-delete { flex-shrink: 0; opacity: 0; transition: opacity .12s; }
.product-card:hover .pc-delete { opacity: .6; }
.pc-delete:hover { opacity: 1 !important; }
.pc-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pc-stats span { display: flex; align-items: center; gap: 5px; }
.pc-stats svg { width: 13px; height: 13px; }
.pc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pc-attention { color: var(--warn); display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }

.finals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.final-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.final-card video { width: 100%; border-radius: var(--radius); background: black; margin-bottom: 10px; }
.final-card .fc-name { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.final-card .fc-meta { color: var(--muted); font-size: 11.5px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 11px 14px; border-bottom: 1px solid var(--border-strong); font-weight: 700; white-space: nowrap;
  background: var(--panel2);
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-dim); }
.data-table tbody tr:nth-child(even) td { background: oklch(100% 0 0 / 0.014); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--panel2); }
.data-table tbody tr.clickable { cursor: pointer; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); }
.table-wrap .data-table { min-width: 560px; }
.table-wrap .data-table th:first-child, .table-wrap .data-table td:first-child { padding-left: 18px; }
.table-wrap .data-table th:last-child, .table-wrap .data-table td:last-child { padding-right: 18px; }

/* utilitarios de texto/valor pra celulas de tabela */
.td-primary { color: var(--text); font-weight: 600; }
.td-muted { color: var(--muted); font-size: 12px; }
.td-num { font-family: var(--font-mono); font-size: 12.5px; }
.danger-text { color: var(--danger); }
.ok-text { color: var(--ok); }

/* variantes de status-pill pra status derivado de produto (tabelas admin) */
.status-pill.ps-done { background: var(--ok-dim); color: var(--ok); }
.status-pill.ps-review { background: var(--warn-dim); color: var(--warn); }
.status-pill.ps-error { background: var(--danger-dim); color: var(--danger); }
.status-pill.ps-processing { background: var(--accent-dim); color: var(--accent); }
.status-pill.ps-roteiro, .status-pill.ps-neutral { background: var(--panel3); color: var(--text-dim); }

.admin-user-card.clickable { cursor: pointer; transition: border-color .12s, transform .12s; }
.admin-user-card.clickable:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ==========================================================================
   Navegação de seção
   ========================================================================== */
.section-tabs { display: flex; gap: 2px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.section-tab {
  padding: 10px 14px; cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 500;
  border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 7px; transition: color .12s;
}
.section-tab:hover { color: var(--text-dim); }
.section-tab.active { color: var(--text); border-color: var(--accent); }
.section-tab .tab-count {
  font-size: 10.5px; font-weight: 700; background: var(--panel3); color: var(--muted); border-radius: var(--radius-full);
  padding: 1px 6px; min-width: 16px; text-align: center;
}
.section-tab.active .tab-count { background: var(--accent-dim); color: var(--accent); }

/* ==========================================================================
   Pastas / clipes
   ========================================================================== */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.legend { display: flex; gap: 18px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .dot.NORMAL { background: var(--normal); }
.legend .dot.ACAO { background: var(--acao); }
.legend .dot.REJECTED { background: var(--danger); }

.filter-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.filter-label { font-size: 12px; color: var(--muted); margin-right: 2px; font-weight: 500; }
.filter-chip {
  background: var(--panel); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: var(--radius-full); padding: 6px 13px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: border-color .12s, background .12s, color .12s;
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.filter-chip .count { background: var(--panel3); border-radius: var(--radius-full); padding: 1px 7px; font-size: 11px; color: var(--muted); }
.filter-chip.active { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }
.filter-chip.active .count { background: var(--accent); color: white; }
.filter-chip.clear { color: var(--muted); border-style: dashed; }
.clip-card.filtered-out { display: none; }

.add-pasta-btn {
  background: transparent; border: 1px dashed var(--border-strong); color: var(--muted);
  border-radius: var(--radius); padding: 9px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .12s, color .12s, background .12s;
}
.add-pasta-btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }

.pasta-group { margin-bottom: 30px; }
.pasta-group.needs-config {
  border: 1px solid var(--acao); border-radius: var(--radius-lg); padding: 14px 16px; margin: -14px -16px 24px;
  background: var(--acao-dim);
}
.pasta-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pasta-header h3 { font-size: 15px; }
.cat-badge {
  font-size: 10.5px; padding: 3px 9px; border-radius: var(--radius-full); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.cat-badge.NORMAL { background: var(--normal-dim); color: var(--normal); }
.cat-badge.ACAO { background: var(--acao-dim); color: var(--acao); }
.pasta-count { color: var(--muted); font-size: 12px; }
.needs-config-badge {
  background: var(--acao); color: oklch(20% 0.05 55); border: none;
  border-radius: var(--radius-full); padding: 3px 10px; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.pasta-header-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.icon-btn {
  background: var(--panel2); border: 1px solid var(--border); color: var(--muted); border-radius: var(--radius-sm);
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.icon-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.pasta-edit-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.pasta-edit-panel.hidden { display: none; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

.upload-trigger {
  background: var(--panel2); border: 1px solid var(--border); color: var(--text-dim); border-radius: var(--radius);
  padding: 7px 13px; font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: border-color .12s, color .12s, background .12s;
}
.upload-trigger:hover { border-color: var(--accent); color: var(--text); }
.upload-trigger.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.upload-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px;
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px;
}
.upload-panel.hidden { display: none; }
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 24px 16px; text-align: center;
  cursor: pointer; transition: border-color .12s, background .12s; color: var(--muted);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }
.dropzone svg { width: 26px; height: 26px; margin-bottom: 8px; opacity: .7; }
.dropzone .dz-title { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.dropzone .dz-sub { font-size: 11.5px; margin-top: 3px; }
.upload-panel-divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 11px; }
.upload-panel-divider::before, .upload-panel-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.upload-status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.upload-status.success { color: var(--ok); }
.upload-status.error { color: var(--danger); }

.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; }
.clip-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; position: relative;
}
.clip-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.clip-card.approved { border-color: var(--ok); }
.clip-card.rejected { border-color: var(--danger); opacity: .65; }
.clip-card.rejected:hover { opacity: 1; }
.clip-thumb-wrap { position: relative; background: #05070a; }
.clip-thumb { width: 100%; aspect-ratio: 9/16; background: #05070a; object-fit: cover; display: block; }
.approved-ribbon, .rejected-ribbon {
  position: absolute; top: 7px; right: 7px; font-size: 10px;
  font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); display: flex; align-items: center; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.approved-ribbon { background: var(--ok); color: oklch(18% 0.04 154); }
.rejected-ribbon { background: var(--danger); color: oklch(18% 0.04 23); }
.approved-ribbon svg, .rejected-ribbon svg { width: 11px; height: 11px; }
.clip-info { padding: 8px 9px; font-size: 11px; color: var(--muted); }
.clip-info .fname { color: var(--text-dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }

/* ==========================================================================
   Anexar roteiro
   ========================================================================== */
.attach-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px; }
.attach-panel.hidden { display: none; }
.attach-help { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.attach-help p { margin: 0 0 9px; color: var(--muted); line-height: 1.55; }
.attach-help code { background: var(--panel2); padding: 1px 6px; border-radius: var(--radius-sm); font-size: 12px; }
.prompt-map { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; font-size: 13px; }
.prompt-map-row { color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.format-example {
  background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 11.5px; color: var(--muted); overflow-x: auto; font-family: var(--font-mono);
}
#attachText {
  width: 100%; min-height: 140px; background: var(--panel2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-size: 12.5px;
  font-family: var(--font-mono); resize: vertical;
}
#attachText:focus { border-color: var(--accent); }
.attach-errors, .attach-warnings {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); font-size: 13px;
}
.attach-errors { background: var(--danger-dim); border: 1px solid var(--danger); color: var(--text-dim); }
.attach-warnings { background: var(--acao-dim); border: 1px solid var(--acao); color: var(--text-dim); }
.attach-errors ul, .attach-warnings ul { margin: 8px 0 0; padding-left: 18px; }
.attach-errors li, .attach-warnings li { margin-bottom: 3px; }

/* ==========================================================================
   Novo produto (modal)
   ========================================================================== */
.newproduct-content { max-width: 500px; text-align: left; }
.newproduct-content h3 { margin: 0 0 4px; font-size: 18px; }
.newproduct-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.field-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.field-hint { font-size: 12px; color: var(--muted); margin: 8px 0 12px; line-height: 1.55; }
#npName {
  width: 100%; background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 16px; transition: border-color .12s;
}
#npName:focus { border-color: var(--accent); }
.np-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.np-tab {
  flex: 1; background: var(--panel2); border: 1px solid var(--border); color: var(--muted);
  border-radius: var(--radius); padding: 11px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: all .12s;
}
.np-tab.active { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.np-pane.hidden { display: none; }

.filedrop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 22px 16px; text-align: center;
  cursor: pointer; transition: all .12s; color: var(--muted); position: relative;
}
.filedrop:hover, .filedrop.dragover { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }
.filedrop svg { width: 24px; height: 24px; margin-bottom: 6px; opacity: .7; }
.filedrop .fd-name { font-size: 12.5px; font-weight: 600; color: var(--text-dim); word-break: break-all; }
.filedrop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ==========================================================================
   Config pendente
   ========================================================================== */
.pending-config-panel {
  background: var(--acao-dim); border: 1px solid var(--acao); border-radius: var(--radius-lg);
  padding: 16px 18px; margin-bottom: 18px;
}
.pending-config-panel h4 { margin: 0 0 12px; color: var(--acao); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pending-config-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px;
}
.pending-config-row input[type="text"] { width: 220px; }
.pending-config-row .count { color: var(--muted); font-size: 12px; margin-left: auto; }

/* ==========================================================================
   Lixeira
   ========================================================================== */
.flag-list { display: flex; flex-direction: column; gap: 10px; }
.flag-item {
  display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px;
  align-items: center; transition: border-color .12s;
}
.flag-item:hover { border-color: var(--border-strong); }
.flag-item img { width: 64px; height: 114px; object-fit: cover; border-radius: var(--radius-sm); background: #000; cursor: pointer; flex-shrink: 0; }
.flag-item .meta { flex: 1; min-width: 0; }
.flag-item .fname { font-weight: 500; }
.flag-item .reason { color: var(--danger); font-size: 12.5px; margin-top: 4px; display: flex; align-items: flex-start; gap: 5px; }
.flag-item .sub { color: var(--muted); font-size: 11.5px; margin-top: 5px; }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  background: var(--accent); color: white; border: none; border-radius: var(--radius); padding: 9px 16px;
  cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  transition: background .12s, filter .12s, transform .05s; font-family: var(--font-body);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--panel2); border: 1px solid var(--border); color: var(--text); }
.btn.secondary:hover { border-color: var(--border-strong); background: var(--panel3); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { filter: brightness(1.08); }
.btn.ok { background: var(--ok); color: oklch(18% 0.04 154); }
.btn.ok:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn.big { padding: 13px 24px; font-size: 14.5px; border-radius: var(--radius); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Roteiro
   ========================================================================== */
.roteiro-summary { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.token-list {
  max-height: 340px; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px; font-family: var(--font-mono); font-size: 11.5px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 5px;
}
.token-list .tok { padding: 4px 8px; border-radius: var(--radius-sm); }
.token-list .tok.NORMAL { background: var(--normal-dim); color: var(--normal); }
.token-list .tok.ACAO { background: var(--acao-dim); color: var(--acao); }
.source-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border); padding: 5px 10px; border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* ==========================================================================
   Pipeline
   ========================================================================== */
.pipeline-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 14px; margin: 18px 0; }
.phase-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; transition: border-color .15s; }
.phase-card.is-running { border-color: var(--accent); }
.phase-card.is-done { border-color: var(--ok); }
.phase-card.is-error { border-color: var(--danger); }
.phase-card h4 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; gap: 8px; }
.phase-status { font-size: 10.5px; padding: 3px 9px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; white-space: nowrap; }
.phase-status.pending { background: var(--panel2); color: var(--muted); }
.phase-status.running { background: var(--accent-dim); color: var(--accent); }
.phase-status.done { background: var(--ok-dim); color: var(--ok); }
.phase-status.error { background: var(--danger-dim); color: var(--danger); }
.phase-status.cancelled { background: var(--warn-dim); color: var(--warn); }

.progress-bar { height: 8px; background: var(--panel2); border-radius: var(--radius-full); overflow: hidden; margin: 10px 0; }
.progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--accent), oklch(65% 0.19 310)); transition: width .3s ease; border-radius: var(--radius-full); }
.phase-numbers { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }

.overall-bar { margin: 4px 0 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.overall-bar .row strong { font-size: 13.5px; }
.overall-bar .progress-bar { height: 14px; margin: 10px 0 2px; }
#overallPct { font-family: var(--font-display); font-weight: 700; }

.log-panel {
  background: oklch(10% 0.01 260); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px;
  max-height: 220px; overflow-y: auto; font-family: var(--font-mono); font-size: 11.5px; color: oklch(78% 0.1 154);
}
.log-panel div { padding: 2px 0; }
.log-panel:empty::before { content: "O log de execução aparece aqui quando a pipeline rodar."; color: var(--faint); font-family: var(--font-body); }

.output-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-top: 20px; }
.output-box h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.output-box video { width: 220px; border-radius: var(--radius); background: black; }

/* ==========================================================================
   Modais
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: oklch(0% 0 0 / .7); backdrop-filter: blur(2px); }
.modal-content {
  position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto; z-index: 1; box-shadow: var(--shadow-lg);
}
.modal-content video { width: 100%; border-radius: var(--radius); background: black; max-height: 60vh; }
.modal-close {
  position: absolute; top: 12px; right: 12px; background: var(--panel2); border: 1px solid var(--border); color: var(--muted);
  border-radius: var(--radius-full); width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-meta { color: var(--muted); font-size: 12px; margin: 10px 0; }
.modal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-nav:empty { display: none; margin: 0; }
.modal-nav .btn { padding: 6px 12px; font-size: 12.5px; }
.modal-nav-pos { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.modal-status {
  font-size: 12.5px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--radius); background: var(--panel2);
}
.modal-status.approved { color: var(--ok); background: var(--ok-dim); }
.modal-status.pending { color: var(--muted); }
.modal-status.rejected { color: var(--danger); background: var(--danger-dim); }
.modal-actions { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.modal-actions textarea {
  width: 100%; min-height: 64px; background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px; font-size: 13px; resize: vertical; font-family: var(--font-body);
}
.modal-actions textarea:focus { border-color: var(--accent); }
.modal-actions hr { border: none; border-top: 1px solid var(--border); margin: 2px 0; width: 100%; }

.confirm-content { max-width: 420px; text-align: center; }
.confirm-icon {
  width: 46px; height: 46px; border-radius: var(--radius-full); background: var(--danger-dim); color: var(--danger);
  display: flex; align-items: center; justify-content: center; margin: 4px auto 14px;
}
.confirm-message { font-size: 14px; line-height: 1.6; margin: 0 0 20px; white-space: pre-line; color: var(--text-dim); }
.confirm-buttons { display: flex; gap: 10px; justify-content: center; }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: 340px; }
.toast {
  background: var(--panel2); border: 1px solid var(--border); padding: 11px 14px; border-radius: var(--radius);
  font-size: 13px; box-shadow: var(--shadow-lg); display: flex; align-items: flex-start; gap: 9px;
  animation: toast-in .18s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.toast.error { border-color: var(--danger); }
.toast.error svg { color: var(--danger); }
.toast.success { border-color: var(--ok); }
.toast.success svg { color: var(--ok); }

/* ==========================================================================
   Utilitários
   ========================================================================== */
.row { display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-header h2 { font-size: 19px; }
.admin-back-btn { flex-shrink: 0; }

.admin-users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 30px; }
.admin-user-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.admin-user-card .auc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.admin-user-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--panel3); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0; text-transform: uppercase;
}
.admin-user-card .auc-email { font-weight: 600; font-size: 13.5px; word-break: break-all; }
.admin-user-card .auc-meta { font-size: 11.5px; color: var(--muted); margin: 2px 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-pill { border-radius: var(--radius-full); padding: 2px 9px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.status-pill.active { background: var(--ok-dim); color: var(--ok); }
.status-pill.pending { background: var(--warn-dim); color: var(--warn); }
.status-pill.disabled { background: var(--danger-dim); color: var(--danger); }
.admin-user-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-user-actions .btn { padding: 6px 11px; font-size: 11.5px; }
.resetpw-row { display: flex; gap: 6px; margin-top: 10px; }
.resetpw-row.hidden { display: none; }
.resetpw-row input { flex: 1; min-width: 0; }

.admin-product-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .12s, transform .12s;
  display: flex; align-items: center; gap: 14px;
}
.admin-product-card:hover { border-color: var(--accent); transform: translateX(2px); }
.admin-product-card .apc-icon {
  width: 38px; height: 38px; border-radius: var(--radius); background: var(--panel2); color: var(--muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-product-card .apc-body { min-width: 0; flex: 1; }
.admin-product-card .apc-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* inputs de texto/senha/select genéricos */
input[type="text"], input[type="email"], input[type="password"], select {
  background: var(--panel2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 10px; font-size: 13px; font-family: var(--font-body); transition: border-color .12s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus { border-color: var(--accent); }
input[type="file"] { color: var(--muted); font-size: 12px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 760px) {
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: -240px; width: 240px;
    transition: left .18s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.mobile-open { left: 0; }
  .sidebar.collapsed { width: 240px; } /* colapso nao se aplica no mobile -- e off-canvas */
  .sidebar.collapsed .brand-label, .sidebar.collapsed .sidebar-section-label,
  .sidebar.collapsed .sidebar-item .item-label, .sidebar.collapsed .sidebar-item .item-badge,
  .sidebar.collapsed .sidebar-bottom .user-email { display: revert; }
  .sidebar.collapsed .sidebar-item { justify-content: flex-start; padding: 8px 10px; }
  .sidebar-collapse-btn { display: none; }
  .sidebar-scrim.show {
    display: block; position: fixed; inset: 0; background: oklch(0% 0 0 / .5); z-index: 25;
  }
  .topbar-mini {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
  }
  .mobile-menu-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  }
  #app { padding: 16px 14px 40px; }
  .stepper { flex-direction: column; }
  .step { min-width: 0; }
  .clip-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .pasta-config, .pasta-header-actions { width: 100%; }
  .admin-users-grid, .products-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
}
