/* =========================================================================
   Eisenhower Matrix Pro — Liquid Glass Futurista
   Paleta, vidro líquido, brilhos neon e microinterações.
   ========================================================================= */

:root {
  --bg: #0a0a0f;
  --bg-2: #0d0d16;
  --text: #eaf2ff;
  --text-dim: #93a0c0;
  --text-faint: #5b6585;

  --glass: rgba(20, 24, 40, 0.42);
  --glass-strong: rgba(24, 28, 48, 0.62);
  --stroke: rgba(255, 255, 255, 0.10);

  /* Cores dos quadrantes */
  --do: #ff3b3b;        /* Fazer Agora  - vermelho/laranja neon */
  --do-2: #ff7a18;
  --schedule: #00f0ff;  /* Agendar      - azul ciano */
  --schedule-2: #2d7bff;
  --delegate: #b85cff;  /* Delegar      - roxo/magenta */
  --delegate-2: #ff00e5;
  --eliminate: #8a9bb0; /* Eliminar     - cinza dessaturado */
  --eliminate-2: #b9c46a;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ FUNDO */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(45, 123, 255, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 10% 110%, rgba(255, 0, 229, 0.08), transparent 55%),
    var(--bg);
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 35%, transparent 100%);
}

/* Blobs líquidos que se movem lentamente atrás do vidro */
.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob--cyan {
  background: radial-gradient(circle at 30% 30%, #00f0ff, transparent 70%);
  top: -12%; left: -8%;
  animation: drift1 26s var(--ease) infinite alternate;
}
.blob--magenta {
  background: radial-gradient(circle at 70% 40%, #ff00e5, transparent 70%);
  bottom: -16%; right: -10%;
  animation: drift2 32s var(--ease) infinite alternate;
}
.blob--red {
  background: radial-gradient(circle at 50% 50%, #ff3b3b, transparent 70%);
  top: 30%; left: 45%;
  opacity: 0.32;
  animation: drift3 38s var(--ease) infinite alternate;
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 40%, rgba(5, 6, 12, 0.7) 100%);
}

@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(12vw, 10vh, 0) scale(1.18); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-14vw, -8vh, 0) scale(0.92); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(0.9); } to { transform: translate3d(-10vw, 12vh, 0) scale(1.2); } }

/* ------------------------------------------------------------------- VIDRO */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------------- SHELL */
.app {
  position: relative;
  min-height: 100vh;
  padding: 22px clamp(14px, 3vw, 34px) 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ----------------------------------------------------------------- TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 20px;
  position: relative;
  /* z-index acima do tabuleiro para o menu de quadros abrir NA FRENTE dos quadrantes.
     Sem overflow:hidden aqui, senão o menu (que desce abaixo da barra) era cortado. */
  z-index: 30;
}
.topbar::before {
  /* gradiente animado sutil correndo pela barra (líquido luminoso) */
  content: "";
  position: absolute; inset: 0;
  /* herda o arredondamento da barra para o brilho não vazar nos cantos */
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 240, 255, 0.08) 45%, rgba(255, 0, 229, 0.08) 55%, transparent 70%);
  background-size: 250% 100%;
  animation: sheen 9s linear infinite;
  pointer-events: none;
}
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -60% 0; } }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand__mark {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 12px;
  display: grid; place-items: center;
  background: conic-gradient(from 180deg, var(--schedule), var(--delegate-2), var(--do), var(--schedule));
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.5), inset 0 0 12px rgba(0,0,0,0.5);
  animation: spin 14s linear infinite;
}
.brand__mark svg { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand__title { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0.2px;
  white-space: nowrap;
  background: linear-gradient(90deg, #fff, #9fe9ff 60%, #ff9bf2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__title span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.topbar__spacer { flex: 1 1 auto; }

/* Seletor de quadros (perfis) */
.board-switch { display: flex; align-items: center; gap: 10px; position: relative; }
.board-switch__label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint);
}
.select {
  position: relative;
}
.select__btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease);
}
.select__btn:hover { border-color: rgba(0,240,255,0.5); box-shadow: 0 0 18px rgba(0,240,255,0.22); }
.select__btn .chev { transition: transform .25s var(--ease); opacity: .7; }
.select__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.select__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  z-index: 40;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: rgba(14, 16, 28, 0.92);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  animation: pop .18s var(--ease);
}
.select__item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  background: none; border: none;
  color: var(--text);
  font-family: var(--font-body); font-size: 13px;
  text-align: left; cursor: pointer;
  transition: background .15s var(--ease);
}
.select__item:hover, .select__item:focus-visible { background: rgba(0,240,255,0.10); outline: none; }
.select__item[data-active="true"] { background: rgba(0,240,255,0.14); }
.select__item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--schedule); box-shadow: 0 0 8px var(--schedule); }
.select__divider { height: 1px; margin: 6px 4px; background: var(--stroke); }
.select__item--accent { color: #9fe9ff; font-weight: 600; }

/* Botões genéricos */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  border-color: rgba(0,240,255,0.45);
  background: linear-gradient(135deg, rgba(0,240,255,0.18), rgba(45,123,255,0.12));
  box-shadow: 0 0 18px rgba(0,240,255,0.22), inset 0 0 12px rgba(0,240,255,0.08);
}
.btn--primary:hover { box-shadow: 0 0 26px rgba(0,240,255,0.4), inset 0 0 14px rgba(0,240,255,0.12); }
.btn--ghost { background: rgba(255,255,255,0.04); }
.btn--danger { border-color: rgba(255,59,59,0.4); color: #ffb4b4; }
.btn--danger:hover { box-shadow: 0 0 20px rgba(255,59,59,0.3); }
.btn:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }

