.ah-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.ah-passport {
  background: #fffdf8;
  border: 2px solid rgba(44, 44, 44, 0.28);
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.65rem;
}

.ah-passport-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ah-passport-top h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.95rem;
  line-height: 1.06;
}

.ah-odds-badge {
  display: inline-block;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.14);
  color: #8f2419;
  font-size: 0.92rem;
  font-weight: 700;
}

.ah-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ah-chip {
  padding: 0.14rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(44, 44, 44, 0.18);
  background: #faf6ee;
  font-size: 0.88rem;
  color: var(--ink);
}

.ah-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.ah-step {
  background: #fffdf8;
  border: 1.5px solid rgba(44, 44, 44, 0.24);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.ah-step.is-locked {
  background: #f4efe5;
  border-style: dashed;
  opacity: 0.68;
}

.ah-step.is-active {
  border-color: var(--green);
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.12);
}

.ah-step-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.ah-step-val {
  font-family: 'Caveat', cursive;
  font-size: 1.42rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.ah-step-sub {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.3;
}

.ah-canvas-box {
  width: 100%;
  height: 215px;
  border: 2px solid rgba(44, 44, 44, 0.32);
  border-radius: 8px;
  overflow: hidden;
  background: #faf6ee;
  margin-bottom: 0.65rem;
}

#ah-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ah-context {
  background: rgba(39, 174, 96, 0.08);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.48;
}

.ah-context strong { color: var(--ink); }

.ah-compare-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  border: 1.5px solid rgba(44, 44, 44, 0.2);
  background: #faf6ee;
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.ah-compare-strip a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.ah-compare-strip a:hover { text-decoration: underline; }

.ah-log-wrap {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(44, 44, 44, 0.24);
}

.ah-log-wrap h3 {
  font-size: 0.96rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.ah-log {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.95rem;
}

.ah-log li::before {
  content: "• ";
  color: var(--red);
  font-weight: 700;
}

.ah-copy-msg {
  font-size: 0.94rem;
  font-weight: 700;
  color: #166534;
}

@media (max-width: 820px) {
  .ah-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ah-passport-top h2 { font-size: 1.8rem; }
  .ah-canvas-box { height: 210px; }
  .ah-steps-grid { grid-template-columns: 1fr; }
}
