/* Inter variável, auto-hospedado (1 arquivo cobre pesos 100-900). Sem CDN. */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #F3F1EC;
  --surface: #FFFFFF;
  --surface-2: #F8F6F2;
  --sidebar-bg: #EDEBE4;
  --ink: #202027;
  --ink-soft: #55555E;
  --muted: #74747D;
  --line: #E3E0D8;
  --line-soft: #EBE8E1;
  --blue: #1E2E52;
  --blue-600: #29406E;
  --blue-soft: #EEF1F7;
  --yellow: #F2C94C;
  --yellow-soft: #FCF3D6;
  --alta: #C25B54;
  --alta-soft: #F7E7E5;
  --media: #C99A2E;
  --media-soft: #F8EFD6;
  --baixa: #5B8C6E;
  --baixa-soft: #E5F0E9;
  /* Raios: ação != filtro. Botões 10-12px, superfícies 16-20px, chips/tags 999px */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  /* Sombras em 3 níveis: plano (borda só), elevado (azul discreto), profundo (modal/Poohzera) */
  --shadow-sm:
    0 1px 2px -1px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%));
  --shadow:
    0 3px 6px -3px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)),
    0 8px 20px -6px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 9%));
  --shadow-deep:
    0 8px 20px -8px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 12%)),
    0 26px 64px -12px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 16%));
  /* cores antes fixas, agora tokenizadas (pro dark funcionar limpo) */
  --hover-border: var(--hover-border);
  --postit-border: var(--postit-border);
  --link-hover: #DDE5F2;
  --overlay: rgba(30,46,82,.34);
  --pooh-warm: #FDFBF6;
  --prio1-ink: #9A7B14;
  /* Easings — do Open Props (curados) */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out-3: cubic-bezier(0, 0, .3, 1);
  --ease-in-out-3: cubic-bezier(.45, 0, .3, 1);
  --ease-spring: cubic-bezier(.2, .9, .3, 1.35);
  /* Sombras estilo Open Props: camadas + cor/força em HSL (viram no dark só trocando 2 vars) */
  --shadow-color: 220 45% 22%;
  --shadow-strength: 1%;
  color-scheme: light;
  font-family: "InterVariable", Inter, "Segoe UI Variable", "Segoe UI", -apple-system, system-ui, sans-serif;
}

/* ============ MODO NOTURNO (charcoal quente; segue o sistema por padrão,
   e o toggle força via [data-theme]) ============ */
:root[data-theme="dark"] {
  --bg: #16171B;
  --surface: #26272E;
  --surface-2: #1E1F25;
  --sidebar-bg: #121317;
  --ink: #ECEAE3;
  --ink-soft: #B2B0AA;
  --muted: #83828B;
  --line: #34353E;
  --line-soft: #2A2B33;
  --blue: #6486CE;
  --blue-600: #7B9AD9;
  --blue-soft: #262F44;
  --yellow: #F2C94C;
  --yellow-soft: #332E1D;
  --alta: #E08A83;   --alta-soft: #3B2523;
  --media: #E0B24B;  --media-soft: #37311E;
  --baixa: #86C29E;  --baixa-soft: #213021;
  --shadow-color: 220 50% 3%;
  --shadow-strength: 22%;
  --hover-border: #454650;
  --postit-border: #4A4326;
  --link-hover: #2E3648;
  --overlay: rgba(0,0,0,.62);
  --pooh-warm: #272229;
  --prio1-ink: #D9BE6A;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
  font-optical-sizing: auto;
  font-feature-settings: "cv05" 1, "cv11" 1;
}

svg { display: block; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { width: 20px; height: 20px; }

/* Layout -------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* Sidebar ------------------------------------------------------------- */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line-soft);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 30px; }
.brand-mark { color: var(--yellow); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none; background: transparent;
  color: var(--ink-soft);
  font-size: 14.5px; font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-item svg { width: 19px; height: 19px; opacity: .9; }
.nav-item { position: relative; }
.nav-item:hover { background: rgba(30,46,82,.05); color: var(--ink); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--blue);
}
.nav-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.nav-item.active .nav-count { color: var(--blue); }
.sidebar-foot { margin-top: auto; }
.nav-item.subtle { color: var(--muted); font-weight: 500; }