.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.icon-btn:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }
.icon-btn--danger:hover { color: #ff8a8a; background: rgba(255,59,59,0.16); }

/* ---------------------------------------------------------------- QUADRO */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  flex: 1;
}

/* ---------------------------------------------------------------- COLUNA */
.column {
  --c: var(--schedule);
  --c2: var(--schedule-2);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: 16px 14px;
  min-height: 60vh;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02),
              0 24px 50px -28px color-mix(in srgb, var(--c) 60%, transparent);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.column::before {
  /* gradiente líquido animado preso ao topo de cada coluna */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, transparent), transparent 40%, color-mix(in srgb, var(--c2) 40%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .8;
  pointer-events: none;
}
.column.is-over {
  border-color: var(--c);
  box-shadow: 0 0 28px color-mix(in srgb, var(--c) 45%, transparent),
              inset 0 0 30px color-mix(in srgb, var(--c) 14%, transparent);
  transform: translateY(-2px);
}
.column.is-over .column__drop-hint {
  opacity: 1; transform: translateY(0);
  max-height: 70px; padding: 16px; margin: 4px 2px 0; border-width: 1px;
}

.column--do        { --c: var(--do);        --c2: var(--do-2); }
.column--schedule  { --c: var(--schedule);  --c2: var(--schedule-2); }
.column--delegate  { --c: var(--delegate);  --c2: var(--delegate-2); }
.column--eliminate { --c: var(--eliminate); --c2: var(--eliminate-2); opacity: .96; }

.column__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.column__icon {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 35%, transparent);
}
.column__icon svg { width: 19px; height: 19px; }
.column__titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.column__title {
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: #fff; letter-spacing: .2px;
  text-shadow: 0 0 14px color-mix(in srgb, var(--c) 50%, transparent);
}
.column__sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* HUD: contador com mostrador */
.hud {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  flex: 0 0 auto;
}
.hud__count {
  font-family: var(--font-mono); font-weight: 700; font-size: 19px; line-height: 1;
  color: var(--c);
  text-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent);
  font-variant-numeric: tabular-nums;
}
.hud__bar {
  width: 38px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.hud__bar i {
  display: block; height: 100%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  transform-origin: left;
  transition: width .5s var(--ease);
}

.column__add {
  margin: 12px 0 10px;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 7%, transparent);
  color: color-mix(in srgb, var(--c) 85%, white 15%);
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.column__add:hover { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.column__add:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

.column__list {
  display: flex; flex-direction: column; gap: 11px;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 2px 6px;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--c) 50%, transparent) transparent;
}
.column__list::-webkit-scrollbar { width: 6px; }
.column__list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--c) 45%, transparent); border-radius: 6px; }

