body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0b1b0b;
  color: #fff;
}

.rtg-header {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid #2e6b33;
}

.back-link {
  color: #ff8c42;
  text-decoration: none;
  font-weight: 600;
}

.contracts-shell {
  display: flex;
  justify-content: center;
  padding: 16px;
}

/* compact widget ~ small card */
.contracts-widget {
  width: 260px; /* ~2.7in on standard screens */
  padding: 10px;
  background: rgba(0,0,0,0.8);
  border-radius: 10px;
  border: 1px solid #ff8c42;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  font-size: 0.85rem;
}

.contracts-widget h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.field-row {
  margin-bottom: 6px;
}

.field-row input,
.field-row textarea {
  width: 100%;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #444;
  font-size: 0.8rem;
  background: #111;
  color: #fff;
}

.btn-row {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}

.btn-row button {
  flex: 1;
  padding: 4px 0;
  font-size: 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #ff8c42;
  color: #000;
  font-weight: 600;
}

.preview-box {
  margin-top: 6px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #050805;
  max-height: 140px;
  overflow-y: auto;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: pre-wrap;
}