/* Conteúdo ------------------------------------------------------------ */
/* Fluido: usa a largura disponível, centraliza e tem teto pra não esticar
   demais em ultrawide. min-width:0 impede estouro horizontal (a "tarja"). */
.content { padding: 34px clamp(20px, 3vw, 48px) 64px; max-width: 1480px; width: 100%; min-width: 0; margin-inline: auto; }

/* Dashboard ----------------------------------------------------------- */
.dashboard { margin-bottom: 34px; animation: rise .22s var(--ease); }
.greeting { font-size: 30px; font-weight: 700; letter-spacing: -.6px; }
.dashboard .greeting { font-size: 36px; line-height: 42px; letter-spacing: -1px; }
.subtitle { color: var(--ink-soft); margin-top: 7px; font-size: 15px; }

/* CTA da Poohzera na Home (mesma ação do assistente, com cara de card) */
.pooh-cta {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; margin: 26px 0 14px; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-spring), box-shadow .18s var(--ease), border-color .15s;
}
.pooh-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(160px 90px at 6% 50%, rgba(242,201,76,.18), transparent 72%);
}
.pooh-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--hover-border); }
.pooh-cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pooh-cta > * { position: relative; }
.pooh-cta-text { flex: 1; min-width: 0; }
.pooh-cta-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.pooh-cta-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.pooh-cta-go {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--blue); color: #fff; padding: 11px 20px; border-radius: var(--radius-btn);
  font-size: 14.5px; font-weight: 600;
}
.pooh-cta-go span[data-icon] { color: var(--yellow); }
.pooh-cta-go svg { width: 18px; height: 18px; }
.pooh-cta:hover .pooh-cta-go { background: var(--blue-600); }

.hero-actions { display: flex; gap: 10px; margin: 0 0 32px; flex-wrap: wrap; }
.focus { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.focus-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.focus-title { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.priorities { display: flex; flex-direction: column; gap: 12px; }
.prio-line { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.prio-rank { width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.prio-line:first-child .prio-rank { background: var(--yellow-soft); border-color: var(--postit-border); color: var(--prio1-ink); }
.prio-body { min-width: 0; }
.prio-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio-meta { font-size: 12.5px; color: var(--muted); }
.agenda { display: flex; flex-direction: column; gap: 11px; }
.agenda-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.agenda-date { font-weight: 600; color: var(--blue); min-width: 52px; font-size: 13px; }
.agenda-date.late { color: var(--alta); }
.agenda-name { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-empty { color: var(--muted); font-size: 14px; }

.area-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; animation: rise .22s var(--ease); }

/* Botões -------------------------------------------------------------- */
.btn-hero, .btn-primary, .btn-soft, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-btn);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s var(--ease), background .15s, box-shadow .15s, border-color .15s;
}
.btn-soft, .btn-ghost, .btn-danger { border-radius: var(--radius-sm); }
.btn-hero svg, .btn-primary svg, .btn-soft svg, .btn-ghost svg, .btn-danger svg { width: 18px; height: 18px; }
.btn-hero {
  background: var(--blue); color: #fff;
  padding: 13px 22px; font-size: 15px;
  box-shadow: 0 6px 18px rgba(30,46,82,.22);
}
.btn-hero:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,46,82,.28); }
.btn-hero:active { transform: translateY(0) scale(.98); }
.btn-hero .icon-accent, .btn-hero span[data-icon] { color: var(--yellow); }
.btn-primary { background: var(--blue); color: #fff; padding: 11px 20px; }
.btn-primary:hover { background: var(--blue-600); }
.btn-primary:active { transform: scale(.98); }
.btn-soft {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  padding: 11px 18px; box-shadow: var(--shadow-sm);
}
.btn-soft:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); padding: 9px 16px; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: var(--alta-soft); color: var(--alta); padding: 9px 16px; }
.btn-danger:hover { background: var(--alta-soft); }
.btn-icon { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; display: grid; place-items: center; }
.btn-icon svg { width: 18px; height: 18px; }
.proj-card-head .spacer { flex: 1; }
.btn-icon:hover { background: var(--surface-2); color: var(--ink); }
.proj-del:hover, #btnProjDel:hover { background: var(--alta-soft); color: var(--alta); }

