:root {
  --bg: #0b0b0f;
  --surface: #15151d;
  --text: #f2f2f7;
  --text-2: #9a9aa8;
  --accent-1: #8b5cf6;
  --accent-2: #22d3ee;
  --accent: linear-gradient(135deg, #8b5cf6, #22d3ee);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior-y: none;
}

body {
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left));
  background: var(--bg);
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#view {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc(16px + env(safe-area-inset-right)) 96px calc(16px + env(safe-area-inset-left));
}

#view > section {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#view > section[hidden] { display: none; }

.placeholder {
  margin: 0;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: 16px;
  color: var(--text-2);
  font-size: 17px;
  text-align: center;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px calc(8px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  background: rgba(21, 21, 29, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tabbar button {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 0;
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms;
}

.tabbar button[aria-selected="true"] { color: var(--accent-1); }

.tabbar button[aria-selected="true"] svg { color: var(--accent-2); }

@media (prefers-reduced-motion: no-preference) {
  #view > section:not([hidden]) {
    animation: entrada 180ms ease-out;
  }
}

@keyframes entrada {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Módulo 1: Checklist ---------- */

:root {
  --surface-2: #1f1f2a;
  --borda: rgba(255, 255, 255, 0.1);
  --alta: #ff8a80;
  --media: #ffd166;
  --baixa: #7ee0a8;
  --perigo: #ff6b6b;
}

input, select {
  -webkit-user-select: text;
  user-select: text;
}

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

#tab-checklist {
  align-items: flex-start;
  justify-content: stretch;
}

.cl { width: 100%; }

.cl button:focus-visible,
.cl input:focus-visible,
.cl select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.cl-corpo { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }

.cl-erro {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.15);
  color: var(--perigo);
  font-size: 15px;
}

.cl-erro[hidden] { display: none; }

.cl-seletor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface);
}

