.resp-progress {
  height: 0.72rem;
  overflow: hidden;
  border: 1px solid var(--border-main);
  border-radius: 999px;
  background: var(--bg-secondary);
}

.resp-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-emerald);
  transition: width 0.25s ease;
}

.resp-progress--gold > span { background: var(--accent-gold); }

.resp-status {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 2px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent-emerald) 8%, transparent);
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.55;
}

.resp-status[data-tone="warning"] {
  border-color: color-mix(in srgb, var(--accent-coral) 48%, transparent);
  background: color-mix(in srgb, var(--accent-coral) 9%, transparent);
}

.resp-status svg { flex: 0 0 auto; width: 1rem; height: 1rem; margin-top: 0.1rem; }

.resp-answer-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
}

.resp-answer {
  padding: 1rem;
  border: 2px solid var(--border-main);
  border-radius: 1.1rem;
  background: var(--bg-secondary);
}

.resp-answer strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.resp-answer span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.5;
}

.resp-callout {
  border: 3px solid var(--on-accent);
  border-radius: 1.4rem;
  background: var(--accent-gold);
  box-shadow: 5px 5px 0 var(--accent-coral);
  color: var(--on-accent);
}

.resp-callout * { color: inherit !important; }

.resp-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.55rem;
}

.resp-history-actions label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 800;
}

.resp-history-actions input {
  width: 6.5rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.6rem;
  color: var(--text-primary);
  font-weight: 800;
}

.resp-history-actions button {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--border-main);
  border-radius: 0.75rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 800;
}

#resp-fill-history { background: var(--accent-emerald); color: #fff; border-color: var(--on-accent); }

.resp-history-head,
.resp-history-row {
  display: grid;
  grid-template-columns: 6rem minmax(8rem, 1fr) minmax(10rem, 1fr) 7rem;
  gap: 0.65rem;
  align-items: center;
}

.resp-history-head {
  padding: 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resp-history-rows { display: grid; gap: 0.55rem; }

.resp-history-row {
  padding: 0.65rem;
  border: 1px solid var(--border-main);
  border-radius: 1rem;
  background: var(--bg-secondary);
}

.resp-history-year strong,
.resp-history-year span { display: block; }
.resp-history-year strong { color: var(--text-primary); font-size: 0.78rem; }
.resp-history-year span { color: var(--text-muted); font-size: 0.62rem; }

.resp-history-row input,
.resp-history-row select {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.45rem 0.6rem;
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.resp-history-summary {
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--accent-emerald) 10%, transparent);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
}

.resp-faq details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-main);
}

.resp-faq details:last-child { border-bottom: 0; }
.resp-faq summary { cursor: pointer; color: var(--text-primary); font-size: 0.82rem; font-weight: 800; }
.resp-faq p { margin-top: 0.65rem; color: var(--text-secondary); font-size: 0.75rem; line-height: 1.65; }

@media (max-width: 639px) {
  .resp-callout { box-shadow: 3px 3px 0 var(--accent-coral); }
  .resp-history-head { display: none; }
  .resp-history-row { grid-template-columns: 1fr 1fr; }
  .resp-history-year { grid-column: 1 / -1; }
  .resp-history-row [data-history-eligible] { grid-column: 1 / -1; }
  .resp-history-row input,
  .resp-history-row select { min-width: 0; }
  .resp-history-actions { align-items: stretch; }
  .resp-history-actions label { width: 100%; justify-content: space-between; }
}
