/* ════════════════════════════════════════════════════════════════
   kanban — identidade visual "black neon"
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #07090F;
  --bg-2: #0B0F19;
  --bg-3: #0D0D0D;
  --surface: #0E1320;
  --surface-2: #131A2A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --cyan: #46E6E0;
  --purple: #8B5CF6;
  --magenta: #E25BD0;
  --green: #3BE68B;
  --amber: #F5B945;
  --red: #FF5C7A;
  --blue: #5B8CFF;

  --text: #EAEEF6;
  --text-dim: #9BA6BC;
  --text-faint: #69748C;

  --grad: linear-gradient(118deg, var(--cyan) 0%, var(--purple) 56%, var(--magenta) 100%);
  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* Atmosfera: brilhos neon difusos atrás de tudo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46% 52% at 10% -4%, rgba(70, 230, 224, 0.16), transparent 72%),
    radial-gradient(44% 48% at 92% 104%, rgba(226, 91, 208, 0.16), transparent 72%),
    radial-gradient(58% 54% at 54% 44%, rgba(139, 92, 246, 0.11), transparent 74%);
}

/* Granulado sutil para profundidade */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

/* Scrollbars discretas */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }

/* ── Marca ─────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }

.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.brand-mark--lg { width: 52px; height: 52px; border-radius: 15px; }
.brand-mark--lg::after { inset: 12px; border-radius: 7px; }

.brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   LOGIN
   ════════════════════════════════════════════════════════════════ */
.login-page { overflow: auto; }

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  position: relative;
  width: min(410px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 34px 30px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
}
.login-glow {
  position: absolute;
  top: -120px; left: 50%;
  width: 280px; height: 280px;
  transform: translateX(-50%);
  background: var(--grad);
  filter: blur(90px);
  opacity: 0.32;
}

.login-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; position: relative; }
.login-brand .brand-name { font-size: 27px; }
.login-tag { margin: 2px 0 0; color: var(--text-faint); font-size: 12.5px; }

.login-form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.login-error {
  margin: -4px 0 0;
  font-size: 12.5px;
  color: #FF8FA3;
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.3);
  padding: 9px 12px;
  border-radius: 10px;
}
.login-foot {
  position: relative;
  margin: 20px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ════════════════════════════════════════════════════════════════
   LAYOUT DO APP
   ════════════════════════════════════════════════════════════════ */
.app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

/* ── Barra superior ────────────────────────────────────────────── */
.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 62px;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}
.topbar-mid { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Seletor de escopo (todos / projeto) */
.scope-select { position: relative; max-width: 320px; width: 100%; }
.scope-select::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.scope-select select {
  width: 100%;
  appearance: none;
  background: var(--surface-2);
  color: var(--text);
  font: 600 13.5px 'Manrope', sans-serif;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 9px 36px 9px 15px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.scope-select select:hover { border-color: rgba(139, 92, 246, 0.5); }
.scope-select select:focus-visible {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}

/* ── Botões ────────────────────────────────────────────────────── */
.btn-grad, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 700 13px 'Manrope', sans-serif;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s var(--ease), box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-block { width: 100%; padding: 12px 16px; }

.btn-grad {
  background: var(--grad);
  color: #08111A;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.7);
}
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(139, 92, 246, 0.85); }
.btn-grad:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-dim);
  border-color: var(--line-strong);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.55); transform: translateY(-1px); }

.btn-danger {
  background: rgba(255, 92, 122, 0.12);
  color: #FF8FA3;
  border-color: rgba(255, 92, 122, 0.35);
}
.btn-danger:hover { background: rgba(255, 92, 122, 0.2); border-color: rgba(255, 92, 122, 0.6); }

.btn-ico { font-size: 15px; line-height: 1; }
.btn-txt { line-height: 1; }

:focus-visible { outline: 2px solid rgba(139, 92, 246, 0.7); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════════
   QUADRO
   ════════════════════════════════════════════════════════════════ */
.board-root { flex: 1 1 auto; min-height: 0; display: flex; }

.board {
  flex: 1;
  display: flex;
  gap: 14px;
  padding: 16px 18px 18px;
  overflow-x: auto;
  overflow-y: hidden;
}

/* ── Coluna ────────────────────────────────────────────────────── */
.column {
  flex: 1 1 0;
  min-width: 266px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(19, 26, 42, 0.7), rgba(14, 19, 32, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
/* Linha de destaque neon no topo da coluna */
.column::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent), 0 0 4px var(--accent);
}
.column::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 78px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
  pointer-events: none;
}

