/* Painel de atividade — três colunas, sobre os tokens do style.css */

.dash {
  width: min(1320px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr) 286px;
  gap: 16px;
  align-items: start;
}
.dash-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.dash-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.dash-pad { padding: 14px; }

.dash-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtle);
}
.dash-kicker a { color: var(--primary-glow); text-decoration: none; }
.dash-kicker a:hover { text-decoration: underline; }

/* bloco 1 — continue de onde parou */
.dash-continue { position: relative; overflow: hidden; }
.dash-continue .thumb { height: 118px; background-size: cover; background-position: center; background-color: var(--surface-solid); }
.dash-continue .veil { position: relative; padding: 0 14px 14px; margin-top: -34px; }
.dash-continue .thumb + .veil { background: linear-gradient(180deg, rgba(14, 16, 20, 0) 0, rgba(14, 16, 20, .94) 34%); }
.dash-continue .k { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--primary-glow); }
.dash-continue h2 { margin: .35rem 0 .2rem; font-size: .95rem; line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
.dash-continue p { margin: 0; font-size: .72rem; color: var(--muted); }
.dash-continue .go {
  position: absolute; right: 12px; bottom: 12px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--primary-line); border-radius: 50%;
  color: var(--primary-glow); font-size: .75rem; text-decoration: none;
}
.dash-continue .go:hover { background: var(--primary-dim); }

/* listas */
.dash-list { display: flex; flex-direction: column; gap: 8px; }
.dash-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border: 1px solid var(--line-soft); border-radius: 11px;
  background: rgba(255, 255, 255, .03); text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.dash-item:hover { border-color: var(--primary-line); background: var(--primary-dim); }
.dash-item .sq {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--primary-line);
  background: linear-gradient(140deg, rgba(20, 184, 166, .30), rgba(20, 184, 166, .06));
  color: var(--primary-glow); font-size: .72rem;
}
.dash-item .tx { min-width: 0; }
.dash-item .tx i {
  display: block; font-style: normal;
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--subtle);
}
.dash-item .tx b {
  display: block; font-size: .76rem; font-weight: 500; color: var(--text-copy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-item .ar { margin-left: auto; color: var(--subtle); font-size: .7rem; }
.dash-divider { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: .64rem; color: var(--subtle); }
.dash-divider::before, .dash-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* bloco 2 — centro */
.dash-filters { display: flex; align-items: center; gap: 16px; padding: 10px 14px; overflow-x: auto; }
.dash-f { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .64rem; color: var(--subtle); white-space: nowrap; }
.dash-f .b {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
}
.dash-f.on .b { border-color: var(--primary); background: var(--primary-dim); color: var(--primary-glow); box-shadow: 0 0 18px rgba(20, 184, 166, .28); }
.dash-f.on { color: var(--text); }

.dash-banner {
  display: flex; align-items: center; min-height: 92px;
  padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(5, 8, 15, .92), rgba(20, 184, 166, .16));
}
.dash-banner b { font-size: .9rem; line-height: 1.4; color: var(--text); max-width: 80%; }

.dash-post { padding: 14px 16px; }
.dash-post .head { display: flex; align-items: center; gap: 10px; }
.dash-post .av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary-light), var(--primary-dark));
  color: #04211e; font-weight: 700; font-size: .7rem;
}
.dash-post .who b { display: block; font-size: .8rem; color: var(--text); font-weight: 600; }
.dash-post .who i { font-style: normal; font-size: .66rem; color: var(--subtle); }
.dash-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--primary-line); border-radius: 999px;
  background: var(--primary-dim); color: var(--primary-glow);
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
}
.dash-post h3 { margin: 12px 0 8px; font-size: 1rem; color: var(--text); letter-spacing: -.015em; }
.dash-post p { margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.dash-post ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dash-post ul a { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--primary-light); text-decoration: none; padding: 2px 0; }
.dash-post ul a:hover { color: var(--primary-glow); }
.dash-post ul a::before { content: "▸"; color: var(--primary); font-size: .7rem; }
.dash-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.dash-th {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background-size: cover; background-position: center; background-color: var(--surface-solid);
}
.dash-th span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px;
  font-size: .6rem; color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 15, .92));
}

/* bloco 3 — atalhos, métricas, heatmap */
.dash-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; }
.dash-sc { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .58rem; color: var(--subtle); text-align: center; text-decoration: none; }
.dash-sc .b {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--primary-line); background: var(--primary-dim);
  color: var(--primary-glow); font-size: .8rem;
}
.dash-sc:hover .b { border-color: var(--primary); box-shadow: 0 0 18px rgba(20, 184, 166, .28); }
.dash-sc:hover { color: var(--text-copy); }

.dash-metrics { padding: 4px 14px 14px; }
.dash-metric {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .72rem;
}
.dash-metric:last-child { border-bottom: 0; }
.dash-metric .k { font-family: var(--font-mono); font-size: .6rem; color: var(--subtle); width: 42px; }
.dash-metric .n { flex: 1; color: var(--text-copy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-metric .v { font-family: var(--font-mono); font-size: .64rem; color: var(--primary-glow); }
.dash-me {
  display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 10px 12px;
  border: 1px solid var(--primary-line); border-radius: 12px; background: var(--primary-dim);
}
.dash-me .pos { font-family: var(--font-mono); font-size: .64rem; color: var(--primary-glow); }
.dash-me .lb { font-size: .74rem; color: var(--text-copy); }
.dash-me .big { margin-left: auto; text-align: right; }
.dash-me .big b { display: block; font-size: 1rem; line-height: 1; color: var(--text); }
.dash-me .big i { font-style: normal; font-family: var(--font-mono); font-size: .56rem; color: var(--subtle); }

.dash-hero { padding: 10px 0 12px; }
.dash-hero .hero-num { display: flex; align-items: baseline; gap: 7px; }
.dash-hero .hero-num b {
  font-size: 2.15rem; line-height: .9; letter-spacing: -.035em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dash-hero .hero-num span { font-size: .68rem; color: var(--muted); }
.dash-hero .hero-bar {
  height: 5px; margin: 10px 0 7px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.dash-hero .hero-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  box-shadow: 0 0 12px rgba(20, 184, 166, .45);
}
.dash-hero .hero-cap { margin: 0; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .06em; color: var(--subtle); }

.dash-seq { padding: 4px 14px 14px; }
.dash-seq-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.dash-seq-head b { font-size: 1rem; color: var(--text); }
.hm-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 8px); gap: 3px; }
.hm { width: 8px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .06); display: block; }
.hm-0 { background: rgba(255, 255, 255, .06); }
.hm-1 { background: rgba(20, 184, 166, .25); }
.hm-2 { background: rgba(20, 184, 166, .45); }
.hm-3 { background: rgba(20, 184, 166, .70); }
.hm-4 { background: var(--primary-light); }
.hm-empty { background: transparent; }
.hm-legend { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-family: var(--font-mono); font-size: .56rem; color: var(--subtle); }
.dash-empty { padding: 14px; font-size: .78rem; color: var(--muted); }

@media (max-width: 1080px) {
  .dash { grid-template-columns: 232px minmax(0, 1fr); }
  .dash-col--right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dash { width: min(var(--content), calc(100% - 2rem)); grid-template-columns: 1fr; padding: 1.5rem 0 2rem; }
  .dash-col--right { grid-column: auto; grid-template-columns: 1fr; }
  .dash-thumbs { grid-template-columns: repeat(2, 1fr); }
}
