.rs-page {
  padding: 16px;
}

.rs-header h2 {
  margin: 0 0 8px;
  color: #0f172a;
}

.rs-header p {
  margin: 0 0 14px;
  color: #475569;
}

.rs-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 12px;
}

.rs-card {
  background: #fff;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rs-card label {
  display: block;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 6px;
  font-weight: 600;
}

.rs-card select,
.rs-card input,
.rs-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  background: #fff;
}

.rs-card textarea {
  resize: vertical;
  min-height: 360px;
  line-height: 1.45;
}

.rs-card input:focus,
.rs-card select:focus,
.rs-card textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.rs-fields .rs-field {
  margin-bottom: 2px;
}

.rs-quick-wrap {
  margin: 2px 0 8px;
}

.rs-quick-title {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}

.rs-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rs-quick-item {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-quick-item:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.rs-actions {
  display: flex;
  gap: 8px;
}

.rs-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.rs-btn-primary {
  background: #2563eb;
  color: #fff;
}

.rs-btn-primary:hover {
  background: #1d4ed8;
}

.rs-btn-ghost {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.rs-btn-ghost:hover {
  background: #eef2ff;
}

.rs-copy-icon-btn {
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
}

@media (max-width: 980px) {
  .rs-grid {
    grid-template-columns: 1fr;
  }

  .rs-card textarea {
    min-height: 260px;
  }
}