.cl-seg {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cl-seg[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

.cl-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cl-btn:disabled { opacity: 0.35; cursor: default; }

.cl-btn-primario { border: 0; background: var(--accent); color: #0b0b0f; }

.cl-btn-perigo { color: var(--perigo); }

.cl-btn-largo { width: 100%; }

.cl-btn-mini { padding: 0 12px; font-size: 14px; }

.cl-icone { padding: 0; font-size: 20px; }

.cl-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.cl-form, .cl-linha, .cl-acoes-topo { display: flex; gap: 8px; }

.cl-form[hidden], .cl-btn[hidden] { display: none; }

.cl-acoes-topo { justify-content: space-between; flex-wrap: wrap; }

.cl-cards, .cl-lista, .cl-sublista { list-style: none; margin: 0; padding: 0; }

.cl-cards, .cl-lista { display: flex; flex-direction: column; gap: 8px; }

.cl-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cl-card-titulo { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

.cl-card-meta, .cl-pct { color: var(--text-2); font-size: 14px; }

.cl-barra {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-2);
}

.cl-barra-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .cl-barra-fill { transition: width 200ms ease-out; }
  .cl-lista.reordenando .cl-tarefa:not(.arrastando) { transition: transform 150ms ease-out; }
}

.cl-progresso { display: flex; flex-direction: column; gap: 6px; }

.cl-titulo { margin: 0; font-size: 24px; letter-spacing: -0.02em; }

.cl-titulo-btn {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: text;
}

.cl-titulo-input { width: 100%; font-size: 20px; font-weight: 700; }

.cl-vazio {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-2);
  text-align: center;
}

.cl-vazio[hidden] { display: none; }

.cl-tarefa {
  position: relative;
  display: grid;
  grid-template-columns: 28px 44px 1fr;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 12px 8px 4px;
  border-radius: 16px;
  background: var(--surface);
}

.cl-tarefa.arrastando {
  z-index: 2;
  background: var(--surface-2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.cl-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 44px;
  color: var(--text-2);
  font-size: 18px;
  letter-spacing: -2px;
  touch-action: none;
  cursor: grab;
}

.cl-check {
  width: 44px;
  height: 44px;
  border: 2px solid var(--text-2);
  border-radius: 12px;
  background: none;
  color: #0b0b0f;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.cl-check[aria-checked="true"] { border-color: transparent; background: var(--accent); }

.cl-check-sub { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }

.cl-conteudo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.cl-tarefa-titulo { font-size: 17px; overflow-wrap: anywhere; }

.cl-tarefa.feita .cl-tarefa-titulo,
.cl-sub.feita .cl-sub-titulo { color: var(--text-2); text-decoration: line-through; }

.cl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }

.cl-selo {
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
}

.cl-selo-alta { color: var(--alta); background: rgba(255, 138, 128, 0.12); }
.cl-selo-media { color: var(--media); background: rgba(255, 209, 102, 0.12); }
.cl-selo-baixa { color: var(--baixa); background: rgba(126, 224, 168, 0.12); }

.cl-prazo { color: var(--text-2); }
.cl-prazo.vencido { color: var(--perigo); font-weight: 600; }

.cl-edicao { gap: 8px; }

.cl-acoes, .cl-subs { grid-column: 1 / -1; }

.cl-acoes { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 4px; }

.cl-subs { display: flex; flex-direction: column; gap: 8px; padding: 0 0 4px 4px; }

.cl-sub { display: flex; align-items: center; gap: 8px; min-height: 44px; }

.cl-sub-titulo { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Módulo 2: Ascende (hábitos) ---------- */

:root {
  --hb-n0: #1f1f2a;
  --hb-n1: #2d2a5c;
  --hb-n2: #4b3fa8;
  --hb-n3: #7a56e8;
  --hb-n4: #22d3ee;
}

#tab-ascende {
  align-items: flex-start;
  justify-content: stretch;
}

.hb { width: 100%; }

.hb button:focus-visible,
.hb select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.hb-corpo { display: flex; flex-direction: column; gap: 20px; padding-bottom: 16px; }

.hb-erro {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.15);
  color: var(--perigo);
  font-size: 15px;
}

.hb-erro[hidden] { display: none; }

.hb-topo, .hb-config {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
}

.hb-data { margin: 0; color: var(--text-2); font-size: 14px; text-transform: capitalize; }

.hb-pct { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.hb-nota { margin: 0; color: var(--text-2); font-size: 13px; }

.hb-barra {
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-2);
}

.hb-barra-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .hb-barra-fill { transition: width 200ms ease-out; }
}

.hb-grupo { display: flex; flex-direction: column; gap: 8px; }

.hb-h2 { margin: 0; color: var(--text-2); font-size: 15px; font-weight: 600; }

.hb-lista, .hb-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.hb-vazio {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-2);
  text-align: center;
}

.hb-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
}

.hb-item.feito .hb-nome { color: var(--text-2); }

.hb-emoji { font-size: 26px; text-align: center; }

.hb-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.hb-nome { font-size: 17px; overflow-wrap: anywhere; }

.hb-sub { display: flex; gap: 12px; color: var(--text-2); font-size: 13px; }

.hb-check {
  width: 48px;
  height: 48px;
  border: 2px solid var(--text-2);
  border-radius: 14px;
  background: none;
  color: #0b0b0f;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.hb-check[aria-checked="true"] { border-color: transparent; background: var(--accent); }

.hb-incremento { display: flex; gap: 8px; }

.hb-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
}

.hb-btn:disabled { opacity: 0.35; cursor: default; }

.hb-mais { border: 0; background: var(--accent); color: #0b0b0f; }

.hb-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
}

.hb-card-topo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }

.hb-card-nome { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }

.hb-card-streak { display: flex; gap: 12px; color: var(--text-2); font-size: 13px; }

.hb-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
}