.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 11px;
  flex: 0 0 auto;
  position: relative;
}
.column-title { display: flex; align-items: center; gap: 9px; }
.column-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.column-title h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
}
.column-count {
  font: 700 12px 'Manrope', sans-serif;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  min-width: 24px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Lista rolável de cartões */
.card-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 12px 12px;
  min-height: 70px;
}

.column-empty {
  display: none;
  margin: 0 12px;
  padding: 18px 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: center;
}
.card-list.is-empty ~ .column-empty { display: block; }
.card-list.is-empty { flex: 0 0 auto; min-height: 0; padding-bottom: 4px; }

/* ── Botão / formulário "nova tarefa" ─────────────────────────── */
.add-card-btn {
  flex: 0 0 auto;
  margin: 2px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font: 600 12.5px 'Manrope', sans-serif;
  padding: 10px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.add-card-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.add-ico { font-size: 15px; }

.new-card {
  flex: 0 0 auto;
  margin: 2px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9);
}
.new-card[hidden] { display: none; }

.nc-title, .nc-desc, .nc-project {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: 500 13px 'Manrope', sans-serif;
  padding: 9px 11px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.nc-title { font-weight: 600; }
.nc-desc { resize: vertical; min-height: 42px; line-height: 1.45; }
.nc-project { appearance: none; cursor: pointer; }
.nc-title::placeholder, .nc-desc::placeholder { color: var(--text-faint); }
.nc-title:focus, .nc-desc:focus, .nc-project:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.nc-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── Cartão (post-it) ─────────────────────────────────────────── */
.card {
  position: relative;
  flex: 0 0 auto;
  min-height: 84px;
  padding: 13px 14px 11px 18px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--card) 13%, var(--surface)),
      color-mix(in srgb, var(--card) 6%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--card) 26%, var(--line));
  cursor: grab;
  transition: transform 0.14s var(--ease), box-shadow 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.card:active { cursor: grabbing; }

/* Barra de cor neon à esquerda */
.card-bar {
  position: absolute;
  left: 6px; top: 13px; bottom: 13px;
  width: 3px;
  border-radius: 3px;
  background: var(--card);
  box-shadow: 0 0 9px var(--card);
}

/* Pega de arraste (pontilhada) visível no hover */
.card-grip {
  position: absolute;
  top: 12px; right: 11px;
  width: 13px; height: 8px;
  opacity: 0;
  transition: opacity 0.16s;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 5px 4px;
  color: var(--text-faint);
}
.card:hover .card-grip { opacity: 1; }

.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card) 55%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card) 30%, transparent),
    0 14px 32px -14px rgba(0, 0, 0, 0.95),
    0 0 22px -6px color-mix(in srgb, var(--card) 40%, transparent);
}
.card:focus-visible {
  outline: none;
  border-color: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--card) 35%, transparent);
}

