/* ============================================================
   Left navigation — tab buttons + event log.
   ============================================================ */
.leftnav {
  background: var(--bg-shell);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--sp-3) var(--sp-2);
  gap: var(--sp-1);
  overflow: hidden;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  color: var(--text);
  border-radius: var(--r-md);
  text-align: left;
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  transition: background var(--dur-fast) var(--ease),
              padding var(--dur-fast) var(--ease);
}
.tab-btn:hover { background: rgba(255,255,255,0.04); }
.tab-btn.active {
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
  color: var(--text-strong);
  font-weight: var(--fw-bold);
}
.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.tab-icon svg { width: 18px; height: 18px; }

.leftnav-foot {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--sp-2) var(--sp-1);
  border-top: 1px solid var(--border);
}
.leftnav-foot h4 {
  margin: 0 0 var(--sp-2) 0;
  text-transform: uppercase;
  font-size: var(--fs-micro);
  letter-spacing: 1.2px;
  color: var(--text-dim);
  font-weight: var(--fw-semi);
}
.event-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  font-size: var(--fs-sm);
}
.log-row {
  padding: var(--sp-1);
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  color: var(--text-dim);
}
.log-day {
  display: inline-block;
  background: rgba(79,195,247,0.15);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 5px;
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  margin-right: var(--sp-1);
}

/* Workshop receipt pulse — fired when the player buys a job and the
   postit flies into the workshop nav button. The pulse signals
   "a unit was just filed under workshop" without auto-switching the
   tab (player stays on Job Board so they can keep shopping).

   Two-stage feel: a bright accent halo that briefly wraps the button
   plus a subtle scale bump on the row, then a longer-tail gold
   afterglow that fades. The keyframe is GPU-friendly (box-shadow +
   transform only). */
.tab-btn.workshop-receipt-pulse {
  animation: workshopReceiptPulse 1.6s var(--ease-snap, ease-out);
  position: relative;
}
@keyframes workshopReceiptPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 195, 247, 0);
    transform: scale(1);
  }
  10% {
    box-shadow: inset 0 0 0 2px rgba(79, 195, 247, 0.85),
                0 0 16px rgba(79, 195, 247, 0.55);
    transform: scale(1.04);
  }
  35% {
    box-shadow: inset 0 0 0 2px rgba(240, 198, 58, 0.55),
                0 0 22px rgba(240, 198, 58, 0.35);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 198, 58, 0);
    transform: scale(1);
  }
}