.hb-cel { aspect-ratio: 1; border-radius: 3px; background: var(--hb-n0); }
.hb-cel.vazio { background: none; }
.hb-cel.n1 { background: var(--hb-n1); }
.hb-cel.n2 { background: var(--hb-n2); }
.hb-cel.n3 { background: var(--hb-n3); }
.hb-cel.n4 { background: var(--hb-n4); }

.hb-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-size: 16px;
}

.hb-select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

/* ---------- Notas ---------- */

textarea {
  -webkit-user-select: text;
  user-select: text;
}

.nt-corpo-raiz { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }

.nt input:focus-visible,
.nt textarea:focus-visible,
.nt button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.nt .cl-acoes-topo .cl-input { min-width: 0; }

.nt-chips-caixa:empty { display: none; }

.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.nt-chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.nt-chip[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--accent-2); }

.nt-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.nt-cartao {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.nt-cartao.fixada { border-color: var(--accent-1); }

.nt-cartao-topo { display: flex; justify-content: space-between; gap: 8px; }

.nt-cartao-titulo { font-size: 17px; font-weight: 600; }

.nt-cartao-resumo { color: var(--text-2); font-size: 15px; }

.nt-cartao-tags { color: var(--accent-2); font-size: 14px; }

.nt-vazio { padding: 24px 0; color: var(--text-2); text-align: center; }

.nt-seg { width: 100%; }

.nt-corpo {
  min-height: 240px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.nt-corpo[hidden], .nt-previa[hidden], .nt-aviso[hidden] { display: none; }

.nt-previa {
  min-height: 240px;
  padding: 12px 14px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--surface);
}

.nt-status { margin: 0; color: var(--text-2); font-size: 13px; }

.nt-aviso {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-2);
  font-size: 15px;
}

.nt-fundo {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}

.nt-dialogo {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  border: 1px solid var(--borda);
  border-radius: 16px;
  background: var(--surface);
}

.nt-dlg-titulo { margin: 0 0 8px; font-size: 18px; }

.nt-dlg-texto { margin: 0 0 8px; color: var(--text-2); font-size: 15px; line-height: 1.4; }

.nt-dlg-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.md-corpo {
  -webkit-user-select: text;
  user-select: text;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.md-corpo > :first-child { margin-top: 0; }
.md-corpo > :last-child { margin-bottom: 0; }
.md-corpo h1, .md-corpo h2, .md-corpo h3 { margin: 16px 0 8px; line-height: 1.25; letter-spacing: -0.01em; }
.md-corpo h1 { font-size: 24px; }
.md-corpo h2 { font-size: 20px; }
.md-corpo h3 { font-size: 17px; }
.md-corpo p { margin: 0 0 10px; }
.md-corpo a { color: var(--accent-2); }
.md-corpo code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.md-corpo pre {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  overflow-x: auto;
}
.md-corpo pre code { padding: 0; background: none; }
.md-corpo blockquote {
  margin: 0 0 10px;
  padding: 4px 12px;
  border-left: 3px solid var(--accent-1);
  color: var(--text-2);
}
.md-corpo ul, .md-corpo ol { margin: 0 0 10px; padding-left: 24px; }

/* ---------- Ajustes (backup) ---------- */

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.topbar-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}

.topbar-btn:focus-visible,
.aj-dialogo button:focus-visible,
.aj-arquivo:focus-visible + .aj-arquivo-rotulo {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.aj-erro-topo { margin: 0 calc(16px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left)); }

.aj-fundo {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
}

.aj-dialogo {
  width: 100%;
  max-width: 460px;
  max-height: calc(100% - 8px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--borda);
  border-radius: 16px;
  background: var(--surface);
  -webkit-user-select: text;
  user-select: text;
}

.aj-titulo { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.01em; }
.aj-titulo:focus { outline: none; }

.aj-corpo { display: flex; flex-direction: column; gap: 12px; }

.aj-secao { display: flex; flex-direction: column; gap: 8px; }

.aj-h3 { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 600; }

.aj-texto { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }

.aj-lista { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }

.aj-lista-erros { color: var(--perigo); }

