.sticky-log { margin: 0 0 14px; }
.log-cta {
  width: 100%;
  padding: 14px 16px !important;
  font-size: 1.05rem !important;
  border-radius: 14px !important;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active {
  background: var(--acc);
  color: #fff;
  border-color: transparent;
}
.tab-panel[hidden] { display: none !important; }

.heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
@media (max-width: 520px) {
  .heatmap { grid-template-columns: repeat(6, 1fr); }
}
.heat-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg1);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--mute);
}
.heat-cell .n { font-size: 0.85rem; color: var(--ink); }
.heat-cell.lv1 { background: #d5e8ec; }
.heat-cell.lv2 { background: #a8d0d8; color: #142428; }
.heat-cell.lv3 { background: #2f6f7a; color: #fff; border-color: transparent; }
.heat-cell.lv3 .n { color: #fff; }
.heat-cell.lv4 { background: #c4784a; color: #fff; border-color: transparent; }
.heat-cell.lv4 .n { color: #fff; }

.corr-list { display: grid; gap: 8px; }
.corr-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg1);
  font-size: 0.92rem;
}
.corr-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  margin-top: 6px;
  overflow: hidden;
}
.corr-bar > span {
  display: block;
  height: 100%;
  background: var(--acc2);
  border-radius: 999px;
}

.wizard {
  border: 0;
  padding: 0;
  border-radius: 18px;
  max-width: 440px;
  width: calc(100% - 24px);
  box-shadow: 0 24px 60px rgba(20, 36, 40, 0.28);
}
.wizard::backdrop { background: rgba(14, 28, 32, 0.55); }
.wizard-inner { padding: 16px 16px 18px; }
.wiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.wiz-head h2 { margin: 0; font-family: var(--display); font-size: 1.25rem; }
.wiz-step {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.wiz-card h3 {
  margin: 14px 0 8px;
  font-size: 0.95rem;
}
.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
@media (max-width: 480px) {
  .meta-row { grid-template-columns: 1fr; }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  text-align: left;
}
.chip.on {
  background: var(--acc-soft);
  border-color: var(--acc2);
  color: var(--acc);
  outline: 2px solid color-mix(in srgb, var(--acc2) 35%, transparent);
}
.severity .chip { min-width: 3.2rem; text-align: center; }
.wizard label { margin-top: 10px; }
.wizard textarea { margin-top: 4px; }
.wiz-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.wiz-foot .primary { flex: 1; min-width: 140px; }
.tab-panel.active { display: block; }
.sev-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.sev-1, .sev-2 { background: var(--ok-soft); color: var(--ok); }
.sev-3 { background: var(--warn-soft); color: var(--warn); }
.sev-4, .sev-5 { background: var(--bad-soft); color: var(--bad); }