/* Toolbar ------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar.sub { margin-bottom: 22px; }
.toolbar .spacer { flex: 1; }
.filter-group { display: flex; gap: 7px; align-items: center; }
.flabel { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .14s var(--ease);
}
.chip.mini { padding: 6px 13px; font-size: 12.5px; }
.chip:hover { border-color: var(--hover-border); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); cursor: pointer; user-select: none; }
.check input { accent-color: var(--blue); cursor: pointer; }
.sort-select { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; color: var(--ink); cursor: pointer; font-family: inherit; }
.search-wrap { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; color: var(--muted); }
.search-wrap svg { width: 16px; height: 16px; }
#search { border: none; background: transparent; padding: 9px 0; font-size: 14px; min-width: 130px; max-width: 200px; font-family: inherit; color: var(--ink); }
#search:focus, .sort-select:focus { outline: none; }
.search-wrap:focus-within { border-color: var(--blue); }

/* Alternador de visualização ----------------------------------------- */
.view-toggle { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.vbtn { border: none; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; transition: all .14s var(--ease); }
.vbtn svg { width: 18px; height: 18px; }
.vbtn:hover { color: var(--ink); }
.vbtn.active { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-sm); }

/* Board: Cards -------------------------------------------------------- */
.board.view-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 15px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .14s var(--ease), box-shadow .18s var(--ease), border-color .15s;
}
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--hover-border); }
.card.dragging { opacity: .4; }
.card.done { opacity: .6; }
.card.done .card-title { text-decoration: line-through; }
.card-head { display: flex; align-items: flex-start; gap: 10px; }
.card-dot { margin-top: 6px; flex: none; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.card-title:hover { color: var(--blue); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 500; }
.tag.prio-alta { background: var(--alta-soft); color: var(--alta); }
.tag.prio-media { background: var(--media-soft); color: var(--media); }
.tag.prio-baixa { background: var(--baixa-soft); color: var(--baixa); }
.tag.due-late { background: var(--alta-soft); color: var(--alta); font-weight: 600; }
.tag.projeto { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); font-weight: 600; }
.tag.tipo { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.card-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-subs { display: flex; flex-direction: column; gap: 7px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.subs-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.subs-count { color: var(--blue); background: var(--blue-soft); padding: 1px 8px; border-radius: 999px; font-size: 11.5px; }
.subs-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.subs-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .25s var(--ease); }
.subs-list { display: flex; flex-direction: column; gap: 3px; }
.subrow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.subrow input { accent-color: var(--blue); cursor: pointer; flex: none; }
.subrow .sdone { color: var(--muted); text-decoration: line-through; }
.sub-badge { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.sub-badge.full { color: var(--baixa); background: var(--baixa-soft); border-color: var(--baixa-soft); }

.card-people { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.card-people b { color: var(--ink-soft); font-weight: 600; }
.card-links { display: flex; flex-wrap: wrap; gap: 6px; }
.card-links .link-btn { width: auto; max-width: 170px; padding: 6px 10px; font-size: 12px; }
.card-links .link-btn svg { width: 14px; height: 14px; }
.link-btn {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 8px 11px; border-radius: var(--radius-sm);
  background: var(--blue-soft); color: var(--blue); border: none; cursor: pointer;
  text-align: left; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .14s;
}
.link-btn svg { width: 15px; height: 15px; flex: none; }
.link-btn:hover { background: var(--link-hover); }
.card-foot { margin-top: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-foot .routine-check + .status-select { margin-left: auto; }

/* Ideias: post-it de verdade + vínculos navegáveis */
.board.view-postits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; align-items: start; }
.postit { position: relative; background: var(--yellow-soft); border: 1px solid var(--postit-border); border-radius: 12px; padding: 14px 15px 12px; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .14s var(--ease), box-shadow .18s var(--ease); }
.postit:hover { transform: translateY(-2px) rotate(-.4deg); box-shadow: var(--shadow); }
.postit-pin { position: absolute; top: 11px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(242,201,76,.22); }
.postit-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); padding-right: 14px; }
.postit-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; white-space: pre-wrap; }
.postit .idea-links { margin-top: 2px; }
.postit.mini { padding: 9px 11px 9px; border-radius: 10px; box-shadow: none; }
.postit.mini .postit-title { font-size: 13px; }
.postit.mini .postit-desc { font-size: 12px; }
.postit.mini .postit-pin { width: 6px; height: 6px; top: 9px; right: 9px; }
.card-ideas { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--line); }
.postit-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; width: 100%; }
.postit-strip .postit { flex: 0 1 220px; }
.list-row.idea { background: var(--yellow-soft); border-color: var(--postit-border); }
.idea-links { display: flex; flex-wrap: wrap; gap: 6px; }
.idea-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; font-family: inherit;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: filter .14s, transform .12s var(--ease);
}
.idea-chip svg { width: 13px; height: 13px; flex: none; }
.idea-chip:hover { filter: brightness(.96); transform: translateY(-1px); }
.idea-chip.projeto { background: var(--blue-soft); color: var(--blue); }
.idea-chip.rotina { background: var(--baixa-soft); color: var(--baixa); }
.idea-chip.tarefa { background: var(--surface); color: var(--ink-soft); border-color: var(--line); }
.card.idea .idea-chip.tarefa, .list-row.idea .idea-chip.tarefa { background: var(--surface); border-color: var(--postit-border); }
.idea-chip.mini { padding: 2px 8px; font-size: 11.5px; }
.idea-chip .rm { background: transparent; border: none; color: inherit; cursor: pointer; font-size: 11px; padding: 0 0 0 3px; opacity: .6; }
.idea-chip .rm:hover { opacity: 1; }
/* Modal: picker de vínculos da ideia */
.idea-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.idea-chips .idea-chip { cursor: default; }
.idea-add { display: flex; gap: 8px; }
.idea-add select { flex: 1; min-width: 0; }

