:root {
  --fundo: #0d0d0f;
  --painel: #141418;
  --linha: #26262e;
  --texto: #e6e6ea;
  --fraco: #8b8b98;
  --acento: #8b5cf6;
  --erro: #ff6b6b;
  --ok: #5cd67a;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.6 var(--ui);
  -webkit-text-size-adjust: 100%;
}

button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------- portão */

.portao {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.cartao {
  width: min(26rem, 100%);
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: 14px;
  padding: 2rem;
}

.cartao h1 {
  margin: 0 0 .25rem;
  font: 600 1.6rem/1.2 var(--serif);
  letter-spacing: -.02em;
}

.cartao .sub { margin: 0 0 1.5rem; color: var(--fraco); font-size: .9rem; }

.cartao label {
  display: block;
  margin: 1rem 0 .35rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fraco);
}

.cartao input {
  width: 100%;
  padding: .7rem .8rem;
  background: #0b0b0e;
  border: 1px solid var(--linha);
  border-radius: 8px;
  outline: none;
}

.cartao input:focus { border-color: var(--acento); }

.cartao button {
  width: 100%;
  margin-top: 1.5rem;
  padding: .75rem;
  background: var(--acento);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.cartao button:hover { filter: brightness(1.12); }

.erro {
  margin: 0 0 1rem;
  padding: .6rem .8rem;
  background: rgba(255, 107, 107, .1);
  border-left: 3px solid var(--erro);
  border-radius: 4px;
  font-size: .875rem;
  color: #ffb3b3;
}

.dica, .aviso { font-size: .8rem; color: var(--fraco); margin: .5rem 0 0; }
.aviso { margin-top: 1.25rem; line-height: 1.5; }
code { font-family: var(--mono); font-size: .9em; }

/* ---------------------------------------------------------------- app */

.app { display: flex; height: 100dvh; overflow: hidden; }

.lateral {
  width: 17rem;
  flex: 0 0 17rem;
  background: var(--painel);
  border-right: 1px solid var(--linha);
  display: flex;
  flex-direction: column;
  padding: .75rem;
  gap: .75rem;
  overflow: hidden;
}

.lateral-topo { display: flex; align-items: center; justify-content: space-between; }
.lateral-topo strong { font: 600 1.05rem var(--serif); }
.sair { margin: 0; }
.sair button {
  background: none; border: 0; color: var(--fraco);
  font-size: .8rem; cursor: pointer; padding: .2rem .3rem;
}
.sair button:hover { color: var(--texto); }

#busca {
  width: 100%;
  padding: .5rem .7rem;
  background: #0b0b0e;
  border: 1px solid var(--linha);
  border-radius: 8px;
  outline: none;
}
#busca:focus { border-color: var(--acento); }

.secao { display: flex; flex-direction: column; min-height: 0; }
.secao.cresce { flex: 1 1 auto; }

.secao-topo {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fraco); padding: .35rem .2rem;
}
.secao-topo button {
  background: none; border: 0; color: var(--fraco);
  font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 .3rem;
}
.secao-topo button:hover { color: var(--acento); }

.lateral ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; }

