.cw-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.cw-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cw-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cw-field select,
.cw-field input {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-width: 5rem;
}

.addr-bits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.5rem 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.addr-bits .bit {
  min-width: 1.75rem;
  text-align: center;
  padding: 0.35rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.addr-bits .bit.tag {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border-color: var(--accent);
}
.addr-bits .bit.idx {
  background: color-mix(in srgb, #2a7 18%, var(--surface));
  border-color: #2a7;
}
.addr-bits .bit.off {
  background: color-mix(in srgb, #e6a800 18%, var(--surface));
  border-color: #c45c00;
}
.addr-bits .sep {
  align-self: center;
  color: var(--muted);
  padding: 0 0.15rem;
}

.field-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}
.field-legend strong {
  font-weight: 700;
}

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  margin: 0.5rem 0 0.75rem;
}
.verdict.hit {
  background: var(--ok-bg, #e7f6ec);
  color: var(--ok, #1b7a3d);
}
.verdict.miss {
  background: var(--err-bg, #fdecea);
  color: var(--err, #b33);
}
.verdict.idle {
  background: var(--surface2);
  color: var(--muted);
}

.cache-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem;
}
.cache-table th,
.cache-table td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  text-align: left;
}
.cache-table th {
  background: var(--surface2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cache-table tr.probe {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.cache-table tr.hit-row {
  background: color-mix(in srgb, #2a7 12%, var(--surface));
}
.cache-table .data {
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.step-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.step-list li {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}
.step-list li:last-child {
  border-bottom: none;
}
.step-list li.active {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  font-weight: 600;
}

.access-log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 10rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.access-log li {
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--line);
}
.access-log li:last-child {
  border-bottom: none;
}
.access-log .hit {
  color: var(--ok, #1b7a3d);
}
.access-log .miss {
  color: var(--err, #b33);
}

.cw-meta {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}