.aj-lista-avisos { color: var(--media); }

.aj-resultado:empty { display: none; }

.aj-resultado {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.aj-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.aj-tabela th, .aj-tabela td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--borda); }
.aj-tabela th:first-child, .aj-tabela td:first-child { text-align: left; }
.aj-tabela th { color: var(--text-2); font-weight: 600; }

.aj-opcao {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--borda);
  border-radius: 12px;
}

.aj-opcao-perigo { border-color: rgba(255, 107, 107, 0.5); }

.aj-btn-perigo { border: 0; background: var(--perigo); color: #0b0b0f; }

.aj-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.aj-arquivo-rotulo { display: flex; align-items: center; justify-content: center; text-align: center; }

/* ---------- Check-in do dia ---------- */

.asc-pilha { width: 100%; display: flex; flex-direction: column; gap: 20px; }

.ci { width: 100%; }

.ci button:focus-visible,
.ci input:focus-visible,
.ci a:focus-visible,
.ci [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.ci-corpo, .ci-pilha { display: flex; flex-direction: column; gap: 12px; }

.ci-cartao, .ci-resposta, .ci-lembretes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
}

.ci-titulo { margin: 0; font-size: 20px; letter-spacing: -0.01em; }

.ci-nota, .ci-contador { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }

.ci-contador { text-align: right; }

.ci-resumo { margin: 0; font-size: 16px; overflow-wrap: anywhere; }

.ci-emoji-pequeno { font-size: 22px; vertical-align: middle; }

.ci-link { align-self: flex-start; background: none; border-color: transparent; color: var(--text-2); }

.ci-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); }

.ci-humores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.ci-humor {
  min-height: 72px;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: 2px solid var(--borda);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.ci-humor[aria-checked="true"] { border-color: var(--accent-2); background: rgba(34, 211, 238, 0.12); }

.ci-emoji { font-size: 32px; line-height: 1; }

.ci-rotulo { font-size: 14px; font-weight: 600; }

.ci-label { color: var(--text-2); font-size: 14px; }

.ci-titulo:focus, .ci-form [tabindex="-1"]:focus { outline: none; }

.ci-texto-usuario, .ci-dica { margin: 0; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }

.ci-texto-usuario { color: var(--text-2); font-style: italic; }

.ci-frase { margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent-1); background: var(--surface-2); border-radius: 0 12px 12px 0; }

.ci-frase-texto { margin: 0 0 8px; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }

.ci-frase-credito { color: var(--text-2); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

.ci-frase-credito a { color: var(--accent-2); }

.ci-sugestao { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--accent-1); border-radius: 16px; }

.ci-itens { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }

.ci-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.ci-cel-item, .ci-cel-fora { min-width: 0; }

.ci-cel {
  width: 100%;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 0;
  border: 1px solid var(--borda);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

button.ci-cel { cursor: pointer; }

button.ci-cel[aria-pressed="true"] { border-color: var(--accent-2); background: var(--surface-2); }

.ci-cel.vazio { border-style: dashed; background: none; color: var(--text-2); opacity: 0.6; }

.ci-cel-num { font-size: 10px; color: var(--text-2); }

.ci-cel-emoji { font-size: 18px; line-height: 1.2; }

.ci-detalhe:empty { display: none; }

.ci-lembretes .cl-linha .cl-input { flex: 1; }

.ci-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 16px; }

.ci-checkbox { width: 28px; height: 28px; }

/* Checklist: botão "Criar alarme" (link estilizado como botão) e instruções do Atalho */
a.cl-alarme, a.cl-alarme-seguir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cl-alarme-info { padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 14px; }

.cl-alarme-info[hidden] { display: none; }

.cl-alarme-info summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

.cl-alarme-aviso { margin: 0 0 8px; }

.cl-alarme-passos { margin: 0; padding-left: 20px; line-height: 1.5; }

.nt-dialogo .cl-alarme-passos { color: var(--text-2); font-size: 14px; }