/* Check de rotina (vale o período atual; reseta na virada) */
.routine-check {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); color: var(--ink-soft); border: 1px dashed var(--line);
  transition: all .15s var(--ease);
}
.routine-check svg { width: 15px; height: 15px; }
.routine-check:hover { border-color: var(--baixa); color: var(--baixa); background: var(--baixa-soft); }
.routine-check.feita {
  background: var(--baixa-soft); color: var(--baixa); border: 1px solid var(--baixa);
}
.routine-check.feita:hover { opacity: .75; }
.list-due .routine-check { padding: 5px 11px; font-size: 12px; }
.status-select { font-size: 12.5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; font-family: inherit; }

/* Board: Lista -------------------------------------------------------- */
.board.view-lista { display: flex; flex-direction: column; gap: 7px; }
.list-row {
  display: grid; grid-template-columns: 12px minmax(160px, 1.4fr) 1fr auto auto auto;
  align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 15px;
  transition: transform .12s var(--ease), box-shadow .15s, border-color .15s;
}
.list-row:hover { transform: translateX(2px); box-shadow: var(--shadow); border-color: var(--hover-border); }
.list-row.done { opacity: .6; }
.list-row.done .list-title { text-decoration: line-through; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-alta { background: var(--alta); } .dot-media { background: var(--media); } .dot-baixa { background: var(--baixa); }
.list-title { font-size: 14.5px; font-weight: 600; cursor: pointer; }
.list-title:hover { color: var(--blue); }
.list-people { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-due { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.list-links { display: flex; gap: 6px; max-width: 200px; overflow: hidden; }
.list-links .link-btn { padding: 5px 9px; font-size: 12px; max-width: 140px; }
@media (max-width: 760px) { .list-row { grid-template-columns: 12px 1fr auto; } .list-people, .list-due, .list-links { display: none; } }

/* Board: Kanban ------------------------------------------------------- */
.board.view-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; min-height: 120px; transition: background .15s, outline-color .15s; }
.kcol.drop-hover { background: var(--blue-soft); outline: 2px dashed var(--blue); outline-offset: -2px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 4px 8px 12px; }
.kcount { background: var(--surface); color: var(--muted); font-size: 12px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); }
.kcol-body { display: flex; flex-direction: column; gap: 10px; min-height: 40px; }
.kcol-body .card { cursor: grab; }
.kcol-body .card:active { cursor: grabbing; }
@media (max-width: 760px) { .board.view-kanban { grid-template-columns: 1fr; } }

/* Projetos como entidade ---------------------------------------------- */
.proj-head-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; animation: rise .22s var(--ease); }
.proj-list-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.board.view-projetos { display: flex; flex-direction: column; gap: 14px; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proj-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.proj-collapse { background: transparent; border: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 8px; transition: transform .18s var(--ease), color .14s, background .14s; }
.proj-collapse:hover { background: var(--surface-2); color: var(--ink); }
.proj-collapse svg { width: 20px; height: 20px; }
.proj-card.collapsed .proj-collapse { transform: rotate(-90deg); }
.proj-card.collapsed .proj-card-body { display: none; }
.proj-card-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; cursor: pointer; }
.proj-card-title:hover { color: var(--blue); }
.proj-card-count { font-size: 12.5px; color: var(--blue); background: var(--blue-soft); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.proj-card-head .proj-open { padding: 8px 16px; font-size: 13.5px; }
.proj-card-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.proj-scope { font-size: 14px; color: var(--ink-soft); line-height: 1.5; white-space: pre-wrap; }
.proj-people-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.proj-people-line svg { width: 17px; height: 17px; flex: none; }
.proj-links-row { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-links-row .link-btn { width: auto; max-width: 260px; }
.proj-tasks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }

/* Central do projeto (isolada) */
.proj-back { align-self: flex-start; padding: 8px 14px; }
.proj-central { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.proj-central-bar { display: flex; align-items: center; gap: 10px; }
.proj-central-bar .greeting { font-size: 26px; }
.proj-central-scope { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; white-space: pre-wrap; }

/* Sub-abas da central */
.proj-tabs { display: flex; gap: 4px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.ptab { background: transparent; border: none; color: var(--muted); padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; transition: all .14s var(--ease); }
.ptab:hover { background: var(--surface-2); color: var(--ink); }
.ptab.active { background: var(--blue-soft); color: var(--blue); }
.ptab-count { font-size: 11.5px; background: var(--surface-2); color: var(--muted); padding: 0 7px; border-radius: 999px; min-width: 18px; text-align: center; }
.ptab.active .ptab-count { background: var(--surface); color: var(--blue); }

/* Anotações */
.board.view-notes, .board.view-linkhub { display: block; }
.notes-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.notes-list { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px; }
.note-item { text-align: left; background: transparent; border: none; padding: 9px 11px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; color: var(--ink-soft); }
.note-item:hover { background: var(--surface-2); }
.note-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.note-item-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes-empty { padding: 14px; line-height: 1.5; }
.note-editor { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.note-none { padding: 30px 16px; text-align: center; }
.note-ed-head { display: flex; gap: 8px; align-items: center; }
.note-title { flex: 1; font-size: 17px; font-weight: 700; border: none; background: transparent; color: var(--ink); font-family: inherit; padding: 4px 0; letter-spacing: -.2px; }
.note-title:focus { outline: none; }
.note-body { min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 13px 15px; font-family: inherit; font-size: 14.5px; line-height: 1.6; resize: vertical; color: var(--ink); }
.note-body:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.note-saved { font-size: 12px; color: var(--baixa); height: 14px; }

/* Canalizador de links */
.linkhub { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.linkhub-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.linkhub-add select, .linkhub-add input { padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-family: inherit; font-size: 13.5px; color: var(--ink); }
.linkhub-add .lh-kind { flex: 0 0 92px; }
.linkhub-add .lh-label { flex: 0 0 150px; }
.linkhub-add .lh-target { flex: 1; min-width: 180px; }
.linkhub-add select:focus, .linkhub-add input:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.linkhub-add .lh-add { padding: 10px 18px; }
.linkhub-list { display: flex; flex-direction: column; gap: 8px; }
.linkhub-row { display: flex; align-items: center; gap: 8px; }
.linkhub-row .lh-open { flex: 1; width: auto; }
.linkhub-empty { padding: 16px; }
@media (max-width: 720px) { .notes-layout { grid-template-columns: 1fr; } }

/* Board: Agenda (calendário) ----------------------------------------- */
.calendar { animation: rise .24s var(--ease); }
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.cal-year { color: var(--muted); font-weight: 600; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--ink-soft); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all .14s var(--ease); }
.cal-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--hover-border); }
.cal-today { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); padding: 0 15px; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .14s var(--ease); }
.cal-today:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-soft); }
.cal-surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }
.cal-head { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; padding: 10px 0; }
.cal-body { grid-auto-rows: minmax(112px, auto); }
.cal-cell { background: var(--surface); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 8px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-height: 112px; transition: background .14s; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-body .cal-cell:nth-last-child(-n+7) { border-bottom: none; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.out { background: var(--surface-2); }
.cal-cell.out .cal-daynum { color: var(--muted); opacity: .55; }
.cal-cell.today { background: var(--blue-soft); }
.cal-daynum { font-size: 12px; font-weight: 600; color: var(--muted); align-self: flex-end; width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.cal-cell.today .cal-daynum { background: var(--blue); color: #fff; border-radius: 7px; }
.cal-chips { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 168px; }
.cal-chip { text-align: left; border: none; border-radius: 7px; padding: 4px 8px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit; border-left: 3px solid transparent; transition: filter .12s; }
.cal-chip:hover { filter: brightness(.96); }
.cal-chip.prio-alta { background: var(--alta-soft); color: var(--alta); border-left-color: var(--alta); }
.cal-chip.prio-media { background: var(--media-soft); color: var(--media); border-left-color: var(--media); }
.cal-chip.prio-baixa { background: var(--baixa-soft); color: var(--baixa); border-left-color: var(--baixa); }
.cal-chip.late { box-shadow: 0 0 0 1.5px var(--alta) inset; }
.cal-chip.done { opacity: .5; text-decoration: line-through; }
.cal-foot { margin-top: 16px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .cal-body { grid-auto-rows: minmax(72px, auto); }
  .cal-cell { min-height: 72px; padding: 5px; }
  .cal-chip { font-size: 11px; padding: 3px 6px; }
  .cal-daynum { font-size: 12px; width: 20px; height: 20px; }
  .cal-grid { gap: 0; }
}

.opt { font-weight: 400; color: var(--muted); }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); font-size: 15px; }

/* Modais -------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: var(--overlay);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 44px 16px; overflow-y: auto; z-index: 50;
  animation: fade .2s var(--ease);
}
.modal {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; width: 100%; max-width: 560px;
  padding: 24px; box-shadow: var(--shadow-deep);
  animation: pop .24s var(--ease);
}
.modal-assistant { max-width: 600px; background: var(--pooh-warm); }
.modal-task { max-width: min(1080px, 94vw); min-width: 0; display: flex; flex-direction: column; max-height: calc(100vh - 96px); }
.modal-task > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.modal-body { overflow-y: auto; min-height: 0; padding-right: 4px; }
.modal-task .modal-foot { flex: none; margin-top: 16px; }
.modal-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; }
.modal-col { display: flex; flex-direction: column; min-width: 0; }
.modal-col .field:last-child { margin-bottom: 0; }
/* Coluna direita como painel contido (subtarefas + links) — inspirado em refs de task-detail.
   Separa visualmente das infos da esquerda e para de "encavalar". */
.modal-cols > .modal-col:last-child {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 16px 18px;
}
.modal-cols > .modal-col:last-child input,
.modal-cols > .modal-col:last-child select,
.modal-cols > .modal-col:last-child textarea { background: var(--surface); }
.modal-cols > .modal-col:last-child input:focus,
.modal-cols > .modal-col:last-child select:focus { border-color: var(--blue); }
.modal-cols > .modal-col:last-child .btn-ghost { width: 100%; justify-content: center; background: var(--surface); }
.modal-cols > .modal-col:last-child .btn-ghost:hover { background: var(--bg); border-color: var(--hover-border); }

/* Card de ANDAMENTO da task (progresso das subtarefas) — inspirado na ref */
.sub-progress { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 9px; }
.sp-top { display: flex; align-items: baseline; justify-content: space-between; }
.sp-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); }
.sp-pct { font-size: 18px; font-weight: 700; color: var(--blue); letter-spacing: -.3px; }
.sp-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s var(--ease); }
.sp-count { font-size: 12.5px; color: var(--ink-soft); }
.sub-progress.full .sp-pct { color: var(--baixa); }
.sub-progress.full .sp-bar i { background: var(--baixa); }

