/* Dashboard — analytics layout. Headline figure, stat cards with sparklines,
   and a recent-work column board. Neutral/corporate within the brand tokens. */

.an { display: flex; flex-direction: column; gap: 22px; }

/* ---- Header ---- */
.an-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 4px 2px 0; }
.an-crumb { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey); }
.an-title { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; margin-top: 8px; }
.an-headline { font-family: var(--font-display); font-size: 46px; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); margin-top: 2px; }
.an-headsub { font-size: 13px; color: var(--grey); margin-top: 4px; }
.an-actions { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.an-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-soft); background: var(--paper);
  font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.an-pill:hover { background: var(--hover-bg); border-color: var(--border-strong); }

/* ---- Stat cards ---- */
.an-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .an-cards { grid-template-columns: 1fr; } }
.an-card {
  display: flex; align-items: stretch; justify-content: space-between; gap: 12px;
  background: var(--paper);
  border: 1px solid rgba(20, 20, 19, 0.06);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(20,20,19,0.045), 0 1px 3px rgba(20,20,19,0.03);
  padding: 18px 18px 14px;
}
.an-card-label { font-size: 13px; color: var(--grey); }
.an-card-value { font-family: var(--font-display); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.an-card-sub { font-size: 11px; color: var(--grey); margin-top: 4px; }
.an-delta { font-family: var(--font-body); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.an-delta.up { background: rgba(239,159,39,0.16); color: #8a6300; }
.an-delta.down { background: rgba(216,90,48,0.12); color: #a04a2a; }
.an-card-spark { width: 132px; align-self: flex-end; }
.an-spark { width: 100%; height: 46px; display: block; }

/* ---- Recent-work board ---- */
.an-recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.an-recent-head h2 { font-family: var(--font-display); font-size: 20px; }
.an-view { font-size: 13px; color: var(--grey); text-decoration: none; }
.an-view:hover { color: var(--ink); }
.an-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .an-cols { grid-template-columns: 1fr; } }
.an-col { display: flex; flex-direction: column; gap: 10px; }
.an-col-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey); padding: 2px 2px; }
.an-col-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--hover-bg); color: var(--ink); font-size: 11px; font-family: var(--font-mono);
}
.an-col-body { display: flex; flex-direction: column; gap: 10px; }
.an-col-empty { color: var(--grey); font-size: 13px; padding: 10px 2px; }

.an-wcard {
  display: block;
  background: var(--paper);
  border: 1px solid rgba(20, 20, 19, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(20,20,19,0.04);
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.an-wcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,20,19,0.07); }
.an-wcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.an-wcard-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(20,20,19,0.05); color: var(--grey);
}
.an-wcard-ic svg { width: 18px; height: 18px; }
.an-wcard-av { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-soft); }
.an-wcard-title { font-size: 14px; font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
.an-wcard-meta { font-family: var(--font-mono); font-size: 10px; color: var(--grey); }
.an-wcard-bar { height: 5px; border-radius: 999px; background: var(--hover-bg); overflow: hidden; margin: 12px 0 8px; }
.an-wcard-bar span { display: block; height: 100%; border-radius: 999px; background: var(--cta); }
.an-wcard-foot { font-size: 11px; color: var(--grey); border-top: 1px solid var(--border-soft); padding-top: 8px; }
.an-col-add {
  display: block; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: 12px;
  padding: 10px; font-size: 13px; color: var(--grey); text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.an-col-add:hover { color: var(--ink); border-color: var(--ink); }