.column__drop-hint {
  /* Colapsado por padrão para não criar vão entre o botão e o primeiro card.
     Só ganha altura/espaço quando um card é arrastado sobre a coluna (.is-over). */
  margin: 0 2px; padding: 0 16px;
  max-height: 0; overflow: hidden;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 0 dashed color-mix(in srgb, var(--c) 55%, transparent);
  color: color-mix(in srgb, var(--c) 90%, white);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease),
              max-height .2s var(--ease), padding .2s var(--ease), margin .2s var(--ease);
}

.column__empty {
  margin-top: 6px; padding: 22px 10px; text-align: center;
  color: var(--text-faint);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px;
}

/* ----------------------------------------------------------------- CARD */
.card {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 13px 13px 11px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--c) 30%, rgba(255,255,255,0.08));
  cursor: grab;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  animation: cardIn .35s var(--ease) both;
  will-change: transform;
}
.card::after {
  /* fio de brilho neon na borda, revelado no hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 0%, transparent);
  transition: box-shadow .25s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--c) 55%, transparent),
              0 0 22px -2px color-mix(in srgb, var(--c) 45%, transparent);
  animation: neonPulse 1.6s var(--ease) infinite;
}
.card:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.card.dragging {
  cursor: grabbing;
  opacity: .92;
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 30px 60px -10px color-mix(in srgb, var(--c) 70%, black),
              0 0 40px color-mix(in srgb, var(--c) 50%, transparent);
  animation: none;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.card.removing { animation: cardOut .3s var(--ease) forwards; }
@keyframes cardOut { to { opacity: 0; transform: scale(.9) translateY(-6px); filter: blur(3px); } }
@keyframes neonPulse {
  0%,100% { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--c) 55%, transparent), 0 0 16px -4px color-mix(in srgb, var(--c) 40%, transparent); }
  50%     { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--c) 55%, transparent), 0 0 28px 0 color-mix(in srgb, var(--c) 70%, transparent); }
}

.card__top { display: flex; align-items: flex-start; gap: 8px; }
.card__grip { color: var(--text-faint); margin-top: 2px; flex: 0 0 auto; opacity: .6; }
.card__grip svg { width: 13px; height: 13px; }
.card__title {
  flex: 1; min-width: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: #fff; line-height: 1.32; word-break: break-word;
}
.card__actions { display: flex; gap: 4px; opacity: 0; transition: opacity .2s var(--ease); flex: 0 0 auto; }
.card:hover .card__actions, .card:focus-within .card__actions { opacity: 1; }

.card__desc {
  margin: 8px 0 0;
  font-size: 12px; line-height: 1.45; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .4px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: color-mix(in srgb, var(--c) 85%, white 20%);
}
.tag svg { width: 11px; height: 11px; }
.tag--due-soon { background: rgba(255,59,59,0.14); border-color: rgba(255,59,59,0.4); color: #ff9d9d; }

/* --------------------------------------------------------------- MODAL */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(4, 5, 12, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .2s var(--ease);
}
.modal {
  width: min(520px, 100%);
  min-width: 0;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 22px;
  position: relative;
  background: rgba(16, 18, 32, 0.86);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid var(--stroke);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 50px rgba(0,240,255,0.12);
  animation: pop .26s var(--ease);
}
.modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -8px;
  padding: 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,240,255,0.35) transparent;
}
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb {
  background: rgba(0,240,255,0.28); border-radius: 8px;
  border: 2px solid transparent; background-clip: content-box;
}
.modal__body::-webkit-scrollbar-thumb:hover { background: rgba(0,240,255,0.5); background-clip: content-box; }
.modal__body > .field:last-child { margin-bottom: 0; }
.modal__glow { position: absolute; inset: -1px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(135deg, rgba(0,240,255,0.4), transparent 40%, rgba(255,0,229,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; opacity: .6; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-shrink: 0; }
.modal__head h2 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.modal__head .kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); display:block; margin-bottom: 3px; }