.lateral li {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .5rem; border-radius: 6px;
  cursor: pointer; font-size: .9rem;
}
.lateral li:hover { background: #1c1c22; }
.lateral li.ativa { background: #24202e; color: #fff; }
.lateral li .rotulo { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lateral li .ponto { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.lateral li .x {
  opacity: 0; background: none; border: 0; color: var(--fraco);
  cursor: pointer; padding: 0 .2rem; font-size: .9rem;
}
.lateral li:hover .x { opacity: 1; }
.lateral li .x:hover { color: var(--erro); }

.lateral .nenhum { padding: .5rem; color: var(--fraco); font-size: .82rem; cursor: default; }
.lateral .nenhum:hover { background: none; }

/* -------------------------------------------------------------- painel */

.painel { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.barra {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--linha);
}

#titulo {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  font: 600 1.1rem var(--serif);
}
#titulo::placeholder { color: var(--fraco); font-weight: 400; }

#materia-da-nota {
  background: #0b0b0e; border: 1px solid var(--linha);
  border-radius: 6px; padding: .3rem .5rem; font-size: .82rem; outline: none;
}

.estado { font-size: .75rem; color: var(--fraco); min-width: 5.5rem; text-align: right; }
.estado.salvando { color: var(--acento); }
.estado.salvo { color: var(--ok); }
.estado.falhou { color: var(--erro); }

#editor {
  flex: 1; width: 100%;
  padding: 1.5rem 1.75rem 4rem;
  background: none; border: 0; outline: none; resize: none;
  font: 15px/1.75 var(--mono);
  tab-size: 2;
}
#editor::placeholder { color: #4a4a56; }

.vazio {
  flex: 1; display: grid; place-content: center; text-align: center;
  color: var(--fraco);
}

.oculto { display: none !important; }
.so-mobile { display: none; }
.desligado { opacity: .35; pointer-events: none; }

.icone {
  background: none; border: 0; color: var(--fraco);
  font-size: 1.05rem; cursor: pointer; padding: .2rem .45rem; border-radius: 6px;
}
.icone:hover { color: var(--acento); background: #1c1c22; }

.lateral li .ponto.clicavel { cursor: pointer; }
.lateral li .ponto.clicavel:hover { outline: 2px solid var(--texto); outline-offset: 2px; }

/* ------------------------------------------------- editor e sugestões */

.area-editor { flex: 1; position: relative; display: flex; min-height: 0; }

/* Dividido: editor e leitura lado a lado, cada um rolando por conta propria. */
.area-editor.dividido > #editor,
.area-editor.dividido > .leitura { flex: 1 1 50%; min-width: 0; max-width: none; }
.area-editor.dividido > .leitura { border-left: 1px solid var(--linha); }

/* ------------------------------------------------------- modo leitura */

.icone.ligado { color: var(--acento); background: #201a2e; }

.leitura {
  flex: 1; overflow-y: auto;
  padding: 1.5rem 1.75rem 4rem;
  max-width: 46rem;
  font-size: 15.5px; line-height: 1.75;
}

.leitura h1, .leitura h2, .leitura h3,
.leitura h4, .leitura h5, .leitura h6 {
  font-family: var(--serif); line-height: 1.25;
  margin: 1.8em 0 .6em; letter-spacing: -.01em;
}
.leitura h1 { font-size: 1.7rem; }
.leitura h2 { font-size: 1.35rem; }
.leitura h3 { font-size: 1.12rem; }
.leitura h4, .leitura h5, .leitura h6 { font-size: 1rem; color: var(--fraco); }
.leitura > :first-child { margin-top: 0; }

.leitura p { margin: 0 0 1em; }
.leitura ul, .leitura ol { margin: 0 0 1em; padding-left: 1.4rem; }
.leitura li { margin: .25em 0; }
.leitura li input[type="checkbox"] { margin-right: .4rem; accent-color: var(--acento); }
.leitura s, .leitura del { color: var(--fraco); }

.leitura blockquote {
  margin: 0 0 1em; padding: .1rem 0 .1rem 1rem;
  border-left: 3px solid var(--acento); color: var(--fraco);
}

.leitura code {
  background: #1c1c22; border: 1px solid var(--linha);
  border-radius: 4px; padding: .08em .35em; font-size: .88em;
}
.leitura pre {
  background: #101014; border: 1px solid var(--linha);
  border-radius: 10px; padding: .9rem 1rem;
  overflow-x: auto; margin: 0 0 1em;
}
.leitura pre code { background: none; border: 0; padding: 0; font-size: .875rem; }

.leitura hr { border: 0; border-top: 1px solid var(--linha); margin: 2em 0; }

.leitura a { color: var(--acento); text-decoration: none; }
.leitura a:hover { text-decoration: underline; }
.leitura a.wikilink {
  cursor: pointer; border-bottom: 1px dashed currentColor; text-decoration: none;
}

.leitura img {
  max-width: 100%; height: auto; display: block;
  margin: 1em 0; border-radius: 10px; border: 1px solid var(--linha);
}

/* Tabela larga rola dentro de si, sem empurrar a página. */
.leitura table {
  border-collapse: collapse; margin: 0 0 1em; width: 100%;
  display: block; overflow-x: auto;
}
.leitura th, .leitura td {
  border: 1px solid var(--linha); padding: .45rem .7rem; text-align: left;
}
.leitura th { background: #17171d; font-weight: 600; }

.sugestoes {
  position: absolute; left: 1.75rem; bottom: 1rem; z-index: 5;
  list-style: none; margin: 0; padding: .3rem;
  min-width: 15rem; max-width: 24rem;
  background: #17171d; border: 1px solid var(--linha);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}
.sugestoes li {
  padding: .4rem .6rem; border-radius: 6px; cursor: pointer;
  font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sugestoes li.ativa { background: #2a2438; color: #fff; }

/* ------------------------------------------------------------ backlinks */

.backlinks {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  padding: .6rem .9rem; border-top: 1px solid var(--linha); background: #101014;
}
.backlinks-rotulo {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--fraco); margin-right: .3rem;
}
.backlink {
  background: #1c1c22; border: 1px solid var(--linha); color: var(--texto);
  border-radius: 999px; padding: .22rem .7rem; font-size: .8rem; cursor: pointer;
}
.backlink:hover { border-color: var(--acento); color: #fff; }

/* ----------------------------------------------------------- mapa mental */

.grafo { position: fixed; inset: 0; z-index: 40; background: #08080a; }
.grafo canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }

.grafo-barra {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1rem;
  background: linear-gradient(#08080aee, #08080a00);
  font-size: .82rem; color: var(--fraco);
}
.grafo-barra strong { color: var(--texto); font: 600 .95rem var(--serif); }
.grafo-barra label { display: flex; align-items: center; gap: .35rem; cursor: pointer; }
.grafo-barra select {
  background: #14141a; border: 1px solid var(--linha); color: var(--texto);
  border-radius: 6px; padding: .1rem .3rem;
}
.grafo-dica { margin-left: auto; opacity: .65; }
#fechar-grafo {
  background: none; border: 0; color: var(--fraco);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .3rem;
}
#fechar-grafo:hover { color: var(--texto); }

#menu {
  background: none; border: 0; color: var(--fraco);
  font-size: 1.2rem; cursor: pointer; padding: .2rem .4rem;
}

/* -------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .so-mobile { display: block; }

  .lateral {
    position: fixed; inset: 0 auto 0 0; z-index: 20;
    width: 82vw; max-width: 20rem;
    transform: translateX(-100%);
    transition: transform .18s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .6);
  }
  .app.aberto .lateral { transform: none; }

  .app.aberto::after {
    content: ''; position: fixed; inset: 0; z-index: 10;
    background: rgba(0, 0, 0, .5);
  }

  #editor { padding: 1rem 1.1rem 4rem; font-size: 16px; }  /* 16px evita zoom no iOS */
  #titulo { font-size: 1rem; }
  #materia-da-nota { max-width: 6rem; }

  .sugestoes { left: .8rem; right: .8rem; max-width: none; }
  .leitura { padding: 1rem 1.1rem 4rem; }
  .grafo-dica { display: none; }
  .grafo-barra { gap: .7rem; font-size: .75rem; flex-wrap: wrap; }
}

/* ------------------------------------------------------------- agenda */

.agenda { position: fixed; inset: 0; z-index: 40; background: var(--fundo); display: flex; flex-direction: column; }

.agenda-barra {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--linha);
  font-size: .85rem; color: var(--fraco);
}
.agenda-barra strong { color: var(--texto); font: 600 .95rem var(--serif); margin-right: .4rem; }
.agenda-barra button {
  background: none; border: 1px solid transparent; color: var(--fraco);
  border-radius: 6px; padding: .18rem .55rem; cursor: pointer; font-size: .85rem;
}
.agenda-barra button:hover { color: var(--texto); border-color: var(--linha); }
#agenda-mes { min-width: 9.5rem; text-align: center; color: var(--texto); }
#fechar-agenda { margin-left: auto; font-size: 1.3rem; line-height: 1; }

.agenda-corpo { flex: 1; display: flex; min-height: 0; }
.agenda-mes-caixa { flex: 0 0 clamp(19rem, 42%, 30rem); border-right: 1px solid var(--linha); overflow-y: auto; padding: 1rem; }

.agenda-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ag-cabeca {
  text-align: center; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--fraco); padding-bottom: .3rem;
}

.ag-dia {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: 1px solid transparent; border-radius: 8px;
  color: var(--texto); cursor: pointer; padding: 0;
}
.ag-dia:hover { background: #1c1c22; }
.ag-dia.sel { background: #2a2438; border-color: var(--acento); }
.ag-dia.hoje .ag-num { color: var(--acento); font-weight: 700; }
.ag-dia.feriado .ag-num { color: var(--erro); }
.ag-num { font-size: .85rem; line-height: 1; }

.ag-pontos { display: flex; gap: 2px; height: 4px; }
.ag-pontos i { width: 4px; height: 4px; border-radius: 50%; background: var(--fraco); }
.ag-pontos i.prova { background: var(--erro); }
.ag-pontos i.feito { opacity: .35; }

/* ------------------------------------------------------- dia da agenda */

.agenda-dia { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem 3rem; min-width: 0; }
.agenda-dia header { margin-bottom: 1rem; }
.agenda-dia h3 { margin: 0; font: 600 1.25rem var(--serif); }
.ag-subtitulo { font-size: .8rem; color: var(--fraco); }

.ag-feriado {
  margin-bottom: 1rem; padding: .5rem .8rem;
  background: rgba(255, 107, 107, .1); border-left: 3px solid var(--erro);
  border-radius: 4px; font-size: .85rem; color: #ffb3b3;
}

.ag-itens { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ag-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem .7rem; border-radius: 8px;
  border-left: 3px solid var(--linha); background: var(--painel);
}
.ag-item.avaliacao { border-left-color: var(--erro); }
.ag-hora { font: .8rem var(--mono); color: var(--fraco); min-width: 3rem; }
.ag-meio { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ag-titulo { font-size: .92rem; }
.ag-titulo.feito { text-decoration: line-through; color: var(--fraco); }
.ag-detalhe { font-size: .75rem; color: var(--fraco); }
.ag-vazio { padding: .6rem; color: var(--fraco); font-size: .85rem; }

.ag-acao {
  background: none; border: 0; color: var(--fraco);
  cursor: pointer; padding: .1rem .35rem; font-size: .9rem; border-radius: 4px;
}
.ag-acao:hover { color: var(--texto); background: #24242c; }

.ag-novo, .ag-nova-rotina { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.ag-novo input, .ag-nova-rotina input, .ag-nova-rotina select {
  background: #0b0b0e; border: 1px solid var(--linha); border-radius: 7px;
  padding: .42rem .6rem; outline: none; color: var(--texto);
}
.ag-novo input[type="text"] { flex: 1; min-width: 8rem; }
.ag-novo button, .ag-nova-rotina button[type="submit"] {
  background: var(--acento); color: #fff; border: 0;
  border-radius: 7px; padding: .42rem .9rem; cursor: pointer; font-weight: 600;
}

.agenda-rotinas { margin-top: 1.5rem; border-top: 1px solid var(--linha); padding-top: 1rem; }
.agenda-rotinas h3 { margin: 0 0 .2rem; font: 600 1rem var(--serif); }
.ag-rotinas { list-style: none; margin: .8rem 0 0; padding: 0; }
.ag-rotinas li {
  display: flex; align-items: center; gap: .6rem;
  padding: .4rem .5rem; border-radius: 6px;
}
.ag-rotinas li:hover { background: #1c1c22; }
.ag-rotinas .ag-detalhe { margin-left: auto; }

.ag-dias { display: flex; gap: 3px; }
.ag-dias button {
  background: #0b0b0e; border: 1px solid var(--linha); color: var(--fraco);
  border-radius: 6px; padding: .35rem .45rem; cursor: pointer; font-size: .75rem;
}
.ag-dias button.on { background: var(--acento); color: #fff; border-color: var(--acento); }

@media (max-width: 760px) {
  .agenda-corpo { flex-direction: column; }
  .agenda-mes-caixa { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--linha); }
  .agenda-dia { padding: 1rem; }
  .agenda-barra { flex-wrap: wrap; gap: .4rem; }
}

.ag-criar-feed {
  margin-top: .8rem; background: var(--acento); color: #fff; border: 0;
  border-radius: 7px; padding: .45rem 1rem; cursor: pointer; font-weight: 600;
}
.ag-link { display: flex; gap: .4rem; margin-top: .8rem; }
.ag-link input {
  flex: 1; min-width: 0; background: #0b0b0e; border: 1px solid var(--acento);
  border-radius: 7px; padding: .45rem .6rem; color: var(--texto);
  font: .78rem var(--mono); outline: none;
}
.ag-link button {
  background: #24242c; border: 1px solid var(--linha); color: var(--texto);
  border-radius: 7px; padding: .45rem .8rem; cursor: pointer;
}

/* --------------------------------------------------------- pendências */

.pendencia { gap: .45rem; }
.pendencia input[type="checkbox"] { accent-color: var(--acento); cursor: pointer; flex: 0 0 auto; }
.pendencia.urgente .rotulo { color: #ffb3b3; }
.pendencia.urgente::before {
  content: '!'; color: var(--erro); font-weight: 700; flex: 0 0 auto; font-size: .8rem;
}
.pendencia .prazo {
  font: .7rem var(--mono); color: var(--fraco);
  background: #1c1c22; border-radius: 4px; padding: .05rem .3rem; flex: 0 0 auto;
}
.pendencia .prazo.atrasado { color: var(--erro); background: rgba(255,107,107,.12); }

.ag-ate { font-size: .78rem; color: var(--fraco); }
.ag-dia-inteiro {
  display: flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--fraco); cursor: pointer;
}
.ag-dia-inteiro input { accent-color: var(--acento); }
.ag-item.pendencia-item { border-left-color: var(--acento); }

/* -------------------------------------------------------------- hoje */

.hoje { flex: 1; overflow-y: auto; padding: 2rem 2rem 4rem; max-width: 46rem; }
.hoje > header { margin-bottom: 1.6rem; }
.hoje h2 { margin: 0; font: 600 1.7rem/1.2 var(--serif); text-transform: capitalize; letter-spacing: -.02em; }
.hoje-data { font-size: .85rem; color: var(--fraco); }

.hoje-bloco { margin-bottom: 1.8rem; }
.hoje-bloco h3 {
  margin: 0 0 .5rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--fraco); font-weight: 600;
}
.hoje-bloco ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hoje-bloco li {
  display: flex; flex-direction: column;
  padding: .5rem .7rem; border-radius: 8px;
  background: var(--painel); border-left: 3px solid var(--linha);
}
.hoje-bloco li.clicavel { cursor: pointer; }
.hoje-bloco li.clicavel:hover { background: #1c1c22; }
.hoje-bloco li.avaliacao { border-left-color: var(--erro); }
.hoje-bloco li.urgente { border-left-color: var(--acento); }
.hoje-bloco li.atrasada { border-left-color: var(--erro); }
.hoje-bloco li.atrasada .hoje-detalhe { color: #ffb3b3; }
.hoje-texto { font-size: .93rem; }
.hoje-detalhe { font-size: .76rem; color: var(--fraco); }
.hoje-vazio { background: none !important; border-left-color: transparent !important; color: var(--fraco); font-size: .85rem; }

/* ------------------------------------------------------------ paleta */

.paleta {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .55);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 12vh 1rem 1rem;
}
.paleta-caixa {
  width: min(38rem, 100%);
  background: #16161c; border: 1px solid var(--linha);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; overflow: hidden;
}
#paleta-campo {
  background: none; border: 0; border-bottom: 1px solid var(--linha);
  padding: .95rem 1.1rem; font-size: 1rem; outline: none; color: var(--texto);
}
#paleta-campo::placeholder { color: var(--fraco); }

.paleta-lista { list-style: none; margin: 0; padding: .35rem; max-height: 55vh; overflow-y: auto; }
.pl-grupo {
  padding: .5rem .75rem .25rem; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--fraco);
}
.pl-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .75rem; border-radius: 8px; cursor: pointer;
}
.pl-item.ativo { background: #2a2438; }
.pl-item.urgente .pl-rotulo { color: #ffb3b3; }
.pl-meio { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pl-rotulo { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-detalhe {
  font-size: .76rem; color: var(--fraco);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-detalhe mark { background: rgba(139, 92, 246, .3); color: #fff; border-radius: 3px; padding: 0 1px; }
.pl-vazio { padding: 1rem .75rem; color: var(--fraco); font-size: .85rem; }
.paleta-rodape {
  border-top: 1px solid var(--linha); padding: .5rem .9rem;
  font-size: .72rem; color: var(--fraco);
}

@media (max-width: 760px) {
  .hoje { padding: 1.2rem 1.1rem 4rem; }
  .paleta { padding: 6vh .6rem .6rem; }
  .paleta-rodape { display: none; }
}

.lateral li .x.estrela.on { opacity: 1; color: #f59e0b; }
.lateral li .x.estrela { font-size: .85rem; }

#ordem-notas {
  background: none; border: 0; color: var(--fraco);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  outline: none; cursor: pointer; margin-left: auto; margin-right: .3rem;
}
#ordem-notas option { background: var(--painel); text-transform: none; letter-spacing: 0; }

.contador {
  padding: .35rem .9rem; border-top: 1px solid var(--linha);
  font-size: .72rem; color: var(--fraco); text-align: right;
}

.hoje-bloco li.importante { border-left-color: #f59e0b; }
.ag-passos {
  margin: .9rem 0 0; padding-left: 1.3rem;
  font-size: .8rem; color: var(--fraco); line-height: 1.6;
}
.ag-passos li { margin: .3rem 0; }

.cartao .dica a { color: var(--acento); text-decoration: none; }
.cartao .dica a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- conta */

.sair { display: flex; align-items: center; gap: .1rem; }
.sair form { margin: 0; }

.conta-caixa { max-height: 82vh; }
.conta-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--linha);
}
.conta-topo strong { font: 600 1rem var(--serif); }
#fechar-conta {
  background: none; border: 0; color: var(--fraco);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.conta-corpo { overflow-y: auto; padding: 1.1rem; color: var(--fraco); font-size: .85rem; }

.conta-bloco { margin-bottom: 1.6rem; }
.conta-bloco h3 {
  margin: 0 0 .6rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--fraco);
}
.conta-eu { margin: 0 0 .6rem; color: var(--texto); font-size: .95rem; }

.conta-uso {
  height: 6px; background: #0b0b0e; border-radius: 999px;
  overflow: hidden; margin-bottom: .4rem;
}
.conta-uso span { display: block; height: 100%; background: var(--acento); }
.conta-uso span.cheio { background: var(--erro); }

.conta-bloco label { display: block; margin-bottom: .5rem; color: var(--fraco); font-size: .8rem; }
.conta-bloco label input {
  display: block; width: 100%; margin-top: .2rem;
  background: #0b0b0e; border: 1px solid var(--linha); border-radius: 7px;
  padding: .45rem .6rem; color: var(--texto); outline: none;
}
.conta-bloco label input:focus { border-color: var(--acento); }