.card-title {
  margin: 0;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.38;
  color: var(--text);
  padding-right: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.card-project {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-dot {
  width: 7px; height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--chip);
  box-shadow: 0 0 7px var(--chip);
}
.card-date { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.card-ttl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  background: rgba(59, 230, 139, 0.12);
  border: 1px solid rgba(59, 230, 139, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Em projeto único o chip de projeto é redundante */
#board-root:not([data-scope="all"]) .card-project { display: none; }
#board-root:not([data-scope="all"]) .card-foot { justify-content: flex-end; }

/* ── Estados de arraste (SortableJS) ───────────────────────────── */
.card-ghost {
  opacity: 0.35;
  background: color-mix(in srgb, var(--card) 16%, var(--surface));
}
.card-ghost * { visibility: hidden; }
.card-chosen { cursor: grabbing; }
.card-drag {
  transform: rotate(2.4deg) scale(1.03);
  box-shadow:
    0 0 0 1px var(--card),
    0 24px 50px -12px rgba(0, 0, 0, 0.95),
    0 0 40px -6px color-mix(in srgb, var(--card) 65%, transparent);
}
body.dragging { cursor: grabbing; }
body.dragging .card:not(.card-drag):hover { transform: none; }

/* ── Estado vazio (sem projetos) ───────────────────────────────── */
.empty-board { flex: 1; display: grid; place-items: center; padding: 30px; }
.empty-card {
  text-align: center;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.empty-card h2 {
  margin: 12px 0 0;
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.empty-card p { margin: 0 0 8px; color: var(--text-dim); font-size: 13px; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════
   CAMPOS / SWATCHES
   ════════════════════════════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font: 500 13.5px 'Manrope', sans-serif;
  padding: 10px 12px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* Paleta de cores */
.color-row { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch-wrap { cursor: pointer; line-height: 0; }
.swatch-wrap input { position: absolute; opacity: 0; pointer-events: none; }
.swatch {
  display: block;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.13s var(--ease), box-shadow 0.16s;
}
.swatch-wrap:hover .swatch { transform: scale(1.12); }
.swatch-wrap input:checked + .swatch {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sw), 0 0 12px var(--sw);
}
.swatch-wrap input:focus-visible + .swatch { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sw); }

/* ════════════════════════════════════════════════════════════════
   MODAIS
   ════════════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.74);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade 0.18s var(--ease);
}
.modal-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.95);
  animation: pop 0.22s var(--ease);
}
.modal-dialog form { display: flex; flex-direction: column; gap: 14px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.modal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--card, var(--cyan));
  box-shadow: 0 0 10px var(--card, var(--cyan));
}
.modal-x {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}
.modal-x:hover { color: var(--text); border-color: rgba(255, 92, 122, 0.6); }

.modal-meta { margin: 0; font-size: 11.5px; color: var(--text-faint); }
.modal-actions { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.modal-actions .spacer { flex: 1; }

/* Modal de projetos */
.project-form { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.project-list { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.list-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.project-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
}
.project-row-name { flex: 1; font-weight: 600; font-size: 13.5px; }
.project-row form { margin: 0; }
.row-del {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-faint);
  font: 600 11.5px 'Manrope', sans-serif;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.row-del:hover {
  color: #FF8FA3;
  border-color: rgba(255, 92, 122, 0.5);
  background: rgba(255, 92, 122, 0.1);
}
.muted { color: var(--text-faint); font-size: 12.5px; margin: 4px 0; }

body.modal-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════════
   ANIMAÇÕES
   ════════════════════════════════════════════════════════════════ */
@keyframes fade { from { opacity: 0; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(9px); }
}
@keyframes colIn {
  from { opacity: 0; transform: translateY(14px); }
}

/* Entrada orquestrada apenas no carregamento inicial */
body.boot .column { animation: colIn 0.5s var(--ease) backwards; }
body.boot .column:nth-child(1) { animation-delay: 0.02s; }
body.boot .column:nth-child(2) { animation-delay: 0.07s; }
body.boot .column:nth-child(3) { animation-delay: 0.12s; }
body.boot .column:nth-child(4) { animation-delay: 0.17s; }
body.boot .column:nth-child(5) { animation-delay: 0.22s; }
body.boot .card { animation: cardIn 0.42s var(--ease) backwards; }
body.boot .card:nth-child(1) { animation-delay: 0.16s; }
body.boot .card:nth-child(2) { animation-delay: 0.22s; }
body.boot .card:nth-child(3) { animation-delay: 0.28s; }
body.boot .card:nth-child(4) { animation-delay: 0.34s; }
body.boot .card:nth-child(n+5) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVO
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .board { gap: 12px; padding: 13px 13px 14px; }
  .column { min-width: 280px; }
}

@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .topbar { height: 58px; padding: 0 13px; gap: 10px; }
  .topbar-mid { order: 3; flex-basis: 100%; }
  .brand-name { font-size: 18px; }
  .btn-txt { display: none; }
  .btn-ghost { padding: 9px 11px; }

  /* a barra superior vira duas linhas no celular */
  .topbar { flex-wrap: wrap; height: auto; padding: 9px 13px; }
  .topbar-mid { margin-top: 9px; }
  .scope-select { max-width: none; }

  .board {
    scroll-snap-type: x mandatory;
    gap: 11px;
    padding: 12px;
  }
  .column {
    min-width: 86vw;
    scroll-snap-align: center;
  }
  .field-row { flex-direction: column; gap: 14px; }
  .modal { padding: 14px; }
  .modal-dialog { padding: 18px; }
}