.field { margin-bottom: 14px; }
.field label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim);
}
.input, .textarea, .date {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-family: var(--font-body); font-size: 13.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.date { font-family: var(--font-mono); color-scheme: dark; }
.input:focus, .textarea:focus, .date:focus {
  outline: none;
  border-color: rgba(0,240,255,0.6);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.quad-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quad-pick__item {
  --c: var(--schedule);
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  transition: all .18s var(--ease);
}
.quad-pick__item .swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.quad-pick__item[aria-pressed="true"] {
  color: #fff; border-color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 35%, transparent);
}

.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; flex-shrink: 0; border-top: 1px solid var(--stroke); }

.field-error { color: #ff9d9d; font-size: 11.5px; font-family: var(--font-mono); margin-top: 6px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* --------------------------------------------------------------- TOAST */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 16px; border-radius: 12px;
  background: rgba(16,18,32,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  font-size: 12.5px; color: var(--text);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  animation: toastIn .25s var(--ease);
  display: flex; align-items: center; gap: 9px;
}
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: #00f0ff; box-shadow: 0 0 8px #00f0ff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------- BANNER DE LEMBRETES */
.reminder {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-color: rgba(255,122,24,0.35);
  box-shadow: 0 0 30px -8px rgba(255,122,24,0.35), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.reminder__icon {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 11px;
  color: #ffc27a;
  background: rgba(255,122,24,0.14);
  border: 1px solid rgba(255,122,24,0.4);
  box-shadow: 0 0 16px rgba(255,122,24,0.35);
  animation: bellRing 3.2s var(--ease) infinite;
}
.reminder__icon svg { width: 19px; height: 19px; }
@keyframes bellRing { 0%,88%,100% { transform: rotate(0); } 90% { transform: rotate(11deg); } 94% { transform: rotate(-9deg); } 97% { transform: rotate(5deg); } }
.reminder__body { flex: 1; min-width: 0; }
.reminder__kicker {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 6px;
}
.reminder__list { display: flex; flex-wrap: wrap; gap: 7px; }
.reminder__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--text);
  background: rgba(0,240,255,0.10); border: 1px solid rgba(0,240,255,0.28);
}
.reminder__chip em { font-style: normal; color: var(--text-faint); font-size: 10.5px; font-family: var(--font-mono); }
.reminder__chip--today { background: rgba(255,59,59,0.14); border-color: rgba(255,59,59,0.42); }
.reminder__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.reminder__note { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); max-width: 180px; }

/* ------------------------------------------------- CAPA E LINKS NO CARD */
.card__cover {
  position: relative;
  margin: -13px -13px 11px;
  height: 116px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background-size: cover; background-position: center;
  border-bottom: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
}
.card__cover-veil {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(6,7,14,0.10) 0%, rgba(6,7,14,0.05) 45%, rgba(10,10,15,0.72) 100%);
}
.card--has-cover { padding-top: 0; }

