/* ==========================================================
   vazio. — página Evolução
   ========================================================== */

.evo-head { margin-bottom: 24px; }
.evo-title { font-size: clamp(36px, 5vw, 60px); }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.notice p { margin: 0; color: var(--muted); font-size: 15px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

.meter { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .4s ease; }

.evo-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-title { font-size: 15px; font-weight: 600; margin: 0; }
.chart-key { font-size: 12px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.key-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.key-goal { width: 14px; height: 0; border-top: 2px dashed var(--muted); margin-left: 8px; }

/* Barras por dia */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 220px; }
.bcol { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; outline-offset: 2px; }
.bplot { position: relative; flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; border-bottom: 1px solid var(--line); }
.bbar { width: 60%; max-width: 36px; background: var(--accent); border-radius: 4px 4px 0 0; transition: height .4s ease; }
.bgoal { position: absolute; left: 12%; right: 12%; border-top: 2px dashed var(--muted); opacity: .7; }
.blbl { font-size: 11px; color: var(--muted); }
.bcol.is-today .blbl { color: var(--ink); font-weight: 500; }
.bcol:hover .bbar { filter: brightness(1.1); }

/* Matérias */
.subjects { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.subj-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.subj-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subj-v { font-size: 13px; }
.subj-v span { color: var(--muted); }
.subj-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.subj-track i { display: block; height: 100%; border-radius: 999px; }
.subjects .empty { color: var(--muted); font-size: 14px; }

/* Calendário (heatmap) — 1 cor, do claro ao escuro */
.heat-scroll { overflow-x: auto; padding-bottom: 4px; }
.heat { display: flex; gap: 4px; min-width: max-content; }
.heat-days, .heat-col { display: grid; grid-template-rows: 16px repeat(7, 16px); gap: 4px; }
.heat-days span { font-size: 10px; color: var(--muted); line-height: 16px; padding-right: 6px; }
.heat-days span:first-child { grid-row: 2; }
.heat-m { font-size: 10px; color: var(--muted); line-height: 16px; white-space: nowrap; width: 16px; overflow: visible; }
.hc { width: 16px; height: 16px; border-radius: 4px; display: block; }
.hc.h0, .heat-key .h0 { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.hc.h1, .heat-key .h1 { background: color-mix(in srgb, var(--accent) 28%, var(--surface)); }
.hc.h2, .heat-key .h2 { background: color-mix(in srgb, var(--accent) 52%, var(--surface)); }
.hc.h3, .heat-key .h3 { background: color-mix(in srgb, var(--accent) 76%, var(--surface)); }
.hc.h4, .heat-key .h4 { background: var(--accent); }
.hc.future { background: transparent; }
.heat-key span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Tooltip */
.tip {
  position: fixed; z-index: 50; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: 13px;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .evo-grid { grid-template-columns: 1fr; }
}