.link-row .l-target { flex: 1.7; }
.modal-col .link-row input, .modal-col .sub-row .s-title, .modal-col .idea-add select { min-width: 0; }
.field-grow textarea { min-height: 120px; resize: vertical; }
@media (max-width: 720px) { .modal-cols { grid-template-columns: 1fr; gap: 16px; } .modal-task { max-height: calc(100vh - 32px); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 9px; }
.modal-head h2 span[data-icon] { color: var(--blue); }

/* Recado pro WhatsApp ------------------------------------------------ */
.modal-wa { max-width: 560px; }
.modal-wa .hint { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.45; }
.wa-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.wa-mode {
  flex: 1; display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 10px 13px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; text-align: left;
  transition: border-color .14s, background .14s, color .14s;
}
.wa-mode:hover { background: var(--surface); }
.wa-mode.active { border-color: var(--blue); color: var(--blue); background: var(--surface); box-shadow: var(--shadow-sm); }
.wa-mode-sub { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.wa-mode.active .wa-mode-sub { color: var(--blue); }
.wa-text {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 200px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: inherit; line-height: 1.5;
  background: var(--surface-2); color: var(--ink);
  transition: border-color .15s, background .15s, opacity .15s;
}
.wa-text:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.wa-text.loading { opacity: .5; }
.wa-regen svg { width: 15px; height: 15px; }
/* Ícone de recado no rodapé do card */
.card-foot > .card-whats { margin-left: auto; }
.card-foot .routine-check ~ .card-whats { margin-left: auto; }
.card-foot > .status-select { margin-left: 0; }
.card-whats:hover { color: #1f9d64; }

.field { margin-bottom: 15px; display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: inherit; background: var(--surface-2); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-bottom: 8px; line-height: 1.4; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.link-row { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.link-row select { flex: 0 0 92px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; font-family: inherit; }
.link-row input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; background: var(--surface-2); font-family: inherit; }
.link-row .rm { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 8px; }
.sub-row { display: flex; gap: 8px; margin-bottom: 7px; align-items: center; }
.sub-row.dragging { opacity: .5; }
.sub-row .s-drag { display: flex; align-items: center; flex: none; color: var(--muted); cursor: grab; padding: 2px; border-radius: 6px; }
.sub-row .s-drag:hover { color: var(--ink-soft); background: var(--surface); }
.sub-row .s-drag:active { cursor: grabbing; }
.sub-row .s-drag svg { width: 16px; height: 16px; }
.sub-row .s-done { accent-color: var(--blue); cursor: pointer; flex: none; width: 17px; height: 17px; }
.sub-row .s-title { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; background: var(--surface-2); font-family: inherit; }
.sub-row .s-title:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.sub-row .rm { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 8px; }
.rcard-subs { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.rcard-subs li { list-style: disc; }
.rcard-links { display: flex; flex-wrap: wrap; gap: 6px; }
.rlink { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlink svg { width: 13px; height: 13px; }
.modal-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.modal-foot .spacer { flex: 1; }

/* Assistente ---------------------------------------------------------- */
.assistant-lead { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
/* Poohzera (persona do assistente) */
.poohzera-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--yellow-soft); border: 1px solid var(--postit-border); flex: none; box-shadow: 0 0 0 4px rgba(242,201,76,.16); }
.poohzera-avatar.big { width: auto; height: 92px; border-radius: 0; object-fit: contain; background: transparent; border: none; box-shadow: none; filter: drop-shadow(0 8px 16px rgba(242,201,76,.4)); }
.poohzera-avatar.med { width: auto; height: 48px; border-radius: 0; object-fit: contain; background: transparent; border: none; box-shadow: none; filter: drop-shadow(0 4px 9px rgba(242,201,76,.38)); flex: none; }
.pooh-hi { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 4px 2px; }
.pooh-hi .assistant-lead { margin-bottom: 0; }
.qmod-vinculos .qv-chips { margin-bottom: 8px; }
.qmod-vinculos .idea-add select { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: inherit; font-size: 13.5px; color: var(--ink); }
#aiText { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; font-family: inherit; background: var(--surface-2); resize: vertical; line-height: 1.5; }
#aiText:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.ai-setup .steps { margin: 12px 0 14px 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.ai-setup input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; background: var(--surface-2); font-family: inherit; }
/* Assistente: passo de perguntas (lacunas) */
.ai-questions { display: flex; flex-direction: column; gap: 12px; }
.q-cards { display: flex; flex-direction: column; gap: 12px; }
.qcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; animation: rise .2s var(--ease) both; }
.qcard-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.qmod { display: flex; flex-direction: column; gap: 8px; }
.qmod-q { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.qchips { display: flex; flex-wrap: wrap; gap: 7px; }
.qchip { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .14s var(--ease); }
.qchip:hover { border-color: var(--hover-border); background: var(--surface-2); }
.qchip.sel { background: var(--blue); color: #fff; border-color: var(--blue); }
.qchip-new { color: var(--blue); border-style: dashed; }
.qchip-skip { color: var(--muted); }
.qchip-skip.sel { background: var(--muted); border-color: var(--muted); color: #fff; }
.qmod-newinput, .qmod-date { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; background: var(--surface); color: var(--ink); font-family: inherit; max-width: 260px; }
.qmod-newinput:focus, .qmod-date:focus { outline: none; border-color: var(--blue); }
.qlinks { display: flex; flex-direction: column; gap: 6px; }
.qlinks:empty { display: none; }

.ai-review { display: flex; flex-direction: column; gap: 12px; }
.review-lead { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 2px; }
.rcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; animation: rise .2s var(--ease) both; }
.rcard-top { display: flex; align-items: center; gap: 10px; }
.rcard input.r-title { flex: 1; font-size: 15px; font-weight: 600; border: none; background: transparent; color: var(--ink); font-family: inherit; padding: 2px 0; }
.rcard input.r-title:focus { outline: none; }
.rcard .rm { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.rcard-desc { font-size: 13px; color: var(--ink-soft); }
.rcard-motivo { font-size: 12.5px; color: var(--blue); background: var(--blue-soft); padding: 6px 10px; border-radius: 8px; }
.rcard-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.rcard-controls select, .rcard-controls input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: var(--surface); font-family: inherit; }
.rcard-controls .r-projeto { flex: 1; min-width: 110px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 20px 0; justify-content: center; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }

/* Toast --------------------------------------------------------------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-deep); z-index: 100; animation: rise .25s var(--ease); }
.toast.error { background: var(--alta); }

/* Animações ----------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.hidden { display: none !important; }

/* Responsivo ---------------------------------------------------------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px; }
  .sidebar-foot { margin: 0; }
  .nav-item.active::before { display: none; }
  .brand { padding: 4px 8px; width: 100%; }
  .content { padding: 24px 18px 50px; }
  .dashboard .greeting { font-size: 28px; line-height: 34px; }
  .focus { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pooh-cta { flex-wrap: wrap; }
  .pooh-cta-text { flex-basis: 100%; order: 2; }
  .pooh-cta-go { order: 3; margin-left: auto; }
  .toolbar, .toolbar.sub { gap: 10px; }
  .search-wrap { flex: 1; }
  #search { max-width: none; flex: 1; }
}