.card__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.card__link {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 3px 9px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 10.5px; text-decoration: none;
  color: #9fe9ff;
  background: rgba(0,240,255,0.10); border: 1px solid rgba(0,240,255,0.28);
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.card__link:hover { background: rgba(0,240,255,0.2); box-shadow: 0 0 12px rgba(0,240,255,0.3); }
.card__link svg { width: 11px; height: 11px; flex: 0 0 auto; }
.card__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------- MODAL: LINKS E IMAGEM (edição do card) */
.inline-add { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-add .input { flex: 1 1 160px; min-width: 0; }
.inline-add .btn { flex: 0 0 auto; }

.linklist { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.linklist__item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 10px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--stroke);
}
.linklist__item > svg { width: 14px; height: 14px; color: #9fe9ff; flex: 0 0 auto; }
.linklist__url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #9fe9ff; font-size: 12.5px; text-decoration: none;
}
.linklist__url:hover { text-decoration: underline; }

.imgadd { display: flex; flex-direction: column; gap: 10px; }
.imgbox { display: flex; gap: 14px; flex-wrap: wrap; }
.imgbox__preview {
  width: 150px; height: 100px; flex: 0 0 auto;
  border-radius: 12px; background-size: cover; background-position: center;
  border: 1px solid var(--stroke);
}
.imgbox__ctrl { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.checkline { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; text-transform: none; letter-spacing: normal; }
.checkline input { width: 17px; height: 17px; accent-color: var(--schedule); margin-top: 1px; flex: 0 0 auto; }
.checkline span { font-family: var(--font-body); font-size: 12.5px; color: var(--text); line-height: 1.35; }
.imgbox__hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

/* --------------------------------------------- CHECKLIST (subtarefas) */
/* indicador de progresso no card */
.tag--check { gap: 6px; }
.tag__bar {
  width: 30px; height: 3px; border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 22%, transparent);
}
.tag__bar i {
  display: block; height: 100%;
  background: color-mix(in srgb, var(--c) 90%, white 10%);
  box-shadow: 0 0 6px var(--c);
  transition: width .4s var(--ease);
}
.tag--check-done { background: color-mix(in srgb, #35e07f 16%, transparent); border-color: rgba(53,224,127,0.42); color: #9dfbc2; }
.tag--check-done .tag__bar { background: rgba(53,224,127,0.22); }
.tag--check-done .tag__bar i { background: #35e07f; box-shadow: 0 0 6px #35e07f; }

/* badge no rótulo do modal */
.field__badge {
  margin-left: 8px; padding: 1px 7px; border-radius: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px;
  color: #9fe9ff; background: rgba(0,240,255,0.12); border: 1px solid rgba(0,240,255,0.3);
}

/* lista de itens do modal */
.checklist { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist__item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 10px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--stroke);
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
.checklist__box {
  flex: 0 0 auto; width: 20px; height: 20px; padding: 0;
  display: grid; place-items: center; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid color-mix(in srgb, var(--schedule) 45%, var(--stroke));
  color: #061018; transition: all .18s var(--ease);
}
.checklist__box svg { width: 13px; height: 13px; stroke-width: 3; }
.checklist__box:hover { border-color: var(--schedule); box-shadow: 0 0 10px rgba(0,240,255,0.3); }
.checklist__box:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }
.checklist__item.is-done .checklist__box {
  background: linear-gradient(135deg, #35e07f, #00f0ff); border-color: transparent;
}
.checklist__text {
  flex: 1; min-width: 0; font-size: 13px; color: var(--text); line-height: 1.35; word-break: break-word;
}
.checklist__item.is-done { opacity: .62; }
.checklist__item.is-done .checklist__text { text-decoration: line-through; color: var(--text-dim); }
.checklist__reorder { display: flex; flex-direction: column; flex: 0 0 auto; }
.checklist__reorder .icon-btn { width: 22px; height: 16px; border-radius: 5px; }
.checklist__reorder .icon-btn svg { width: 13px; height: 13px; }
.checklist__reorder .icon-btn:disabled { opacity: .28; cursor: default; }
.checklist__reorder .icon-btn:disabled:hover { background: rgba(255,255,255,0.05); color: var(--text-dim); }

/* ------------------------------------------------- CONCLUIR + 48H */
.icon-btn--go:hover { color: #9dfbc2; background: rgba(53,224,127,0.16); }
.icon-btn--done { color: #9dfbc2; background: rgba(53,224,127,0.16); }
.icon-btn--done:hover { color: #ffd27a; background: rgba(255,199,49,0.16); }

.card--done { opacity: .58; filter: saturate(.7); }
.card--done .card__title { text-decoration: line-through; color: var(--text-dim); }
.card--done:hover { opacity: .8; }
.card--done .card__actions { opacity: 1; } /* botão reabrir sempre visível */
.card__done-flag {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 9px 0 2px; padding: 4px 10px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .4px;
  color: #9dfbc2; background: rgba(53,224,127,0.14); border: 1px solid rgba(53,224,127,0.4);
}
.card__done-flag svg { width: 12px; height: 12px; stroke-width: 3; }
.card__done-eta { color: var(--text-faint); }

/* ---------------------------------------------------------- TAGS */
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pilltag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .2px;
  border: 1px solid transparent; white-space: nowrap;
}

/* barra de filtro por tag */
.tagfilter {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
}
.tagfilter__label {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint);
}
.tagfilter__list { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; min-width: 0; }
.tagchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--stroke);
  font-family: var(--font-body); font-weight: 600; font-size: 11.5px;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.tagchip:hover { transform: translateY(-1px); }
.tagchip:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }
.tagchip__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.tagchip.is-on .tagchip__dot { display: none; }
.tagfilter__clear { flex: 0 0 auto; padding: 6px 12px; }

/* seção de tags no modal */
.taglib { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.taglib__item { display: inline-flex; align-items: center; }
.pilltag--btn {
  cursor: pointer; border-width: 1px; border-style: solid;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.pilltag--btn:hover { transform: translateY(-1px); }
.pilltag--btn:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }
.taglib__mini {
  width: 22px; height: 22px; margin-left: 2px;
  display: grid; place-items: center; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid transparent; color: var(--text-faint);
  transition: all .16s var(--ease);
}
.taglib__mini svg { width: 12px; height: 12px; }
.taglib__mini:hover { color: #fff; background: rgba(255,255,255,0.12); }
.taglib__mini--danger:hover { color: #ff8a8a; background: rgba(255,59,59,0.16); }

.tagmake { display: flex; flex-direction: column; gap: 10px; }
.tagmake__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatchbtn {
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.14);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.swatchbtn:hover { transform: scale(1.12); }
.swatchbtn.is-sel { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 0 12px currentColor; transform: scale(1.12); }
.swatchbtn:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }

/* --------------------------------------------------------- LIXEIRA */
/* botão na topbar */
.trash-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.trash-btn svg { width: 16px; height: 16px; }
.trash-btn:hover { color: #ffb4b4; border-color: rgba(255,59,59,0.42); box-shadow: 0 0 18px rgba(255,59,59,0.22); transform: translateY(-1px); }
.trash-btn:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }
.trash-btn__badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; line-height: 1;
  color: #fff; background: linear-gradient(135deg, #ff3b3b, #ff7a18);
  box-shadow: 0 0 12px rgba(255,59,59,0.5);
}

/* modal da lixeira (mais largo) */
.modal--trash { width: min(680px, 100%); max-height: 88vh; display: flex; flex-direction: column; }
.trash-note {
  margin: 0 0 14px;
  font-size: 12px; line-height: 1.5; color: var(--text-dim);
  padding: 10px 12px; border-radius: 11px;
  background: rgba(0,240,255,0.06); border: 1px solid rgba(0,240,255,0.2);
}
.trash-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px 10px; color: var(--text-faint);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px;
}
.trash-empty svg { width: 34px; height: 34px; opacity: .5; }

.trash-list {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; padding: 2px 2px 4px; flex: 1; min-height: 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,59,59,0.4) transparent;
}
.trash-list::-webkit-scrollbar { width: 6px; }
.trash-list::-webkit-scrollbar-thumb { background: rgba(255,59,59,0.35); border-radius: 6px; }

.trash-item {
  display: flex; gap: 12px; align-items: stretch;
  padding: 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.trash-item:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); }
.trash-item__thumb {
  width: 74px; flex: 0 0 auto; align-self: stretch; min-height: 74px;
  border-radius: 10px; background-size: cover; background-position: center;
  border: 1px solid var(--stroke);
}
.trash-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.trash-item__top { display: flex; align-items: flex-start; gap: 10px; }
.trash-item__title {
  flex: 1; min-width: 0; margin: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff;
  line-height: 1.3; word-break: break-word;
}
.trash-tagreason {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .4px; text-transform: uppercase;
  white-space: nowrap;
}
.trash-tagreason svg { width: 11px; height: 11px; stroke-width: 3; }
.trash-tagreason.is-done { color: #9dfbc2; background: rgba(53,224,127,0.14); border: 1px solid rgba(53,224,127,0.4); }
.trash-tagreason.is-del { color: #ffb4b4; background: rgba(255,59,59,0.14); border: 1px solid rgba(255,59,59,0.4); }
.trash-item__desc {
  margin: 0; font-size: 12px; line-height: 1.4; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trash-item__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.trash-item__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 2px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
}
.trash-item__meta svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.trash-item__origin { display: inline-flex; align-items: center; }
.trash-item__eta {
  display: inline-flex; align-items: center; gap: 3px;
  color: #9fe9ff; padding: 2px 8px; border-radius: 7px;
  background: rgba(0,240,255,0.08); border: 1px solid rgba(0,240,255,0.24);
}
.trash-item__eta.is-overdue { color: #ffb4b4; background: rgba(255,59,59,0.12); border-color: rgba(255,59,59,0.4); }
.trash-item__actions {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.trash-item__actions .btn { justify-content: flex-start; white-space: nowrap; }
.trash-foot { justify-content: space-between; }

/* ------------------------------------------- FUNDO PERSONALIZADO DO QUADRO */
/* Camada acima do bg-field global (-2) e abaixo do conteúdo. */
.board-bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* Véu de vidro por cima: garante contraste e legibilidade dos cards/colunas
   sobre qualquer cor ou imagem escolhida. */
.board-bg__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(6,7,14,0.30), transparent 60%),
    linear-gradient(180deg, rgba(6,7,14,0.42), rgba(6,7,14,0.58));
  backdrop-filter: blur(2px) saturate(108%);
  -webkit-backdrop-filter: blur(2px) saturate(108%);
}

/* botão "Fundo" na topbar (variação do trash-btn, sem o vermelho) */
.bg-btn:hover { color: #9fe9ff; border-color: rgba(0,240,255,0.42); box-shadow: 0 0 18px rgba(0,240,255,0.22); }

/* seletor de cores/gradientes no modal de fundo */
.bg-grid-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bgswatch {
  position: relative; height: 62px; border-radius: 12px; cursor: pointer; overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.bgswatch:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.6); }
.bgswatch:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }
.bgswatch.is-sel { border-color: #9fe9ff; box-shadow: 0 0 0 2px rgba(0,240,255,0.35), 0 0 16px rgba(0,240,255,0.3); }
.bgswatch__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3px 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .4px;
  color: #fff; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
}
.bgswatch__none {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}
.bgswatch__check {
  position: absolute; top: 5px; right: 5px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,240,255,0.9); color: #061018;
}
.bgswatch__check svg { width: 13px; height: 13px; stroke-width: 3; }

/* ------------------------------------------- COMPOSER INLINE (estilo Trello) */
.composer {
  margin: 12px 0 10px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 9px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c) 8%, rgba(0,0,0,0.28));
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 0 18px -6px color-mix(in srgb, var(--c) 45%, transparent);
  animation: pop .18s var(--ease);
}
.composer__input {
  width: 100%; resize: vertical; min-height: 46px;
  padding: 9px 11px; border-radius: 10px;
  background: rgba(0,0,0,0.35); border: 1px solid var(--stroke);
  color: var(--text); font-family: var(--font-body); font-size: 13px; line-height: 1.4;
}
.composer__input:focus { outline: none; border-color: color-mix(in srgb, var(--c) 65%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.composer__input::placeholder { color: var(--text-faint); }
.composer__row { display: flex; align-items: center; gap: 8px; }
.composer__add { padding: 8px 13px; font-size: 12.5px; }
.composer__more {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--stroke);
  color: var(--text-dim); font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  transition: all .16s var(--ease);
}
.composer__more:hover { color: #fff; background: rgba(255,255,255,0.1); }
.composer__more:focus-visible { outline: 2px solid #9fe9ff; outline-offset: 2px; }

/* ------------------------------------------- PLACEHOLDER DE REORDENAÇÃO */
.card-ghost {
  height: 52px; border-radius: var(--radius-sm);
  border: 1.5px dashed color-mix(in srgb, var(--c) 65%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  box-shadow: inset 0 0 22px -6px color-mix(in srgb, var(--c) 55%, transparent);
  animation: ghostPulse 1.1s var(--ease) infinite;
}
@keyframes ghostPulse {
  0%,100% { opacity: .55; }
  50% { opacity: .95; }
}

/* ------------------------------------------- ETIQUETAS EM BARRA (labels) */
.card__labels { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; }
.card--has-cover .card__labels { margin-top: 11px; }
.cardlabel {
  height: 8px; min-width: 34px; padding: 0; border-radius: 999px;
  border: none; cursor: pointer;
  transition: height .16s var(--ease), min-width .16s var(--ease), transform .15s var(--ease);
}
.cardlabel:hover { transform: translateY(-1px); }
.cardlabel:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.card__labels.is-expanded .cardlabel {
  height: auto; min-width: 0;
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
}
.cardlabel__txt {
  font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: .2px;
  white-space: nowrap;
}

/* toggle de etiquetas na barra de filtro */
.tagfilter__labels { flex: 0 0 auto; padding: 6px 12px; margin-left: auto; }

/* ------------------------------------------- BARRA DE BADGES NA FRENTE */
.card__badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .3px; line-height: 1.6;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-dim);
}
.badge svg { width: 11px; height: 11px; flex: 0 0 auto; }
.badge--soft { color: var(--text-dim); }
/* prazo por status */
.badge--future { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #cdd6ea; }
.badge--soon,
.badge--today { background: rgba(255,176,32,0.16); border-color: rgba(255,176,32,0.42); color: #ffcf7a; }
.badge--overdue { background: rgba(255,59,59,0.18); border-color: rgba(255,59,59,0.48); color: #ff9d9d; }
.badge--done { background: rgba(53,224,127,0.16); border-color: rgba(53,224,127,0.44); color: #9dfbc2; }
/* checklist */
.badge--check { background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 30%, transparent); color: color-mix(in srgb, var(--c) 85%, white 20%); }
.badge--check.is-complete { background: rgba(53,224,127,0.16); border-color: rgba(53,224,127,0.44); color: #9dfbc2; }

/* --------------------------------------------------------- RESPONSIVO */
@media (max-width: 1080px) {
  .board { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .column { min-height: 46vh; }
}

/* Em telas maiores que o mobile, a coluna ganha uma altura máxima e a lista de
   cards rola por dentro (overflow-y:auto), mantendo o cabeçalho do quadrante e
   o botão "Novo card" sempre visíveis, sem empurrar o layout nem cortar cards.
   O piso garante que a coluna nunca fique espremida em telas mais baixas.
   Vem depois do bloco de 1080px de propósito, para valer também no tablet. */
@media (min-width: 621px) {
  .column {
    max-height: 78vh;
    max-height: max(360px, calc(100dvh - 220px));
  }
}
@media (max-width: 620px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .column { min-height: auto; }
  .topbar { gap: 12px; }
  .brand__title h1 { white-space: normal; }
  .board-switch { width: 100%; flex-wrap: wrap; row-gap: 10px; }
  .board-switch__label { display: none; }
  .select { flex: 1 1 100%; order: -1; }
  .select__btn { width: 100%; justify-content: space-between; }
  .board-switch > .btn--primary { flex: 1 1 auto; justify-content: center; }
  .reminder { flex-wrap: wrap; }
  .reminder__actions { width: 100%; justify-content: flex-end; }
  .imgbox__preview { width: 100%; height: 130px; }
  .trash-btn { order: -2; }
  .trash-btn__text { display: none; }
  .trash-item { flex-wrap: wrap; }
  .trash-item__actions { flex-direction: row; width: 100%; }
  .trash-item__actions .btn { flex: 1 1 auto; justify-content: center; }
  .bg-grid-pick { grid-template-columns: repeat(2, 1fr); }
  .bg-btn { order: -2; }
  .bg-btn .trash-btn__text { display: none; }
  .tagfilter__labels { margin-left: 0; }
}

/* ----------------------------------------------- REDUÇÃO DE MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .05ms !important; }
  .blob { animation: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
