.request-form,
.request-wizard{
  display: grid;
  gap: 14px;
}

.request-form{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.template-board{
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.template-board section{
  display: grid;
  gap: 10px;
}

.template-head{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  flex-wrap: wrap;
}

.template-head h3{
  min-width: 0;
  font-size: 16px;
}

.template-head .muted{
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-card{
  display: grid;
  gap: 12px;
  align-content: space-between;
  min-height: 132px;
  padding: 12px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.template-card div:first-child{
  display: grid;
  gap: 6px;
}

.template-card strong{
  line-height: 1.18;
}

.template-card span{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.template-card .btn{
  min-width: 0;
  width: 100%;
}

.template-empty{
  min-height: 132px;
}

.wizard-steps button{
  min-height: 44px;
  padding: 9px 10px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid rgba(18, 28, 24, 0.24);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 720;
  text-align: center;
}

.wizard-steps button.active{
  color: var(--primary);
  background: var(--danger-soft);
  border-color: rgba(199, 54, 47, 0.42);
}

.wizard-steps button.done{
  color: var(--text);
  background: var(--surface-soft);
  border-color: rgba(18, 28, 24, 0.28);
}

.wizard-step{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 0;
  border: 0;
}

.wizard-step > label{
  min-width: 0;
}

.wizard-step[hidden]{
  display: none;
}

.wizard-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.request-quality,
.request-preview{
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.28);
  border-radius: var(--radius);
}

.assistant-box{
  display: grid;
  gap: 4px;
}

.legal-warning{
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
}

.legal-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-card{
  display: grid;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}
