.coding-mode-note {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #4a3a6e;
  border-radius: 5px;
  color: #c9b3f5;
  font-size: 11px;
}
.coding-ok {
  color: #9ce4c7;
  border-color: #2f6a56;
}
.coding-checks {
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}
.coding-checks code,
.coding-approval code,
.coding-preview code {
  font-size: 13px;
  color: var(--cyan);
  overflow-wrap: anywhere;
}
.coding-approval {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #6d4fa3;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1430 0%, #11161f 60%);
  box-shadow: 0 0 0 1px #2a1f45 inset;
}
.coding-approval h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.coding-approval small {
  display: block;
  color: var(--muted);
}
.coding-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #53b7c2;
  border-radius: 10px;
  background: #0e1a21;
  line-height: 1.7;
}
.coding-events li span {
  overflow-wrap: anywhere;
}
.task-state.waiting_user {
  color: #e2c9ff;
  border-color: #6d4fa3;
}
.task-state.unknown,
.task-state.worker_offline,
.task-state.paused_quota {
  color: #f1d39a;
  border-color: #7a6a3d;
}
.coding-create summary {
  cursor: pointer;
  font-size: 15px;
}
.coding-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.coding-form label,
.coding-form legend {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.coding-form input,
.coding-form select,
.coding-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--white);
  background: #0d121b;
  border: 1px solid #31575e;
  border-radius: 10px;
}
.coding-form textarea {
  min-height: 92px;
  resize: vertical;
}
.coding-form fieldset {
  border: 1px solid #31575e;
  border-radius: 10px;
  padding: 10px 12px;
}
.coding-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.coding-check input {
  width: auto;
  margin: 0;
}
.coding-form > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.coding-input {
  margin: 10px 0 0;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cyan);
  background: #0a1116;
  border: 1px solid #244a52;
  border-radius: 8px;
}
.coding-lost {
  border-color: #7a6a3d;
  background: linear-gradient(135deg, #2a2214 0%, #11161f 60%);
}
.coding-preview p,
.coding-approval h3 code {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.coding-paused {
  border-color: #316b69;
  background: linear-gradient(135deg, #10262a 0%, #11161f 60%);
}
.coding-diagnostic {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 13px;
}
.coding-diagnostic dt {
  color: var(--muted);
}
.coding-diagnostic dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.coding-steer {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f141d;
}
.coding-steer h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.coding-steer textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  resize: vertical;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--white);
  background: #0d121b;
  border: 1px solid #31575e;
  border-radius: 10px;
}
.coding-steer .task-actions small {
  color: var(--muted);
}
.coding-steer-list li span:first-child {
  overflow-wrap: anywhere;
}
.task-state.steer-pending {
  color: #f1d39a;
  border-color: #7a6a3d;
}
.task-state.steer-received {
  color: var(--cyan);
}
.task-state.steer-injected {
  color: #9ce4c7;
}
